~xibo-maintainers/xibo/tempel

529.4.3 by Dan Garner
Working daypart add/edit/delete forms.
1
{#
2
/*
3
 * Xibo - Digital Signage - http://www.xibo.org.uk
4
 * Copyright (C) 2012-2016 Spring Signage Ltd - http://www.springsignage.com
5
 *
6
 * This file is part of Xibo.
7
 *
8
 * Xibo is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU Affero General Public License as published by
10
 * the Free Software Foundation, either version 3 of the License, or
11
 * any later version.
12
 *
13
 * Xibo is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU Affero General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU Affero General Public License
19
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
20
 *
21
 * (daypart-form.delete.twig)
22
 */
23
#}
24
25
{% extends "form-base.twig" %}
26
{% import "forms.twig" as forms %}
27
28
{% block formTitle %}
29
    {% trans "Delete Daypart" %}
30
{% endblock %}
31
32
{% block formButtons %}
33
    {% trans "Cancel" %}, XiboDialogClose()
34
    {% trans "Yes" %}, $("#dayPartDeleteForm").submit()
35
{% endblock %}
36
37
{% block formHtml %}
38
    <div class="row">
39
        <div class="col-md-12">
40
            <form id="dayPartDeleteForm" class="XiboForm form-horizontal" method="delete" action="{{ urlFor("daypart.delete", {"id": dayPart.dayPartId}) }}">
41
                {% set message %}{% trans "Are you sure you want to delete this Daypart? This cannot be undone" %}{% endset %}
42
                {{ forms.message(message) }}
43
            </form>
44
        </div>
45
    </div>
46
{% endblock %}