{% from 'confirmation_dialog.html' import confirmation_dialog %} {% set ok_text=_("Delete events") %} {% set confirmation_message %} {% if num_bookings %} {% trans strong=''|safe, endstrong=''|safe -%} Please note that if you delete the events you will lose all the information contained in them, {{ strong }}including {{ num_bookings }} Room Booking(s){{ endstrong }}. This operation is irreversible! {%- endtrans %} {% else %} {% trans -%} Please note that if you delete the events you will lose all the information contained in them. This operation is irreversible! {%- endtrans %} {% endif %} {% 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 %}