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

{{ 'mandatoryFields'|_ }}

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

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