diff --git a/src/Resources/views/brick/list_items/_batch.html.twig b/src/Resources/views/brick/list_items/_batch.html.twig index b9f6e3c9..1d2024c7 100644 --- a/src/Resources/views/brick/list_items/_batch.html.twig +++ b/src/Resources/views/brick/list_items/_batch.html.twig @@ -21,6 +21,11 @@ class="{{ action.cssClass ?? 'btn btn-sm crudit-batch-dropdown-item dropdown-item' }}" {% if action.modal %} data-bs-toggle="modal" data-bs-target="#modal_{{ action.id }}" + {% elseif action.confirmModal %} + data-bs-toggle="modal" + data-bs-target="#modal-confirm" + data-confirm-link="{{ path(action.path.route, params) }}" + data-confirm-text="{{ ('modal.confirm.' ~ action.label)|trans }}" {% elseif form %} data-form="batch-form-{{ key ~ '-' ~ view.id }}" {% else %}