{% 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', currencies) }} {% endif %}

{{ 'optionalFields'|_ }}

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

{{ 'options'|_ }}

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