{% embed 'embeds/modal.html.twig' %} {% set used = used|default(false) %} {% block modal_id %}form_modal{% endblock %} {% block modal_class %}{% if used %}modal-danger{% endif %}{% endblock %} {% block modal_before %}{{ form_start(form) }}{% endblock %} {% block modal_title %} {{ title|default('confirm.delete'|trans) }} {% endblock %} {% block modal_body %} {% if used is same as (false) %} {{ 'delete.not_in_use'|trans }} {% else %}

{{ message }}

{{ form_widget(form) }} {% endif %} {% endblock %} {% block modal_footer %} {% endblock %} {% block modal_end %}{{ form_end(form) }}{% endblock %} {% endembed %}