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

{{ ExpandedForm.text('name') }} {{ ExpandedForm.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) }}

{{ 'optionalFields'|_ }}

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

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','bill') }}
{{ Form.close|raw }} {% endblock %} {% block styles %} {% endblock %} {% block scripts %} {% endblock %}