added action to reload twig invoice template (#3876)

This commit is contained in:
Kevin Papst
2023-02-25 19:10:29 +01:00
committed by GitHub
parent 266c4bad25
commit a9849fc6cf
6 changed files with 63 additions and 18 deletions

View File

@@ -1,6 +1,11 @@
{% 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' %}
@@ -60,9 +65,7 @@
{% endif %}
</td>
<td class="actions">
{% if not config.used %}
{{ actions.invoice_document(document, 'index') }}
{% endif %}
{{ actions.invoice_document(document, config.used, 'index') }}
</td>
</tr>
{% endfor %}