From 98130bb452d69a0574b6b14b22a09d355597ea7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 23 Feb 2026 11:44:41 +0100 Subject: [PATCH] Add "Download" button to Audit Trail list when items are within exportable limit - Display a download button if the total number of audit trail items is within `MAX_LINES`. - Added the download action as a form submission with the appropriate route. --- .../Resources/views/AuditTrail/list.html.twig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Resources/views/AuditTrail/list.html.twig b/src/Bundle/ChillMainBundle/Resources/views/AuditTrail/list.html.twig index 1991b11e5..b77ed8662 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/AuditTrail/list.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/AuditTrail/list.html.twig @@ -24,4 +24,14 @@ {{ chill_pagination(pagination) }} + + {% if pagination.totalItems <= constant('Chill\\MainBundle\\Audit\\AuditEventDumper::MAX_LINES') %} + + {% endif %} {% endblock %}