mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 05:54:32 +02:00
Show a confirmation message, if you delete parts via part table select.
This commit is contained in:
parent
452f0a8362
commit
4c574316c8
3 changed files with 66 additions and 1 deletions
|
@ -19,7 +19,9 @@
|
|||
|
||||
{% macro partsDatatableWithForm(datatable) %}
|
||||
<form method="post" action="{{ path("table_action") }}"
|
||||
{{ stimulus_controller('elements/datatables/parts') }} data-dt-settings='{{ datatable_settings(datatable)|escape('html_attr') }}' data-dt-url="{{ app.request.pathInfo }}">
|
||||
{{ stimulus_controller('elements/datatables/parts') }} data-dt-settings='{{ datatable_settings(datatable)|escape('html_attr') }}' data-dt-url="{{ app.request.pathInfo }}"
|
||||
{{ stimulus_action('elements/datatables/parts', 'confirmDeletionAtSubmit') }} data-delete-title="{% trans %}part_list.action.delete-title{% endtrans %}"
|
||||
data-delete-message="{% trans %}part_list.action.delete-message{% endtrans %}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('table_action') }}">
|
||||
|
||||
<input type="hidden" name="redirect_back" value="{{ app.request.uri }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue