{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, what) }} {% endblock %} {% block content %}

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('name') }} {% if what == 'asset' %} {# Not really mandatory but OK #} {{ ExpandedForm.select('currency_id', currencySelectList, null, {helpText:'account_default_currency'|_}) }} {% endif %}

{{ 'optionalFields'|_ }}

{{ ExpandedForm.text('iban') }} {{ ExpandedForm.text('BIC', null, {maxlength: 11}) }} {{ ExpandedForm.text('accountNumber') }} {% if what == 'asset' %} {{ ExpandedForm.nonSelectableBalance('openingBalance') }} {{ ExpandedForm.date('openingBalanceDate') }} {{ ExpandedForm.select('accountRole', roles,null,{'helpText' : 'asset_account_role_help'|_}) }} {{ ExpandedForm.nonSelectableBalance('virtualBalance') }} {% endif %}

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('create','account') }}
{% endblock %} {% block scripts %} {# JS currency list for update thing #} {% endblock %} {% block styles %} {% endblock %}