Use common settings for all element history tables

This commit is contained in:
Jan Böhmer 2022-10-09 20:27:31 +02:00
parent f50959837f
commit 38ff9bae4a
8 changed files with 36 additions and 18 deletions

View file

@ -1,11 +0,0 @@
{% import "components/datatables.macro.html.twig" as datatables %}
<form method="post" action="{{ path("log_undo") }}"
{{ stimulus_controller('elements/delete_btn') }} {{ stimulus_action('elements/delete_btn', "submit", "submit") }}
data-delete-title="{% trans %}log.undo.confirm_title{% endtrans %}"
data-delete-message="{% trans %}log.undo.confirm_message{% endtrans %}">
<input type="hidden" name="redirect_back" value="{{ app.request.uri }}">
{{ datatables.logDataTable(datatable) }}
</form>

View file

@ -51,5 +51,6 @@
</div>
</div>
{% include "LogSystem/_log_table.html.twig" %}
{% import "components/history_log_macros.html.twig" as log %}
{{ log.system_log_component(datatable) }}
{% endblock %}