{% extends './layout/default' %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, objectType) }} {% endblock %} {% block content %}

{{ 'mandatoryFields'|_ }}

{{ 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 %}

{{ 'optionalFields'|_ }}

{{ 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 #} {{ ExpandedForm.checkbox('include_net_worth', 1) }} {{ 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}) }) }}

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('create','account') }}
{% endblock %} {% block scripts %} {% endblock %} {% block styles %} {% endblock %}