{% embed '@AdminLTE/Widgets/box-widget.html.twig' with {'boxtype': 'danger'} %}
    {% block box_before %}
        {{ form_start(form) }}
    {% endblock %}
    {% block box_title %}
        {{ title|default('confirm.delete'|trans) }}
    {% endblock %}
    {% block box_body %}
        {% block form_body %}
            {% if used is same as (false) %}
                {{ 'delete.not_in_use'|trans }}
                <div class="hidden">
                    {{ form_widget(form) }}
                </div>
            {% else %}
                <p>{{ message }}</p>
                {{ form_widget(form) }}
            {% endif %}            
        {% endblock %}
    {% endblock %}
    {% block box_footer %}
        <input type="submit" value="{{ 'action.delete'|trans }}" class="btn btn-danger" />
        {% if back %}
            <a href="{{ back }}" class="btn btn-link">{{ 'action.back'|trans }}</a>
        {% endif %}
    {% endblock %}
    {% block box_after %}
        {{ form_end(form) }}
    {% endblock %}
{% endembed %}
