Files
Cloud-CMS/views/layout-form-delete.twig

28 lines
1.1 KiB
Twig
Raw Normal View History

2025-12-02 10:32:59 -05:00
{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}
{% block formTitle %}
{% set layout = layout.layout %}
{% trans %}Delete {{ layout }}{% endtrans %}
{% endblock %}
{% block formButtons %}
{% trans "Retire" %}, XiboSwapDialog("{{ url_for("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="{{ url_for("layout.delete", {id: layout.layoutId}) }}">
{% set message %}{% trans "Are you sure you want to delete this item?" %}{% endset %}
{{ forms.message(message) }}
{% set message %}{% trans "All media will be unassigned and any widgets such as text/rss will be lost, unless they are on playlists. The item will be removed from all Schedules." %}{% endset %}
{{ forms.message(message) }}
</form>
</div>
</div>
{% endblock %}