~xibo-maintainers/xibo/release22

« back to all changes in this revision

Viewing changes to views/displaygroup-form-copy.twig

  • Committer: GitHub
  • Author(s): Dan Garner
  • Date: 2019-08-22 11:52:43 UTC
  • mfrom: (698.1.72)
  • Revision ID: git-v1:b39d8fee23eb1dedc2a60d20c85a0d5d4f6e4bff
Tags: 2.1.0
Merge pull request #662 from xibosignage/release21

Release 2.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{#
 
2
/**
 
3
 * Copyright (C) 2019 Xibo Signage Ltd
 
4
 *
 
5
 * Xibo - Digital Signage - http://www.xibo.org.uk
 
6
 *
 
7
 * This file is part of Xibo.
 
8
 *
 
9
 * Xibo is free software: you can redistribute it and/or modify
 
10
 * it under the terms of the GNU Affero General Public License as published by
 
11
 * the Free Software Foundation, either version 3 of the License, or
 
12
 * any later version.
 
13
 *
 
14
 * Xibo is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU Affero General Public License for more details.
 
18
 *
 
19
 * You should have received a copy of the GNU Affero General Public License
 
20
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 
21
 */
 
22
#}
 
23
 
 
24
{% extends "form-base.twig" %}
 
25
{% import "forms.twig" as forms %}
 
26
 
 
27
{% block formTitle %}
 
28
    {% set name = displayGroup.displayGroup %}
 
29
    {% trans %}Copy {{ name }}{% endtrans %}
 
30
{% endblock %}
 
31
 
 
32
{% block formButtons %}
 
33
    {% trans "Cancel" %}, XiboDialogClose()
 
34
    {% trans "Save" %}, $("#displayGroupCopyForm").submit()
 
35
{% endblock %}
 
36
 
 
37
{% block formHtml %}
 
38
    <div class="row">
 
39
        <div class="col-md-12">
 
40
            <form id="displayGroupCopyForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("displayGroup.copy", {id: displayGroup.displayGroupId}) }}">
 
41
                {% set title %}{% trans "Name" %}{% endset %}
 
42
                {% set helpText %}{% trans "The Name for this Display Profile" %}{% endset %}
 
43
                {% set name %}{{ displayGroup.displayGroup }} 2{% endset %}
 
44
                {{ forms.input("displayGroup", title, name, helpText,"","required") }}
 
45
 
 
46
                {% set title %}{% trans "Description" %}{% endset %}
 
47
                {% set helpText %}{% trans "The description for this Display Profile" %}{% endset %}
 
48
                {% set description %}{{ displayGroup.description }}{% endset %}
 
49
                {{ forms.input("description", title, description, helpText) }}
 
50
 
 
51
                {% if displayGroup.isDynamic == 0 %}
 
52
                    {% set title %}{% trans "Copy Memebers?" %}{% endset %}
 
53
                    {% set helpText %}{% trans "Should we copy all members to the new Display Group?" %}{% endset %}
 
54
                    {{ forms.checkbox("copyMembers", title, 0, helpText) }}
 
55
                {% endif %}
 
56
 
 
57
                {% set title %}{% trans "Copy Assignments?" %}{% endset %}
 
58
                {% set helpText %}{% trans "Should we copy all file and layout assignments to the new Display Group?" %}{% endset %}
 
59
                {{ forms.checkbox("copyAssignments", title, 0, helpText) }}
 
60
 
 
61
                {% set title %}{% trans "Copy Tags?" %}{% endset %}
 
62
                {% set helpText %}{% trans "Should we copy all tags to the new Display Group?" %}{% endset %}
 
63
                {{ forms.checkbox("copyTags", title, 0, helpText) }}
 
64
            </form>
 
65
        </div>
 
66
    </div>
 
67
{% endblock %}
 
 
b'\\ No newline at end of file'