{% extends './layout/default' %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, bill) }} {% endblock %} {% block content %} {{ Form.model(bill, {'class' : 'form-horizontal','enctype': 'multipart/form-data','id' : 'update','url' : route('bills.update', bill.id)}) }}

{{ 'mandatoryFields'|_ }}

{% if rules.count() > 0 %} {{ ExpandedForm.text('name',null, {helpText: trans_choice('firefly.bill_edit_rules', rules.count())}) }} {% else %} {{ ExpandedForm.text('name') }} {% endif %} {{ CurrencyForm.currencyList('transaction_currency_id') }} {{ ExpandedForm.amountNoCurrency('amount_min') }} {{ ExpandedForm.amountNoCurrency('amount_max') }} {{ ExpandedForm.date('date',bill.date.format('Y-m-d')) }} {{ ExpandedForm.select('repeat_freq',periods) }} {{ ExpandedForm.integer('skip') }}

{{ 'optionalFields'|_ }}

{{ 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.objectGroup() }} {# only correct way to do active checkbox #} {{ ExpandedForm.checkbox('active', 1) }}

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','bill') }}
{% endblock %} {% block styles %} {% endblock %} {% block scripts %} {# auto complete for object groups #} {% endblock %}