{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block status %} {% from "macros/status.html.twig" import status_count %} {{ status_count(documents|length) }} {% endblock %} {% block main %} {% if can_upload and form is not null %} {% embed '@theme/embeds/card.html.twig' %} {% form_theme form 'form/horizontal.html.twig' %} {% block box_title %} {{ 'upload'|trans }} {% endblock %} {% block box_before %} {{ form_start(form) }} {% endblock %} {% block box_after %} {{ form_end(form) }} {% endblock %} {% block box_body %} {{ form_row(form.document) }}

{{ 'download_invoice_renderer'|trans({}, 'invoice-renderer') }}

{% endblock %} {% block box_footer %} {{ 'back'|trans }} {% endblock %} {% endembed %} {% elseif upload_error is not null %} {{ widgets.callout('warning', upload_error|trans(error_replacer)) }} {% endif %} {% if documents|length > 0 %} {% embed '@theme/embeds/card.html.twig' with {'documents': documents} %} {% import "invoice/actions.html.twig" as actions %} {% import "macros/widgets.html.twig" as widgets %} {% block box_title %}{{ 'invoice_renderer'|trans({}, 'invoice-renderer') }}{% endblock %} {% block box_attributes %} id="invoice_document_list" {% endblock %} {% block box_body_class %}p-0{% endblock %} {% block box_body %} {% for config in documents %} {% set document = config.document %} {% endfor %}
{{ 'file'|trans }} {{ 'updated_at'|trans }} {{ 'template'|trans }}
{{ document.name }} {{ document.lastChange|date }} {% if config.template is not null %} {{ config.template.name }} {% endif %} {{ actions.invoice_document(document, config.used, 'index') }}
{% endblock %} {% endembed %} {% endif %} {% endblock %}