Skip to content

Firefly III: a personal finances manager

New stuff

Sander Dorigo889bea611f40
diff --git a/resources/views/accounts/create.blade.php b/resources/views/accounts/create.blade.php
new file mode 100644
index 0000000000..1bd76d3499
--- /dev/null
+++ b/resources/views/accounts/create.blade.php
@@ -0,0 +1,100 @@
+@extends('layout.v3.session')
+@section('content')
+ <!-- set location data high up -->
+ <script type="text/javascript" nonce="{{ $JS_NONCE }}">
+ var locations = {!! json_encode($locations) !!};
+ var mapboxToken = "{{ config('firefly.mapbox_api_key') }}";
+ </script>
+
+ <form action="{{ route('accounts.store') }}" method="post" id="store" class="form-horizontal"
+ enctype="multipart/form-data">
+ <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
+ <input type="hidden" name="objectType" value="{{ $objectType }}"/>
+ <input type="hidden" name="active" value="1"/>
+
+ <div class="row">
+ <div class="col-lg-6 col-md-6 col-sm-12">
+ <div class="card">
+ <div class="card-header">
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
+ </div>
+ <div class="card-body">
+ {{ ExpandedForm::text('name') }}
+ @if('asset' === $objectType || 'liabilities' === $objectType)
+ {{ CurrencyForm::currencyList('currency_id', null, ['helpText' => __('firefly.account_default_currency')]) }}
+ @endif
+ @if('liabilities' === $objectType)
+ {{ ExpandedForm::select('liability_type_id', $liabilityTypes) }}
+ {{ ExpandedForm::amountNoCurrency('opening_balance', null, ['label' => __('firefly.debt_start_amount')]) }}
+ {{ ExpandedForm::select('liability_direction', $liabilityDirections) }}
+ {{ ExpandedForm::date('opening_balance_date', null, ['label' => __('firefly.debt_start_date')]) }}
+ {{ ExpandedForm::percentage('interest') }}
+ {{ ExpandedForm::select('interest_period', $interestPeriods, null, ['helpText' => __('firefly.interest_period_help')]) }}
+ @endif
+ </div>
+ </div>
+ </div>
+
+ <div class="col-lg-6 col-md-6 col-sm-12">
+ <div class="card">
+ <div class="card-header">
+ <h3 class="card-title">{{ __('firefly.optionalFields') }}</h3>
+ </div>
+ <div class="card-body">
+
+ {{ ExpandedForm::text('iban') }}
+ {{ ExpandedForm::text('BIC', null, ['maxlength' => 11]) }}
+ {{ ExpandedForm::text('account_number') }}
+
+ @if('asset' === $objectType)
+
+ {{ ExpandedForm::amountNoCurrency('opening_balance') }}
+ {{ ExpandedForm::date('opening_balance_date') }}
+ {{ ExpandedForm::select('account_role', $roles,null,['helpText' => __('firefly.asset_account_role_help')]) }}
+ {{ ExpandedForm::amountNoCurrency('virtual_balance') }}
+ @endif
+ @if($showNetWorth)
+ {{ ExpandedForm::checkbox('include_net_worth', 1) }}
+ @endif
+ {{ ExpandedForm::textarea('notes',null,['helpText' => trans('firefly.field_supports_markdown')]) }}
+ {{ ExpandedForm::file('attachments[]', ['multiple' => 'multiple','helpText' => trans('firefly.upload_max_file_size', ['size' => $uploadSize ?? $filesize])]) }}
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-lg-6 col-md-6 col-sm-12">
+ <div class="card">
+ <div class="card-header">
+ <h3 class="card-title">{{ 'options'|_ }}</h3>
+ </div>
+ <div class="card-body">
+ {{ ExpandedForm::optionsList('create','account') }}
+ </div>
+ <div class="box-footer">
+ <button type="submit" class="btn pull-right btn-success">
+ {{ __('store_new_' . $objectType . '_account') }}
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+ </form>
+@endsection
+@section('scripts')
+ <script type="text/javascript" nonce="{{ $JS_NONCE }}">
+ var iAmOwed = '{{ __('i_am_owed_amount') }}';
+ var iOwe = '{{ __('i_owe_amount') }}';
+ </script>
+ <script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
+ nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
+ <script type="text/javascript" src="v1/js/ff/accounts/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
+@endsection
+
+@section('styles')
+ <link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
+ media="all" nonce="{{ $JS_NONCE }}">
+ <link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
+ media="all" nonce="{{ $JS_NONCE }}">
+@endsection
diff --git a/resources/views/accounts/create.twig b/resources/views/accounts/create.twig
deleted file mode 100644
index 65059df7e8..0000000000
--- a/resources/views/accounts/create.twig
+++ /dev/null
@@ -1,104 +0,0 @@
-{% extends './layout/default' %}
-{% block breadcrumbs %}
- {{ Breadcrumbs.render(Route.getCurrentRoute.getName, objectType) }}
-{% endblock %}
-{% block content %}
- <!-- set location data high up -->
- <script type="text/javascript" nonce="{{ $JS_NONCE }}">
- var locations = {{ locations|json_encode|raw }};
- var mapboxToken = "{{ config('firefly.mapbox_api_key') }}";
- </script>
-
- <form action="{{ route('accounts.store') }}" method="post" id="store" class="form-horizontal"
- enctype="multipart/form-data">
- <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
- <input type="hidden" name="objectType" value="{{ objectType }}"/>
- <input type="hidden" name="active" value="1"/>
-
- <div class="row">
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="card">
- <div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
- </div>
- <div class="card-body">
- {{ ExpandedForm.text('name') }}
- {% if objectType == 'asset' or objectType == 'liabilities' %}
- {{ CurrencyForm.currencyList('currency_id', null, {helpText:'account_default_currency'|_}) }}
- {% endif %}
- {% if objectType == 'liabilities' %}
- {{ ExpandedForm.select('liability_type_id', liabilityTypes) }}
- {{ ExpandedForm.amountNoCurrency('opening_balance', null, {label:'debt_start_amount'|_}) }}
- {{ ExpandedForm.select('liability_direction', liabilityDirections) }}
- {{ ExpandedForm.date('opening_balance_date', null, {label:'debt_start_date'|_}) }}
- {{ ExpandedForm.percentage('interest') }}
- {{ ExpandedForm.select('interest_period', interestPeriods, null, {helpText: 'interest_period_help'|_}) }}
- {% endif %}
- </div>
- </div>
- </div>
-
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="card">
- <div class="card-header">
- <h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
- </div>
- <div class="card-body">
-
- {{ ExpandedForm.text('iban') }}
- {{ ExpandedForm.text('BIC', null, {maxlength: 11}) }}
- {{ ExpandedForm.text('account_number') }}
-
- {% if objectType == 'asset' %}
-
- {{ ExpandedForm.amountNoCurrency('opening_balance') }}
- {{ ExpandedForm.date('opening_balance_date') }}
- {{ ExpandedForm.select('account_role', roles,null,{helpText : 'asset_account_role_help'|_}) }}
- {{ ExpandedForm.amountNoCurrency('virtual_balance') }}
- {% endif %}
- {# only correct way to do active checkbox #}
- {% if showNetWorth %}
- {{ ExpandedForm.checkbox('include_net_worth', 1) }}
- {% endif %}
- {{ ExpandedForm.textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="card">
- <div class="card-header">
- <h3 class="card-title">{{ 'options'|_ }}</h3>
- </div>
- <div class="card-body">
- {{ ExpandedForm.optionsList('create','account') }}
- </div>
- <div class="box-footer">
- <button type="submit" class="btn pull-right btn-success">
- {{ ('store_new_' ~ objectType ~ '_account')|_ }}
- </button>
- </div>
- </div>
- </div>
- </div>
- </form>
-{% endblock %}
-{% block scripts %}
- <script type="text/javascript" nonce="{{ $JS_NONCE }}">
- var iAmOwed = '{{ 'i_am_owed_amount'|_|escape('js') }}';
- var iOwe = '{{ 'i_owe_amount'|_|escape('js') }}';
- </script>
- <script type="text/javascript" src="v1/js/lib/modernizr-custom.js?v={{ $FF_BUILD_TIME }}"
- nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/lib/jquery-ui.min.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
- <script type="text/javascript" src="v1/js/ff/accounts/create.js?v={{ $FF_BUILD_TIME }}" nonce="{{ $JS_NONCE }}"></script>
-{% endblock %}
-
-{% block styles %}
- <link href="v1/css/jquery-ui/jquery-ui.structure.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
- <link href="v1/css/jquery-ui/jquery-ui.theme.min.css?v={{ $FF_BUILD_TIME }}" type="text/css" rel="stylesheet"
- media="all" nonce="{{ $JS_NONCE }}">
-{% endblock %}
diff --git a/resources/views/accounts/edit.twig b/resources/views/accounts/edit.twig
index b4f4030f74..46f876996a 100644
--- a/resources/views/accounts/edit.twig
+++ b/resources/views/accounts/edit.twig
@@ -23,12 +23,12 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name', account.name) }}
+ {{ ExpandedForm::text('name', account.name) }}
{% if canEditCurrency and (account.accountType.type == 'Default account' or account.accountType.type == 'Asset account' or objectType == 'liabilities') %}
- {{ CurrencyForm.currencyList('currency_id', null, {helpText:'account_default_currency'|_}) }}
+ {{ CurrencyForm::currencyList('currency_id', null, {helpText:'account_default_currency'|_}) }}
{% endif %}
{% if not canEditCurrency and (account.accountType.type == 'Default account' or account.accountType.type == 'Asset account' or objectType == 'liabilities') %}
<input type="hidden" name="currency_id" value="{{ currency.id }}"/>
@@ -36,12 +36,12 @@
{% endif %}
{% if objectType == 'liabilities' %}
- {{ ExpandedForm.select('liability_type_id', liabilityTypes) }}
- {{ ExpandedForm.amountNoCurrency('opening_balance', null, {label:'debt_start_amount'|_}) }}
- {{ ExpandedForm.select('liability_direction', liabilityDirections) }}
- {{ ExpandedForm.date('opening_balance_date', preFilled.opening_balance_date, {label:'debt_start_date'|_}) }}
- {{ ExpandedForm.percentage('interest') }}
- {{ ExpandedForm.select('interest_period', interestPeriods) }}
+ {{ ExpandedForm::select('liability_type_id', liabilityTypes) }}
+ {{ ExpandedForm::amountNoCurrency('opening_balance', null, {label:'debt_start_amount'|_}) }}
+ {{ ExpandedForm::select('liability_direction', liabilityDirections) }}
+ {{ ExpandedForm::date('opening_balance_date', preFilled.opening_balance_date, {label:'debt_start_date'|_}) }}
+ {{ ExpandedForm::percentage('interest') }}
+ {{ ExpandedForm::select('interest_period', interestPeriods) }}
{% endif %}
</div>
</div>
@@ -53,32 +53,32 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('iban', account.iban) }}
- {{ ExpandedForm.text('BIC', null, {maxlength: 11}) }}
+ {{ ExpandedForm::text('iban', account.iban) }}
+ {{ ExpandedForm::text('BIC', null, {maxlength: 11}) }}
{% if preFilled.account_role == 'ccAsset' %}
- {{ ExpandedForm.text('account_number', null , {label:trans('form.creditCardNumber')}) }}
+ {{ ExpandedForm::text('account_number', null , {label:trans('form.creditCardNumber')}) }}
{% else %}
- {{ ExpandedForm.text('account_number') }}
+ {{ ExpandedForm::text('account_number') }}
{% endif %}
{% if account.accounttype.type == 'Default account' or account.accounttype.type == 'Asset account' %}
{# get opening balance entry for this thing! #}
- {{ ExpandedForm.amountNoCurrency('opening_balance',null) }}
- {{ ExpandedForm.date('opening_balance_date', preFilled.opening_balance_date) }}
- {{ ExpandedForm.select('account_role', roles) }}
- {{ ExpandedForm.amountNoCurrency('virtual_balance',null) }}
+ {{ ExpandedForm::amountNoCurrency('opening_balance',null) }}
+ {{ ExpandedForm::date('opening_balance_date', preFilled.opening_balance_date) }}
+ {{ ExpandedForm::select('account_role', roles) }}
+ {{ ExpandedForm::amountNoCurrency('virtual_balance',null) }}
{% endif %}
{% if showNetWorth %}
- {{ ExpandedForm.checkbox('include_net_worth', 1) }}
+ {{ ExpandedForm::checkbox('include_net_worth', 1) }}
{% endif %}
- {{ ExpandedForm.textarea('notes',preFilled.notes,{helpText: trans('firefly.field_supports_markdown')}) }}
+ {{ ExpandedForm::textarea('notes',preFilled.notes,{helpText: trans('firefly.field_supports_markdown')}) }}
{# only correct way to do active checkbox #}
- {{ ExpandedForm.checkbox('active', 1) }}
+ {{ ExpandedForm::checkbox('active', 1) }}
{# only correct way to do active checkbox #}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
@@ -90,8 +90,8 @@
<h3 class="card-title">{{ 'credit_card_options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.select('cc_type',Config.get('firefly.ccTypes')) }}
- {{ ExpandedForm.date('cc_monthly_payment_date',null,{'helpText' : trans('firefly.cc_monthly_payment_date_help')}) }}
+ {{ ExpandedForm::select('cc_type',Config.get('firefly.ccTypes')) }}
+ {{ ExpandedForm::date('cc_monthly_payment_date',null,{'helpText' : trans('firefly.cc_monthly_payment_date_help')}) }}
</div>
</div>
{% endif %}
@@ -105,7 +105,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','account') }}
+ {{ ExpandedForm::optionsList('update','account') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/attachments/edit.twig b/resources/views/attachments/edit.twig
index 372ab3a29a..97cceacfe1 100644
--- a/resources/views/attachments/edit.twig
+++ b/resources/views/attachments/edit.twig
@@ -16,7 +16,7 @@
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
{{ ExpandedForm.staticText('filename',attachment.filename|escape) }}
@@ -32,8 +32,8 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('title', attachment.title) }}
- {{ ExpandedForm.textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
+ {{ ExpandedForm::text('title', attachment.title) }}
+ {{ ExpandedForm::textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
</div>
</div>
</div>
@@ -47,7 +47,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','attachment') }}
+ {{ ExpandedForm::optionsList('update','attachment') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/bills/create.twig b/resources/views/bills/create.twig
index 4c3dbb78ac..fcbffdd172 100644
--- a/resources/views/bills/create.twig
+++ b/resources/views/bills/create.twig
@@ -13,15 +13,15 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name') }}
- {{ CurrencyForm.currencyList('transaction_currency_id', primaryCurrency.id) }}
- {{ ExpandedForm.amountNoCurrency('amount_min') }}
- {{ ExpandedForm.amountNoCurrency('amount_max') }}
- {{ ExpandedForm.date('date',phpdate('Y-m-d')) }}
- {{ ExpandedForm.select('repeat_freq',periods,'monthly') }}
+ {{ ExpandedForm::text('name') }}
+ {{ CurrencyForm::currencyList('transaction_currency_id', primaryCurrency.id) }}
+ {{ ExpandedForm::amountNoCurrency('amount_min') }}
+ {{ ExpandedForm::amountNoCurrency('amount_max') }}
+ {{ ExpandedForm::date('date',phpdate('Y-m-d')) }}
+ {{ ExpandedForm::select('repeat_freq',periods,'monthly') }}
{{ ExpandedForm.integer('skip',0, {'helpText': trans('firefly.skip_help_text')}) }}
</div>
</div>
@@ -33,12 +33,12 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.date('bill_end_date',null, {'helpText': trans('firefly.bill_end_date_help')}) }}
- {{ ExpandedForm.date('extension_date',null,{'helpText': trans('firefly.bill_extension_date_help')} ) }}
+ {{ ExpandedForm::date('bill_end_date',null, {'helpText': trans('firefly.bill_end_date_help')}) }}
+ {{ ExpandedForm::date('extension_date',null,{'helpText': trans('firefly.bill_extension_date_help')} ) }}
- {{ ExpandedForm.textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
{{ ExpandedForm.objectGroup() }}
</div>
</div>
@@ -52,7 +52,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','bill') }}
+ {{ ExpandedForm::optionsList('create','bill') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/bills/edit.twig b/resources/views/bills/edit.twig
index de4fee518e..fbfb2682f8 100644
--- a/resources/views/bills/edit.twig
+++ b/resources/views/bills/edit.twig
@@ -15,19 +15,19 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
{% if rules.count() > 0 %}
- {{ ExpandedForm.text('name', bill.name, {helpText: trans_choice('firefly.bill_edit_rules', rules.count())}) }}
+ {{ ExpandedForm::text('name', bill.name, {helpText: trans_choice('firefly.bill_edit_rules', rules.count())}) }}
{% else %}
- {{ ExpandedForm.text('name', bill.name) }}
+ {{ ExpandedForm::text('name', bill.name) }}
{% endif %}
- {{ CurrencyForm.currencyList('transaction_currency_id') }}
- {{ ExpandedForm.amountNoCurrency('amount_min', bill.amount_min) }}
- {{ ExpandedForm.amountNoCurrency('amount_max', bill.amount_max) }}
- {{ ExpandedForm.date('date',bill.date.format('Y-m-d')) }}
- {{ ExpandedForm.select('repeat_freq', periods, bill.repeat_freq) }}
+ {{ CurrencyForm::currencyList('transaction_currency_id') }}
+ {{ ExpandedForm::amountNoCurrency('amount_min', bill.amount_min) }}
+ {{ ExpandedForm::amountNoCurrency('amount_max', bill.amount_max) }}
+ {{ ExpandedForm::date('date',bill.date.format('Y-m-d')) }}
+ {{ ExpandedForm::select('repeat_freq', periods, bill.repeat_freq) }}
{{ ExpandedForm.integer('skip', bill.skip, {'helpText': trans('firefly.skip_help_text')}) }}
</div>
</div>
@@ -40,14 +40,14 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.date('bill_end_date',null, {'helpText': trans('firefly.bill_end_date_help')}) }}
- {{ ExpandedForm.date('extension_date',null,{'helpText': trans('firefly.bill_extension_date_help')} ) }}
+ {{ ExpandedForm::date('bill_end_date',null, {'helpText': trans('firefly.bill_end_date_help')}) }}
+ {{ ExpandedForm::date('extension_date',null,{'helpText': trans('firefly.bill_extension_date_help')} ) }}
- {{ ExpandedForm.textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
{{ ExpandedForm.objectGroup() }}
{# only correct way to do active checkbox #}
- {{ ExpandedForm.checkbox('active', 1) }}
+ {{ ExpandedForm::checkbox('active', 1) }}
</div>
</div>
@@ -60,7 +60,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','bill') }}
+ {{ ExpandedForm::optionsList('update','bill') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/budgets/create.twig b/resources/views/budgets/create.twig
index e995d19be7..a2209fe0da 100644
--- a/resources/views/budgets/create.twig
+++ b/resources/views/budgets/create.twig
@@ -14,10 +14,10 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name') }}
+ {{ ExpandedForm::text('name') }}
</div>
</div>
</div>
@@ -28,11 +28,11 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.select('auto_budget_type', autoBudgetTypes,null, {helpText: trans('firefly.auto_budget_help')}) }}
- {{ CurrencyForm.currencyList('auto_budget_currency_id') }}
- {{ ExpandedForm.amountNoCurrency('auto_budget_amount') }}
- {{ ExpandedForm.select('auto_budget_period', autoBudgetPeriods, null) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::select('auto_budget_type', autoBudgetTypes,null, {helpText: trans('firefly.auto_budget_help')}) }}
+ {{ CurrencyForm::currencyList('auto_budget_currency_id') }}
+ {{ ExpandedForm::amountNoCurrency('auto_budget_amount') }}
+ {{ ExpandedForm::select('auto_budget_period', autoBudgetPeriods, null) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>
@@ -45,7 +45,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','budget') }}
+ {{ ExpandedForm::optionsList('create','budget') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">{{ 'store_new_budget'|_ }}</button>
diff --git a/resources/views/budgets/edit.twig b/resources/views/budgets/edit.twig
index ce3a40dc6f..a3f4c65ad8 100644
--- a/resources/views/budgets/edit.twig
+++ b/resources/views/budgets/edit.twig
@@ -13,12 +13,12 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
{# only correct way to do active checkbox #}
- {{ ExpandedForm.checkbox('active', 1) }}
- {{ ExpandedForm.text('name', budget.name) }}
+ {{ ExpandedForm::checkbox('active', 1) }}
+ {{ ExpandedForm::text('name', budget.name) }}
</div>
</div>
@@ -30,12 +30,12 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.select('auto_budget_type', autoBudgetTypes, autoBudget.auto_budget_type) }}
- {{ CurrencyForm.currencyList('auto_budget_currency_id', autoBudget.transaction_currency_id) }}
- {{ ExpandedForm.amountNoCurrency('auto_budget_amount', preFilled.auto_budget_amount) }}
- {{ ExpandedForm.select('auto_budget_period', autoBudgetPeriods, autoBudget.period) }}
- {{ ExpandedForm.textarea('notes',preFilled.notes,{helpText: trans('firefly.field_supports_markdown')}) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::select('auto_budget_type', autoBudgetTypes, autoBudget.auto_budget_type) }}
+ {{ CurrencyForm::currencyList('auto_budget_currency_id', autoBudget.transaction_currency_id) }}
+ {{ ExpandedForm::amountNoCurrency('auto_budget_amount', preFilled.auto_budget_amount) }}
+ {{ ExpandedForm::select('auto_budget_period', autoBudgetPeriods, autoBudget.period) }}
+ {{ ExpandedForm::textarea('notes',preFilled.notes,{helpText: trans('firefly.field_supports_markdown')}) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>
@@ -48,7 +48,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','budget') }}
+ {{ ExpandedForm::optionsList('update','budget') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">{{ 'update_budget'|_ }}</button>
diff --git a/resources/views/categories/create.twig b/resources/views/categories/create.twig
index 4eb988a4ad..0a4bae7ed3 100644
--- a/resources/views/categories/create.twig
+++ b/resources/views/categories/create.twig
@@ -12,10 +12,10 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name') }}
+ {{ ExpandedForm::text('name') }}
</div>
</div>
</div>
@@ -26,8 +26,8 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.textarea('notes', null, {helpText: trans('firefly.field_supports_markdown')} ) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::textarea('notes', null, {helpText: trans('firefly.field_supports_markdown')} ) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>
@@ -40,7 +40,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','category') }}
+ {{ ExpandedForm::optionsList('create','category') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/categories/edit.twig b/resources/views/categories/edit.twig
index 9f3f8d3024..85743dedd8 100644
--- a/resources/views/categories/edit.twig
+++ b/resources/views/categories/edit.twig
@@ -16,10 +16,10 @@
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name', category.name) }}
+ {{ ExpandedForm::text('name', category.name) }}
</div>
</div>
</div>
@@ -30,8 +30,8 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.textarea('notes', preFilled.notes, {helpText: trans('firefly.field_supports_markdown')} ) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::textarea('notes', preFilled.notes, {helpText: trans('firefly.field_supports_markdown')} ) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>
@@ -46,7 +46,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','category') }}
+ {{ ExpandedForm::optionsList('update','category') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/currencies/create.twig b/resources/views/currencies/create.twig
index 99f0062141..9c2c7dd9a3 100644
--- a/resources/views/currencies/create.twig
+++ b/resources/views/currencies/create.twig
@@ -11,12 +11,12 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name',null,{'maxlength' : 48}) }}
- {{ ExpandedForm.text('symbol',null,{'maxlength': 51}) }}
- {{ ExpandedForm.text('code',null,{'maxlength' : 51}) }}
+ {{ ExpandedForm::text('name',null,{'maxlength' : 48}) }}
+ {{ ExpandedForm::text('symbol',null,{'maxlength': 51}) }}
+ {{ ExpandedForm::text('code',null,{'maxlength' : 51}) }}
{{ ExpandedForm.integer('decimal_places',2,{'maxlength' : 2,'min': 0,'max': 12}) }}
</div>
</div>
@@ -32,7 +32,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','currency') }}
+ {{ ExpandedForm::optionsList('create','currency') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/currencies/edit.twig b/resources/views/currencies/edit.twig
index 3f3301a2f7..75f7665439 100644
--- a/resources/views/currencies/edit.twig
+++ b/resources/views/currencies/edit.twig
@@ -15,14 +15,14 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name', currency.name,{'maxlength' : 48}) }}
- {{ ExpandedForm.text('symbol', currency.symbol,{'maxlength' : 51}) }}
- {{ ExpandedForm.text('code', currency.code,{'maxlength' : 51}) }}
+ {{ ExpandedForm::text('name', currency.name,{'maxlength' : 48}) }}
+ {{ ExpandedForm::text('symbol', currency.symbol,{'maxlength' : 51}) }}
+ {{ ExpandedForm::text('code', currency.code,{'maxlength' : 51}) }}
{{ ExpandedForm.integer('decimal_places', currency.decimal_places,{'maxlength' : 2,'min': 0,'max': 12}) }}
- {{ ExpandedForm.checkbox('enabled', null, currency.enabled) }}
+ {{ ExpandedForm::checkbox('enabled', null, currency.enabled) }}
</div>
</div>
</div>
@@ -36,7 +36,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','currency') }}
+ {{ ExpandedForm::optionsList('update','currency') }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success pull-right">
diff --git a/resources/views/new-user/index.twig b/resources/views/new-user/index.twig
index f5b4e36b5b..35677d59de 100644
--- a/resources/views/new-user/index.twig
+++ b/resources/views/new-user/index.twig
@@ -23,7 +23,7 @@
<p>
{{ 'to_get_started'|_ }}
</p>
- {{ ExpandedForm.text('bank_name') }}
+ {{ ExpandedForm::text('bank_name') }}
{{ CurrencyForm.balanceAll('bank_balance') }}
<p class="text-success">
diff --git a/resources/views/object-groups/edit.twig b/resources/views/object-groups/edit.twig
index b1e47d6628..0dff738a7d 100644
--- a/resources/views/object-groups/edit.twig
+++ b/resources/views/object-groups/edit.twig
@@ -16,10 +16,10 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('title', objectGroup.title) }}
+ {{ ExpandedForm::text('title', objectGroup.title) }}
</div>
</div>
@@ -33,7 +33,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','object group') }}
+ {{ ExpandedForm::optionsList('update','object group') }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success pull-right">
diff --git a/resources/views/piggy-banks/create.twig b/resources/views/piggy-banks/create.twig
index c310bc30e3..865ab22190 100644
--- a/resources/views/piggy-banks/create.twig
+++ b/resources/views/piggy-banks/create.twig
@@ -12,12 +12,12 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name') }}
- {{ ExpandedForm.amountNoCurrency('target_amount') }}
- {{ CurrencyForm.currencyList('transaction_currency_id', preFilled.transaction_currency_id, {helpText:'piggy_default_currency'|_}) }}
+ {{ ExpandedForm::text('name') }}
+ {{ ExpandedForm::amountNoCurrency('target_amount') }}
+ {{ CurrencyForm::currencyList('transaction_currency_id', preFilled.transaction_currency_id, {helpText:'piggy_default_currency'|_}) }}
{{ AccountForm.assetLiabilityMultiAccountList('accounts', preFilled.accounts, {label: 'saveOnAccounts'|_, helpText: 'piggy_account_currency_match'|_ }) }}
</div>
@@ -29,9 +29,9 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.date('target_date') }}
- {{ ExpandedForm.textarea('notes', null, {helpText: trans('firefly.field_supports_markdown')} ) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::date('target_date') }}
+ {{ ExpandedForm::textarea('notes', null, {helpText: trans('firefly.field_supports_markdown')} ) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
{{ ExpandedForm.objectGroup() }}
</div>
</div>
@@ -45,7 +45,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','piggy bank') }}
+ {{ ExpandedForm::optionsList('create','piggy bank') }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success pull-right">
diff --git a/resources/views/piggy-banks/edit.twig b/resources/views/piggy-banks/edit.twig
index e2d58b8f80..2720874830 100644
--- a/resources/views/piggy-banks/edit.twig
+++ b/resources/views/piggy-banks/edit.twig
@@ -17,13 +17,13 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name') }}
- {{ ExpandedForm.amountNoCurrency('target_amount') }}
- {{ CurrencyForm.currencyList('transaction_currency_id', preFilled.transaction_currency_id, {helpText:'piggy_default_currency'|_}) }}
+ {{ ExpandedForm::text('name') }}
+ {{ ExpandedForm::amountNoCurrency('target_amount') }}
+ {{ CurrencyForm::currencyList('transaction_currency_id', preFilled.transaction_currency_id, {helpText:'piggy_default_currency'|_}) }}
{{ AccountForm.assetLiabilityMultiAccountList('accounts', preFilled.accounts, {label: 'saveOnAccounts'|_, helpText: 'piggy_account_currency_match'|_ }) }}
</div>
@@ -36,10 +36,10 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.date('start_date') }}
- {{ ExpandedForm.date('target_date') }}
- {{ ExpandedForm.textarea('notes', null, {helpText: trans('firefly.field_supports_markdown')}) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::date('start_date') }}
+ {{ ExpandedForm::date('target_date') }}
+ {{ ExpandedForm::textarea('notes', null, {helpText: trans('firefly.field_supports_markdown')}) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
{{ ExpandedForm.objectGroup() }}
</div>
</div>
@@ -53,7 +53,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','piggy bank') }}
+ {{ ExpandedForm::optionsList('update','piggy bank') }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success pull-right">
diff --git a/resources/views/preferences/index.twig b/resources/views/preferences/index.twig
index cf50965bf8..c3ca40a6ec 100644
--- a/resources/views/preferences/index.twig
+++ b/resources/views/preferences/index.twig
@@ -109,8 +109,8 @@
{{ 'pref_custom_fiscal_year_help'|_ }}
</p>
{% set isCustomFiscalYear = customFiscalYear == 1 ? true : false %}
- {{ ExpandedForm.checkbox('customFiscalYear','1',isCustomFiscalYear,{ 'label' : 'pref_custom_fiscal_year_label'|_ }) }}
- {{ ExpandedForm.date('fiscalYearStart',fiscalYearStart,{ 'label' : 'pref_fiscal_year_start_label'|_ }) }}
+ {{ ExpandedForm::checkbox('customFiscalYear','1',isCustomFiscalYear,{ 'label' : 'pref_custom_fiscal_year_label'|_ }) }}
+ {{ ExpandedForm::date('fiscalYearStart',fiscalYearStart,{ 'label' : 'pref_fiscal_year_start_label'|_ }) }}
</div>
{# conversion back to primary currency #}
@@ -120,7 +120,7 @@
<p>
{{ 'pref_convert_to_primary_help'|_ }}
</p>
- {{ ExpandedForm.checkbox('convertToPrimary','1',convertToPrimary,{ 'label' : 'pref_convert_primary_help'|_ }) }}
+ {{ ExpandedForm::checkbox('convertToPrimary','1',convertToPrimary,{ 'label' : 'pref_convert_primary_help'|_ }) }}
</div>
{% endif %}
{# conversion back to primary currency #}
@@ -129,7 +129,7 @@
<p>
{{ 'pref_anonymous_help'|_ }}
</p>
- {{ ExpandedForm.checkbox('anonymous','1',anonymous,{ 'label' : 'pref_anonymous_label'|_ }) }}
+ {{ ExpandedForm::checkbox('anonymous','1',anonymous,{ 'label' : 'pref_anonymous_label'|_ }) }}
</div>
</div>
@@ -143,22 +143,22 @@
{{ 'pref_optional_fields_transaction_help'|_ }}
</p>
<h4>{{ 'optional_tj_date_fields'|_ }}</h4>
- {{ ExpandedForm.checkbox('tj[interest_date]','1', tjOptionalFields.interest_date,{ 'label' : 'pref_optional_tj_interest_date'|_ }) }}
- {{ ExpandedForm.checkbox('tj[book_date]','1', tjOptionalFields.book_date,{ 'label' : 'pref_optional_tj_book_date'|_ }) }}
- {{ ExpandedForm.checkbox('tj[process_date]','1', tjOptionalFields.process_date,{ 'label' : 'pref_optional_tj_process_date'|_ }) }}
- {{ ExpandedForm.checkbox('tj[due_date]','1', tjOptionalFields.due_date,{ 'label' : 'pref_optional_tj_due_date'|_ }) }}
- {{ ExpandedForm.checkbox('tj[payment_date]','1', tjOptionalFields.payment_date,{ 'label' : 'pref_optional_tj_payment_date'|_ }) }}
- {{ ExpandedForm.checkbox('tj[invoice_date]','1', tjOptionalFields.invoice_date,{ 'label' : 'pref_optional_tj_invoice_date'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[interest_date]','1', tjOptionalFields.interest_date,{ 'label' : 'pref_optional_tj_interest_date'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[book_date]','1', tjOptionalFields.book_date,{ 'label' : 'pref_optional_tj_book_date'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[process_date]','1', tjOptionalFields.process_date,{ 'label' : 'pref_optional_tj_process_date'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[due_date]','1', tjOptionalFields.due_date,{ 'label' : 'pref_optional_tj_due_date'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[payment_date]','1', tjOptionalFields.payment_date,{ 'label' : 'pref_optional_tj_payment_date'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[invoice_date]','1', tjOptionalFields.invoice_date,{ 'label' : 'pref_optional_tj_invoice_date'|_ }) }}
<h4>{{ 'optional_tj_other_fields'|_ }}</h4>
- {{ ExpandedForm.checkbox('tj[internal_reference]','1', tjOptionalFields.internal_reference,{ 'label' : 'pref_optional_tj_internal_reference'|_ }) }}
- {{ ExpandedForm.checkbox('tj[external_url]','1', tjOptionalFields.external_url,{ 'label' : 'pref_optional_tj_external_url'|_ }) }}
- {{ ExpandedForm.checkbox('tj[notes]','1', tjOptionalFields.notes,{ 'label' : 'pref_optional_tj_notes'|_ }) }}
- {{ ExpandedForm.checkbox('tj[location]','1', tjOptionalFields.location,{ 'label' : 'pref_optional_tj_location'|_ }) }}
- {{ ExpandedForm.checkbox('tj[links]','1', tjOptionalFields.links,{ 'label' : 'pref_optional_tj_links'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[internal_reference]','1', tjOptionalFields.internal_reference,{ 'label' : 'pref_optional_tj_internal_reference'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[external_url]','1', tjOptionalFields.external_url,{ 'label' : 'pref_optional_tj_external_url'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[notes]','1', tjOptionalFields.notes,{ 'label' : 'pref_optional_tj_notes'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[location]','1', tjOptionalFields.location,{ 'label' : 'pref_optional_tj_location'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[links]','1', tjOptionalFields.links,{ 'label' : 'pref_optional_tj_links'|_ }) }}
<h4>{{ 'optional_tj_attachment_fields'|_ }}</h4>
- {{ ExpandedForm.checkbox('tj[attachments]','1', tjOptionalFields.attachments,{ 'label' : 'pref_optional_tj_attachments'|_ }) }}
+ {{ ExpandedForm::checkbox('tj[attachments]','1', tjOptionalFields.attachments,{ 'label' : 'pref_optional_tj_attachments'|_ }) }}
</div>
</div>
</div>
@@ -378,10 +378,10 @@
<div class="preferences-box">
<h3>{{ 'pref_notifications_settings'|_ }}</h3>
<p>{{ 'pref_notifications_settings_help'|_ }}</p>
- {{ ExpandedForm.text('slack_webhook_url',slackUrl,{'label' : 'slack_url_label'|_, helpText: 'slack_discord_double'|_}) }}
+ {{ ExpandedForm::text('slack_webhook_url',slackUrl,{'label' : 'slack_url_label'|_, helpText: 'slack_discord_double'|_}) }}
- {{ ExpandedForm.text('pushover_app_token', pushoverAppToken, {}) }}
- {{ ExpandedForm.text('pushover_user_token', pushoverUserToken, {}) }}
+ {{ ExpandedForm::text('pushover_app_token', pushoverAppToken, {}) }}
+ {{ ExpandedForm::text('pushover_user_token', pushoverUserToken, {}) }}
{{ Form.hidden('ntfy_server', ntfyServer, {}) }}
diff --git a/resources/views/profile/change-password.twig b/resources/views/profile/change-password.twig
index a8606c9cb6..4ff77619ac 100644
--- a/resources/views/profile/change-password.twig
+++ b/resources/views/profile/change-password.twig
@@ -52,7 +52,7 @@
</div>
</div>
- {{ ExpandedForm.checkbox('verify_password','1', true) }}
+ {{ ExpandedForm::checkbox('verify_password','1', true) }}
<p>
<a data-toggle="modal" data-target="#passwordModal" href="#passwordModal">{{ 'what_is_pw_security'|_ }}</a>
</p>
diff --git a/resources/views/profile/mfa/backup-codes-intro.twig b/resources/views/profile/mfa/backup-codes-intro.twig
index dd79ceab30..9321a97048 100644
--- a/resources/views/profile/mfa/backup-codes-intro.twig
+++ b/resources/views/profile/mfa/backup-codes-intro.twig
@@ -32,7 +32,7 @@
<div class="card">
<div class="card-body">
{{ ExpandedForm.password('password', {helpText: 'current_password_confirm_mfa'|_}) }}
- {{ ExpandedForm.text('code', code) }}
+ {{ ExpandedForm::text('code', code) }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success">{{ 'pref_save_settings'|_ }}</button>
diff --git a/resources/views/profile/mfa/disable-mfa.twig b/resources/views/profile/mfa/disable-mfa.twig
index 6525f014e5..c9f546556b 100644
--- a/resources/views/profile/mfa/disable-mfa.twig
+++ b/resources/views/profile/mfa/disable-mfa.twig
@@ -26,7 +26,7 @@
<div class="card">
<div class="card-body">
{{ ExpandedForm.password('password', {helpText: 'current_password_confirm_mfa'|_}) }}
- {{ ExpandedForm.text('code', code) }}
+ {{ ExpandedForm::text('code', code) }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-danger">{{ 'pref_disable_mfa'|_ }}</button>
diff --git a/resources/views/profile/mfa/enable-mfa.twig b/resources/views/profile/mfa/enable-mfa.twig
index 3915cfc74d..6b94653eb6 100644
--- a/resources/views/profile/mfa/enable-mfa.twig
+++ b/resources/views/profile/mfa/enable-mfa.twig
@@ -37,7 +37,7 @@
<div class="card">
<div class="card-body">
{{ ExpandedForm.password('password', {helpText: 'current_password_confirm_mfa'|_}) }}
- {{ ExpandedForm.text('code', code) }}
+ {{ ExpandedForm::text('code', code) }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success btn-lg">{{ 'pref_save_settings'|_ }}</button>
diff --git a/resources/views/recurring/create.twig b/resources/views/recurring/create.twig
index 27398612aa..4971e49b4e 100644
--- a/resources/views/recurring/create.twig
+++ b/resources/views/recurring/create.twig
@@ -17,14 +17,14 @@
<h3 class="card-title">{{ 'mandatory_for_recurring'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('title') }}
+ {{ ExpandedForm::text('title') }}
{{ preFilled.first_date.format('Y-m-d') }}
- {{ ExpandedForm.date('first_date',null, {helpText: trans('firefly.help_first_date'), min: preFilled.first_date}) }}
- {{ ExpandedForm.select('repetition_type', [], null, {helpText: trans('firefly.change_date_other_options')}) }}
+ {{ ExpandedForm::date('first_date',null, {helpText: trans('firefly.help_first_date'), min: preFilled.first_date}) }}
+ {{ ExpandedForm::select('repetition_type', [], null, {helpText: trans('firefly.change_date_other_options')}) }}
{{ ExpandedForm.integer('skip',0, {'helpText': trans('firefly.skip_help_text')}) }}
- {{ ExpandedForm.select('weekend', weekendResponses, null, {helpText: trans('firefly.help_weekend')}) }}
- {{ ExpandedForm.select('repetition_end', repetitionEnds) }}
- {{ ExpandedForm.date('repeat_until',null) }}
+ {{ ExpandedForm::select('weekend', weekendResponses, null, {helpText: trans('firefly.help_weekend')}) }}
+ {{ ExpandedForm::select('repetition_end', repetitionEnds) }}
+ {{ ExpandedForm::date('repeat_until',null) }}
{{ ExpandedForm.integer('repetitions',null) }}
{# calendar in popup #}
@@ -49,12 +49,12 @@
<h3 class="card-title">{{ 'optional_for_recurring'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.textarea('recurring_description') }}
+ {{ ExpandedForm::textarea('recurring_description') }}
{# only correct way to do active checkbox #}
- {{ ExpandedForm.checkbox('active', 1) }}
- {{ ExpandedForm.checkbox('apply_rules',1) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::checkbox('active', 1) }}
+ {{ ExpandedForm::checkbox('apply_rules',1) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>
@@ -89,10 +89,10 @@
<input type="hidden" name="transaction_type" value="">
{# end of three buttons #}
- {{ ExpandedForm.text('transaction_description') }}
+ {{ ExpandedForm::text('transaction_description') }}
{# transaction information (mandatory) #}
- {{ CurrencyForm.currencyList('transaction_currency_id', primaryCurrency.id) }}
- {{ ExpandedForm.amountNoCurrency('amount') }}
+ {{ CurrencyForm::currencyList('transaction_currency_id', primaryCurrency.id) }}
+ {{ ExpandedForm::amountNoCurrency('amount') }}
{# source account if withdrawal, or if transfer: #}
{{ AccountForm.longAccountList('source_id', null, {label: trans('form.asset_source_account')}) }}
@@ -104,7 +104,7 @@
{{ AccountForm.longAccountList('destination_id', null, {label: trans('form.asset_destination_account')} ) }}
{# destination account name for withdrawals #}
- {# {{ ExpandedForm.text('destination_name', null, {label: trans('form.expense_account')}) }} #}
+ {# {{ ExpandedForm::text('destination_name', null, {label: trans('form.expense_account')}) }} #}
{# NEW for withdrawals, also a drop down with expense accounts, loans, debts, mortgages or (cash). #}
{{ AccountForm.activeWithdrawalDestinations('withdrawal_destination_id', null, {label: trans('form.withdrawal_destination_id')}) }}
@@ -120,28 +120,28 @@
</div>
<div class="card-body">
{# transaction information (optional) #}
- {{ CurrencyForm.currencyListEmpty('foreign_currency_id') }}
- {{ ExpandedForm.amountNoCurrency('foreign_amount') }}
+ {{ CurrencyForm::currencyListEmpty('foreign_currency_id') }}
+ {{ ExpandedForm::amountNoCurrency('foreign_amount') }}
{# BUDGET ONLY WHEN CREATING A WITHDRAWAL #}
{% if budgets|length > 1 %}
- {{ ExpandedForm.select('budget_id', budgets, null) }}
+ {{ ExpandedForm::select('budget_id', budgets, null) }}
{% else %}
- {{ ExpandedForm.select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }}
+ {{ ExpandedForm::select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }}
{% endif %}
{# CATEGORY ALWAYS #}
- {{ ExpandedForm.text('category') }}
+ {{ ExpandedForm::text('category') }}
{# BILL / SUBSCRIPTION ONLY FOR WITHDRAWALS #}
{% if bills|length > 1 %}
- {{ ExpandedForm.select('bill_id', bills, null) }}
+ {{ ExpandedForm::select('bill_id', bills, null) }}
{% else %}
- {{ ExpandedForm.select('bill_id', bills, null, {helpText: trans('firefly.no_bill_pointer', {link: route('subscriptions.index')})}) }}
+ {{ ExpandedForm::select('bill_id', bills, null, {helpText: trans('firefly.no_bill_pointer', {link: route('subscriptions.index')})}) }}
{% endif %}
{# TAGS #}
- {{ ExpandedForm.text('tags') }}
+ {{ ExpandedForm::text('tags') }}
{# RELATE THIS TRANSFER TO A PIGGY BANK #}
{{ PiggyBankForm.piggyBankList('piggy_bank_id') }}
@@ -158,7 +158,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','recurrence') }}
+ {{ ExpandedForm::optionsList('create','recurrence') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/recurring/edit.twig b/resources/views/recurring/edit.twig
index 03a2c97493..04d6085217 100644
--- a/resources/views/recurring/edit.twig
+++ b/resources/views/recurring/edit.twig
@@ -20,13 +20,13 @@
</div>
<div class="card-body">
<input type="hidden" name="id" value="{{ array.id }}"/>
- {{ ExpandedForm.text('title', array.title) }}
- {{ ExpandedForm.date('first_date',array.first_date, {helpText: trans('firefly.help_first_date_no_past')}) }}
- {{ ExpandedForm.select('repetition_type', [], null, {helpText: trans('firefly.change_date_other_options')}) }}
+ {{ ExpandedForm::text('title', array.title) }}
+ {{ ExpandedForm::date('first_date',array.first_date, {helpText: trans('firefly.help_first_date_no_past')}) }}
+ {{ ExpandedForm::select('repetition_type', [], null, {helpText: trans('firefly.change_date_other_options')}) }}
{{ ExpandedForm.integer('skip', array.repetitions[0].skip, {'helpText': trans('firefly.skip_help_text')}) }}
- {{ ExpandedForm.select('weekend', weekendResponses, array.repetitions[0].weekend, {helpText: trans('firefly.help_weekend')}) }}
- {{ ExpandedForm.select('repetition_end', repetitionEnds, repetitionEnd) }}
- {{ ExpandedForm.date('repeat_until',array.repeat_until) }}
+ {{ ExpandedForm::select('weekend', weekendResponses, array.repetitions[0].weekend, {helpText: trans('firefly.help_weekend')}) }}
+ {{ ExpandedForm::select('repetition_end', repetitionEnds, repetitionEnd) }}
+ {{ ExpandedForm::date('repeat_until',array.repeat_until) }}
{{ ExpandedForm.integer('repetitions', array.nr_of_repetitions) }}
{# calendar in popup #}
@@ -51,12 +51,12 @@
<h3 class="card-title">{{ 'optional_for_recurring'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.textarea('recurring_description',array.description) }}
+ {{ ExpandedForm::textarea('recurring_description',array.description) }}
{# only correct way to do active checkbox #}
- {{ ExpandedForm.checkbox('active', 1, preFilled.active) }}
- {{ ExpandedForm.checkbox('apply_rules', 1, preFilled.apply_rules) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::checkbox('active', 1, preFilled.active) }}
+ {{ ExpandedForm::checkbox('apply_rules', 1, preFilled.apply_rules) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>
@@ -90,10 +90,10 @@
</div>
<input type="hidden" name="transaction_type" value="">
{# end of three buttons #}
- {{ ExpandedForm.text('transaction_description', array.transactions[0].description) }}
+ {{ ExpandedForm::text('transaction_description', array.transactions[0].description) }}
{# transaction information (mandatory) #}
- {{ CurrencyForm.currencyList('transaction_currency_id', array.transactions[0].currency_id) }}
- {{ ExpandedForm.amountNoCurrency('amount', array.transactions[0].amount) }}
+ {{ CurrencyForm::currencyList('transaction_currency_id', array.transactions[0].currency_id) }}
+ {{ ExpandedForm::amountNoCurrency('amount', array.transactions[0].amount) }}
{# source account if withdrawal, or if transfer: #}
{{ AccountForm.longAccountList('source_id', array.transactions[0].source_id, {label: trans('form.asset_source_account')}) }}
@@ -118,29 +118,29 @@
</div>
<div class="card-body">
{# transaction information (optional) #}
- {{ CurrencyForm.currencyListEmpty('foreign_currency_id', array.transactions[0].foreign_currency_id) }}
- {{ ExpandedForm.amountNoCurrency('foreign_amount', array.transactions[0].foreign_amount) }}
+ {{ CurrencyForm::currencyListEmpty('foreign_currency_id', array.transactions[0].foreign_currency_id) }}
+ {{ ExpandedForm::amountNoCurrency('foreign_amount', array.transactions[0].foreign_amount) }}
{# BUDGET ONLY WHEN CREATING A WITHDRAWAL #}
{% if budgets|length > 1 %}
- {{ ExpandedForm.select('budget_id', budgets, array.transactions[0].budget_id) }}
+ {{ ExpandedForm::select('budget_id', budgets, array.transactions[0].budget_id) }}
{% else %}
- {{ ExpandedForm.select('budget_id', budgets, array.transactions[0].budget_id, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }}
+ {{ ExpandedForm::select('budget_id', budgets, array.transactions[0].budget_id, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }}
{# budgets #}
{% endif %}
{# CATEGORY ALWAYS #}
- {{ ExpandedForm.text('category',array.transactions[0].category_name) }}
+ {{ ExpandedForm::text('category',array.transactions[0].category_name) }}
{# BILL ONLY WHEN CREATING A WITHDRAWAL #}
{% if bills|length > 1 %}
- {{ ExpandedForm.select('bill_id', bills, array.transactions[0].subscription_id) }}
+ {{ ExpandedForm::select('bill_id', bills, array.transactions[0].subscription_id) }}
{% else %}
- {{ ExpandedForm.select('bill_id', bills, array.transactions[0].subscription_id, {helpText: trans('firefly.no_bill_pointer', {link: route('subscriptions.index')})}) }}
+ {{ ExpandedForm::select('bill_id', bills, array.transactions[0].subscription_id, {helpText: trans('firefly.no_bill_pointer', {link: route('subscriptions.index')})}) }}
{% endif %}
{# TAGS #}
- {{ ExpandedForm.text('tags', array.transactions[0].tags) }}
+ {{ ExpandedForm::text('tags', array.transactions[0].tags) }}
{# RELATE THIS TRANSFER TO A PIGGY BANK #}
{{ PiggyBankForm.piggyBankList('piggy_bank_id',array.transactions[0].piggy_bank_id) }}
@@ -157,7 +157,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','recurrence') }}
+ {{ ExpandedForm::optionsList('update','recurrence') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/rules/rule-group/create.twig b/resources/views/rules/rule-group/create.twig
index a9ddc93c30..617e6fea72 100644
--- a/resources/views/rules/rule-group/create.twig
+++ b/resources/views/rules/rule-group/create.twig
@@ -11,10 +11,10 @@
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('title') }}
+ {{ ExpandedForm::text('title') }}
</div>
</div>
</div>
@@ -26,7 +26,7 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.textarea('description') }}
+ {{ ExpandedForm::textarea('description') }}
</div>
</div>
</div>
@@ -39,7 +39,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','rule-group') }}
+ {{ ExpandedForm::optionsList('create','rule-group') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">{{ 'store_new_rule_group'|_ }}</button>
diff --git a/resources/views/rules/rule-group/edit.twig b/resources/views/rules/rule-group/edit.twig
index 89087bc115..3d7c189f10 100644
--- a/resources/views/rules/rule-group/edit.twig
+++ b/resources/views/rules/rule-group/edit.twig
@@ -15,13 +15,13 @@
<div class="col-lg-6 col-md-12 col-sm-6">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
{# only correct way to do active checkbox #}
- {{ ExpandedForm.checkbox('active', 1) }}
+ {{ ExpandedForm::checkbox('active', 1) }}
- {{ ExpandedForm.text('title', ruleGroup.title) }}
+ {{ ExpandedForm::text('title', ruleGroup.title) }}
</div>
</div>
@@ -34,7 +34,7 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.textarea('description', ruleGroup.description) }}
+ {{ ExpandedForm::textarea('description', ruleGroup.description) }}
</div>
</div>
</div>
@@ -47,7 +47,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','rule-group') }}
+ {{ ExpandedForm::optionsList('update','rule-group') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">{{ 'update_rule_group'|_ }}</button>
diff --git a/resources/views/rules/rule-group/select-transactions.twig b/resources/views/rules/rule-group/select-transactions.twig
index 87c22f9f4a..1eb65fe59c 100644
--- a/resources/views/rules/rule-group/select-transactions.twig
+++ b/resources/views/rules/rule-group/select-transactions.twig
@@ -24,8 +24,8 @@
</p>
<div class="row">
<div class="col-lg-6 col-md-8 col-sm-12 col-xs-12">
- {{ ExpandedForm.date('start') }}
- {{ ExpandedForm.date('end') }}
+ {{ ExpandedForm::date('start') }}
+ {{ ExpandedForm::date('end') }}
{{ AccountForm.assetAccountCheckList('accounts', {'select_all': true,'class': 'account-checkbox', 'label': trans('firefly.include_transactions_from_accounts') }) }}
</div>
</div>
diff --git a/resources/views/rules/rule/create.twig b/resources/views/rules/rule/create.twig
index e1be580ca4..8516981a82 100644
--- a/resources/views/rules/rule/create.twig
+++ b/resources/views/rules/rule/create.twig
@@ -33,14 +33,14 @@
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="box box-primary" id="mandatory">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('title') }}
- {{ ExpandedForm.select('trigger',allJournalTriggers()) }}
+ {{ ExpandedForm::text('title') }}
+ {{ ExpandedForm::select('trigger',allJournalTriggers()) }}
{{ RuleForm.ruleGroupList('rule_group_id', ruleGroup.id) }}
- {{ ExpandedForm.checkbox('stop_processing',1,null, {helpText: trans('firefly.rule_help_stop_processing')}) }}
- {{ ExpandedForm.checkbox('strict',1, null,{helpText: trans('firefly.rule_help_strict')}) }}
+ {{ ExpandedForm::checkbox('stop_processing',1,null, {helpText: trans('firefly.rule_help_stop_processing')}) }}
+ {{ ExpandedForm::checkbox('strict',1, null,{helpText: trans('firefly.rule_help_strict')}) }}
</div>
</div>
</div>
@@ -52,7 +52,7 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.textarea('description', null, {helpText: trans('firefly.field_supports_markdown')}) }}
+ {{ ExpandedForm::textarea('description', null, {helpText: trans('firefly.field_supports_markdown')}) }}
</div>
</div>
</div>
@@ -132,8 +132,8 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.checkbox('run_after_form',1,null, {helpText: trans('firefly.rule_run_after_creation')}) }}
- {{ ExpandedForm.optionsList('create','rule') }}
+ {{ ExpandedForm::checkbox('run_after_form',1,null, {helpText: trans('firefly.rule_run_after_creation')}) }}
+ {{ ExpandedForm::optionsList('create','rule') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">{{ 'store_new_rule'|_ }}</button>
diff --git a/resources/views/rules/rule/edit.twig b/resources/views/rules/rule/edit.twig
index be28fbca50..aade36b3ca 100644
--- a/resources/views/rules/rule/edit.twig
+++ b/resources/views/rules/rule/edit.twig
@@ -14,18 +14,18 @@
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('title', rule.title) }}
+ {{ ExpandedForm::text('title', rule.title) }}
{{ RuleForm.ruleGroupList('rule_group_id', rule.rule_group_id) }}
- {{ ExpandedForm.select('trigger',allJournalTriggers(), primaryTrigger) }}
+ {{ ExpandedForm::select('trigger',allJournalTriggers(), primaryTrigger) }}
{# only correct way to do active checkbox #}
- {{ ExpandedForm.checkbox('active', 1, null, {helpText: trans('firefly.rule_help_active')}) }}
+ {{ ExpandedForm::checkbox('active', 1, null, {helpText: trans('firefly.rule_help_active')}) }}
- {{ ExpandedForm.checkbox('stop_processing',1,rule.stop_processing, {helpText: trans('firefly.rule_help_stop_processing')}) }}
- {{ ExpandedForm.checkbox('strict',1,rule.strict, {helpText: trans('firefly.rule_help_strict')}) }}
+ {{ ExpandedForm::checkbox('stop_processing',1,rule.stop_processing, {helpText: trans('firefly.rule_help_stop_processing')}) }}
+ {{ ExpandedForm::checkbox('strict',1,rule.strict, {helpText: trans('firefly.rule_help_strict')}) }}
</div>
</div>
</div>
@@ -37,7 +37,7 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.textarea('description', rule.description, {helpText: trans('firefly.field_supports_markdown')}) }}
+ {{ ExpandedForm::textarea('description', rule.description, {helpText: trans('firefly.field_supports_markdown')}) }}
</div>
</div>
</div>
@@ -118,8 +118,8 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.checkbox('run_after_form',1,null, {helpText: trans('firefly.rule_run_after_edit')}) }}
- {{ ExpandedForm.optionsList('update','rule') }}
+ {{ ExpandedForm::checkbox('run_after_form',1,null, {helpText: trans('firefly.rule_run_after_edit')}) }}
+ {{ ExpandedForm::optionsList('update','rule') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">{{ 'update_rule'|_ }}</button>
diff --git a/resources/views/rules/rule/select-transactions.twig b/resources/views/rules/rule/select-transactions.twig
index 11a7d769f7..5a4eeb88cb 100644
--- a/resources/views/rules/rule/select-transactions.twig
+++ b/resources/views/rules/rule/select-transactions.twig
@@ -23,8 +23,8 @@
</p>
<div class="row">
<div class="col-lg-6 col-md-8 col-sm-12 col-xs-12">
- {{ ExpandedForm.date('start') }}
- {{ ExpandedForm.date('end') }}
+ {{ ExpandedForm::date('start') }}
+ {{ ExpandedForm::date('end') }}
{{ AccountForm.assetAccountCheckList('accounts', {'select_all': true, 'class': 'account-checkbox', 'label': trans('firefly.include_transactions_from_accounts') }) }}
</div>
</div>
diff --git a/resources/views/settings/link/create.twig b/resources/views/settings/link/create.twig
index 3a5dfb9f63..7133b590f1 100644
--- a/resources/views/settings/link/create.twig
+++ b/resources/views/settings/link/create.twig
@@ -12,12 +12,12 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name', null, {helpText: trans('firefly.link_type_help_name')}) }}
- {{ ExpandedForm.text('inward', null, {helpText: trans('firefly.link_type_help_inward')}) }}
- {{ ExpandedForm.text('outward', null, {helpText: trans('firefly.link_type_help_outward')}) }}
+ {{ ExpandedForm::text('name', null, {helpText: trans('firefly.link_type_help_name')}) }}
+ {{ ExpandedForm::text('inward', null, {helpText: trans('firefly.link_type_help_inward')}) }}
+ {{ ExpandedForm::text('outward', null, {helpText: trans('firefly.link_type_help_outward')}) }}
</div>
</div>
</div>
@@ -30,7 +30,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','link_type') }}
+ {{ ExpandedForm::optionsList('create','link_type') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">{{ 'store_new_link_type'|_ }}</button>
diff --git a/resources/views/settings/link/edit.twig b/resources/views/settings/link/edit.twig
index e4e7ad06e4..138f14b776 100644
--- a/resources/views/settings/link/edit.twig
+++ b/resources/views/settings/link/edit.twig
@@ -15,12 +15,12 @@
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('name', linkType.name, {helpText: trans('firefly.link_type_help_name')}) }}
- {{ ExpandedForm.text('inward', linkType.inward, {helpText: trans('firefly.link_type_help_inward')}) }}
- {{ ExpandedForm.text('outward', linkType.outward, {helpText: trans('firefly.link_type_help_outward')}) }}
+ {{ ExpandedForm::text('name', linkType.name, {helpText: trans('firefly.link_type_help_name')}) }}
+ {{ ExpandedForm::text('inward', linkType.inward, {helpText: trans('firefly.link_type_help_inward')}) }}
+ {{ ExpandedForm::text('outward', linkType.outward, {helpText: trans('firefly.link_type_help_outward')}) }}
</div>
</div>
</div>
@@ -34,7 +34,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','link_type') }}
+ {{ ExpandedForm::optionsList('update','link_type') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/settings/notifications/index.twig b/resources/views/settings/notifications/index.twig
index 82197caf2e..1a4a24e23c 100644
--- a/resources/views/settings/notifications/index.twig
+++ b/resources/views/settings/notifications/index.twig
@@ -24,15 +24,15 @@
</div>
{% endfor %}
<p class="mt-5">{{ 'channel_settings'|_ }}</p>
- {{ ExpandedForm.text('slack_webhook_url', slackUrl, {'label' : 'slack_url_label'|_, helpText: trans('firefly.slack_discord_double')}) }}
+ {{ ExpandedForm::text('slack_webhook_url', slackUrl, {'label' : 'slack_url_label'|_, helpText: trans('firefly.slack_discord_double')}) }}
- {{ ExpandedForm.text('pushover_app_token', pushoverAppToken, {}) }}
- {{ ExpandedForm.text('pushover_user_token', pushoverUserToken, {}) }}
+ {{ ExpandedForm::text('pushover_app_token', pushoverAppToken, {}) }}
+ {{ ExpandedForm::text('pushover_user_token', pushoverUserToken, {}) }}
- {{ ExpandedForm.text('ntfy_server', ntfyServer, {}) }}
- {{ ExpandedForm.text('ntfy_topic', ntfyTopic, {}) }}
- {{ ExpandedForm.checkbox('ntfy_auth','1', ntfyAuth, {}) }}
- {{ ExpandedForm.text('ntfy_user', ntfyUser, {}) }}
+ {{ ExpandedForm::text('ntfy_server', ntfyServer, {}) }}
+ {{ ExpandedForm::text('ntfy_topic', ntfyTopic, {}) }}
+ {{ ExpandedForm::checkbox('ntfy_auth','1', ntfyAuth, {}) }}
+ {{ ExpandedForm::text('ntfy_user', ntfyUser, {}) }}
{{ ExpandedForm.passwordWithValue('ntfy_pass', ntfyPass, {}) }}
</div>
<div class="box-footer">
diff --git a/resources/views/settings/update/index.twig b/resources/views/settings/update/index.twig
index 54e0bf697f..cff3aa5211 100644
--- a/resources/views/settings/update/index.twig
+++ b/resources/views/settings/update/index.twig
@@ -19,7 +19,7 @@
<p class="text-info">
{{ 'admin_update_channel_explain'|_ }}
</p>
- {{ ExpandedForm.select('update_channel', channelOptions, channelSelected) }}
+ {{ ExpandedForm::select('update_channel', channelOptions, channelSelected) }}
</div>
</div>
</div>
@@ -34,7 +34,7 @@
<p class="text-info">
{{ 'admin_update_check_explain'|_ }}
</p>
- {{ ExpandedForm.select('check_for_updates',options, selected) }}
+ {{ ExpandedForm::select('check_for_updates',options, selected) }}
</div>
</div>
</div>
diff --git a/resources/views/settings/users/edit.twig b/resources/views/settings/users/edit.twig
index e59b709c8c..c6286031fc 100644
--- a/resources/views/settings/users/edit.twig
+++ b/resources/views/settings/users/edit.twig
@@ -16,11 +16,11 @@
<div class="col-lg-6 col-md-6 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
{% if canEditDetails %}
- {{ ExpandedForm.text('email',user.email,{'helpText': trans('firefly.admin_update_email')}) }}
+ {{ ExpandedForm::text('email',user.email,{'helpText': trans('firefly.admin_update_email')}) }}
{{ ExpandedForm.password('password') }}
{{ ExpandedForm.password('password_confirmation') }}
{% else %}
@@ -28,10 +28,10 @@
<input type="hidden" name="password" value=""/>
<input type="hidden" name="password_confirmation" value=""/>
{% endif %}
- {{ ExpandedForm.checkbox('blocked') }}
- {{ ExpandedForm.select('blocked_code', codes, user.blocked_code) }}
+ {{ ExpandedForm::checkbox('blocked') }}
+ {{ ExpandedForm::select('blocked_code', codes, user.blocked_code) }}
{% if user.id != currentUser.id %}
- {{ ExpandedForm.checkbox('is_owner',1,isAdmin) }}
+ {{ ExpandedForm::checkbox('is_owner',1,isAdmin) }}
{% endif %}
</div>
</div>
@@ -45,7 +45,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','account') }}
+ {{ ExpandedForm::optionsList('update','account') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/settings/users/index.twig b/resources/views/settings/users/index.twig
index b6202bbacf..50803264b7 100644
--- a/resources/views/settings/users/index.twig
+++ b/resources/views/settings/users/index.twig
@@ -17,7 +17,7 @@
<p>
{{ 'invite_new_user_text'|_ }}
</p>
- {{ ExpandedForm.text('invited_user',null, {'type': 'email', 'label' : 'invited_user_mail'|_}) }}
+ {{ ExpandedForm::text('invited_user',null, {'type': 'email', 'label' : 'invited_user_mail'|_}) }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">
diff --git a/resources/views/tags/create.twig b/resources/views/tags/create.twig
index 6cadd4a43e..91eec15c60 100644
--- a/resources/views/tags/create.twig
+++ b/resources/views/tags/create.twig
@@ -17,10 +17,10 @@
<div class="col-lg-5 col-md-5 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('tag') }}
+ {{ ExpandedForm::text('tag') }}
</div>
</div>
</div>
@@ -32,9 +32,9 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.date('date') }}
- {{ ExpandedForm.textarea('description') }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::date('date') }}
+ {{ ExpandedForm::textarea('description') }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>
@@ -47,7 +47,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('create','tag') }}
+ {{ ExpandedForm::optionsList('create','tag') }}
</div>
<div class="box-footer">
<button type="submit" class="btn btn-success pull-right">
diff --git a/resources/views/tags/edit.twig b/resources/views/tags/edit.twig
index 4f6dd5b6df..a78b2fcc0e 100644
--- a/resources/views/tags/edit.twig
+++ b/resources/views/tags/edit.twig
@@ -21,10 +21,10 @@
<div class="col-lg-5 col-md-5 col-sm-12">
<div class="card">
<div class="card-header">
- <h3 class="card-title">{{ 'mandatoryFields'|_ }}</h3>
+ <h3 class="card-title">{{ __('firefly.mandatoryFields') }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.text('tag', tag.tag) }}
+ {{ ExpandedForm::text('tag', tag.tag) }}
</div>
</div>
</div>
@@ -36,9 +36,9 @@
<h3 class="card-title">{{ 'optionalFields'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.date('date', tag.date.format('Y-m-d')) }}
- {{ ExpandedForm.textarea('description', tag.description) }}
- {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
+ {{ ExpandedForm::date('date', tag.date.format('Y-m-d')) }}
+ {{ ExpandedForm::textarea('description', tag.description) }}
+ {{ ExpandedForm::file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>
@@ -51,7 +51,7 @@
<h3 class="card-title">{{ 'options'|_ }}</h3>
</div>
<div class="card-body">
- {{ ExpandedForm.optionsList('update','tag') }}
+ {{ ExpandedForm::optionsList('update','tag') }}
</div>
<div class="box-footer">
<button type="submit" class="btn pull-right btn-success">