{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, journal) }} {% endblock %} {% block content %}
{% if errors.all|length > 0 %}

{{ 'errors'|_ }}

    {% for err in errors.all %}
  • {{ err }}
  • {% endfor %}
{% endif %}

{{ 'mandatoryFields'|_ }}

{# ALWAYS AVAILABLE #} {{ ExpandedForm.staticText('description',journal.description) }} {# ALWAYS SHOW AMOUNT #} {{ ExpandedForm.nonSelectableAmount('amount',data.amount, {'currency' : data.currency}) }} {# ALWAYS SHOW DATE #} {{ ExpandedForm.staticText('date',journal.date.formatLocalized(monthAndDayFormat)) }}

{{ 'optionalFields'|_ }}

{# category always #} {{ ExpandedForm.text('category',data.category) }} {# tags #} {{ ExpandedForm.text('tags') }}
{# box for attachments #} {% if optionalFields.attachments %}

{{ 'optional_field_attachments'|_ }}

{% if optionalFields.attachments %} {# attachments #} {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }} {% endif %}
{% endif %} {# panel for options #}

{{ 'options'|_ }}

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