mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-03 04:29:40 +00:00
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.
This commit is contained in:
@@ -24,4 +24,14 @@
|
||||
</div>
|
||||
|
||||
{{ chill_pagination(pagination) }}
|
||||
|
||||
{% if pagination.totalItems <= constant('Chill\\MainBundle\\Audit\\AuditEventDumper::MAX_LINES') %}
|
||||
<ul class="record_actions sticky-form-buttons">
|
||||
<li>
|
||||
<form method="post" action="{{ path('chill_main_audit_trail_generate', app.request.query.all) }}">
|
||||
<button class="btn btn-action"><i class="bi bi-download"></i> {{ 'audit_trail.list.download'|trans }}</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user