{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}

{% block formTitle %}
    {% set layout = layout.layout %}
    {% trans %}Delete {{ layout }}{% endtrans %}
{% endblock %}

{% block formButtons %}
    {% trans "Help" %}, XiboHelpRender("{{ help.delete }}")
    {% trans "Retire" %}, XiboSwapDialog("{{ urlFor("layout.retire.form", {id: layout.layoutId}) }}")
    {% trans "No" %}, XiboDialogClose()
    {% trans "Yes" %}, $("#layoutDeleteForm").submit()
{% endblock %}

{% block formHtml %}
    <div class="row">
        <div class="col-md-12">
            <form id="layoutDeleteForm" class="XiboForm form-horizontal" method="delete" action="{{ urlFor("layout.delete", {id: layout.layoutId}) }}">
                {% set message %}{% trans "Are you sure you want to delete this layout?" %}{% endset %}
                {{ forms.message(message) }}
                
                {% set message %}{% trans "All media will be unassigned and any layout specific media such as text/rss will be lost. The layout will be removed from all Schedules." %}{% endset %}
                {{ forms.message(message) }}
            </form>
        </div>
    </div>
{% endblock %}