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

{{ 'mandatoryFields'|_ }}

{# only correct way to do active checkbox #} {{ ExpandedForm.checkbox('active', 1) }} {{ ExpandedForm.text('name', budget.name) }}
{# panel for auto-budget #}

{{ 'optionalFields'|_ }}

{{ ExpandedForm.select('auto_budget_type', autoBudgetTypes, autoBudget.auto_budget_type) }} {{ CurrencyForm.currencyList('auto_budget_currency_id', autoBudget.transaction_currency_id) }} {{ ExpandedForm.amountNoCurrency('auto_budget_amount', preFilled.auto_budget_amount) }} {{ ExpandedForm.select('auto_budget_period', autoBudgetPeriods, autoBudget.period) }} {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
{# panel for options #}

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','budget') }}
{% endblock %} {% block scripts %} {% endblock %}