{% extends "./layout/default.twig" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, journal) }} {% endblock %} {% block content %}

{{ 'mandatoryFields'|_ }}

{{ ExpandedForm.text('description',journal.description) }} {% if what == 'deposit' or what == 'withdrawal' %} {{ ExpandedForm.select('account_id',accounts,data['account_id']) }} {% endif %} {% if what == 'withdrawal' %} {{ ExpandedForm.text('expense_account',data['expense_account']) }} {% endif %} {% if what == 'deposit' %} {{ ExpandedForm.text('revenue_account',data['revenue_account']) }} {% endif %} {% if what == 'transfer' %} {{ ExpandedForm.select('account_from_id',accounts,data['account_from_id']) }} {{ ExpandedForm.select('account_to_id',accounts,data['account_to_id']) }} {% endif %} {{ ExpandedForm.amount('amount',data.amount,{'currency' : journal.transactionCurrency}) }} {{ ExpandedForm.date('date',data['date']) }}

{{ 'optionalFields'|_ }}

{% if what == 'withdrawal' %} {{ ExpandedForm.select('budget_id',budgets,data['budget_id']) }} {% endif %} {{ ExpandedForm.text('category',data['category']) }} {{ ExpandedForm.text('tags') }} {% if what == 'withdrawal' and piggies|length > 0 %} {{ ExpandedForm.select('piggy_bank_id',piggies,data['piggy_bank_id']) }} {% endif %} {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}

{{ 'options'|_ }}

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