{% from 'confirmation_dialog.html' import confirmation_dialog %} {% set ok_text=_("Delete events") %} {% set confirmation_message %} {% trans -%} Please note that if you delete the events you will lose all the information contained in them. This operation is irreversible! {%- endtrans %} {% endset %} {% if events %} {% call confirmation_dialog('danger', message=confirmation_message, ok_text=ok_text) %} {% trans count=events|length -%} You are about to delete the following event: {%- pluralize -%} You are about to delete the following {{ count }} events: {%- endtrans %}