~xibo-maintainers/xibo/tempel

« back to all changes in this revision

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

  • Committer: Dan Garner
  • Date: 2016-02-16 14:21:08 UTC
  • mto: This revision was merged to the branch mainline in revision 484.
  • Revision ID: git-v1:63232095626c7ce5aee618d037440309aa4f8e42
UI/Model/Structure for dynamic display groups.
xibosignage/xibo#724

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    {% trans "Save" %}, $("#displayGroupAddForm").submit()
21
21
{% endblock %}
22
22
 
 
23
{% block formFieldActions %}
 
24
    [{
 
25
    "field": "isDynamic",
 
26
    "trigger": "init",
 
27
    "value": false,
 
28
    "operation": "is:checked",
 
29
    "actions": {
 
30
    ".dynamic-fields": { "display": "none" }
 
31
    }
 
32
    },{
 
33
    "field": "isDynamic",
 
34
    "trigger": "change",
 
35
    "value": false,
 
36
    "operation": "is:checked",
 
37
    "actions": {
 
38
    ".dynamic-fields": { "display": "none" }
 
39
    }
 
40
    },{
 
41
    "field": "isDynamic",
 
42
    "trigger": "init",
 
43
    "value": true,
 
44
    "operation": "is:checked",
 
45
    "actions": {
 
46
    ".dynamic-fields": { "display": "block" }
 
47
    }
 
48
    },{
 
49
    "field": "isDynamic",
 
50
    "trigger": "change",
 
51
    "value": true,
 
52
    "operation": "is:checked",
 
53
    "actions": {
 
54
    ".dynamic-fields": { "display": "block" }
 
55
    }
 
56
    }]
 
57
{% endblock %}
 
58
 
 
59
{% block callBack %}displayGroupFormOpen{% endblock %}
 
60
 
23
61
{% block formHtml %}
24
62
    <div class="row">
25
63
        <div class="col-md-12">
31
69
                {% set title %}{% trans "Description" %}{% endset %}
32
70
                {% set helpText %}{% trans "A short description of this Display Group" %}{% endset %}
33
71
                {{ forms.input("description", title, "", helpText) }}
 
72
 
 
73
                {% set title %}{% trans "Dynamic Group?" %}{% endset %}
 
74
                {% set helpText %}{% trans "Are the members of this group dynamic?" %}{% endset %}
 
75
                {{ forms.checkbox("isDynamic", title, 0, helpText) }}
 
76
 
 
77
                {% set title %}{% trans "Criteria" %}{% endset %}
 
78
                {% set helpText %}{% trans "A comma separated set of regular expressions run against the Display name to determine membership." %}{% endset %}
 
79
                {{ forms.input("dynamicCriteria", title, "", helpText, "dynamic-fields") }}
34
80
            </form>
35
81
        </div>
36
82
    </div>
 
83
    <div class="row dynamic-fields">
 
84
        <div class="col-md-12">
 
85
            <h4>Displays</h4>
 
86
            <div id="displayGroupDisplayList" class="well">
 
87
                <table id="displays" class="table table-striped">
 
88
                    <thead>
 
89
                    <tr>
 
90
                        <th>{% trans "ID" %}</th>
 
91
                        <th>{% trans "Display" %}</th>
 
92
                        <th>{% trans "Status" %}</th>
 
93
                        <th>{% trans "Licence" %}</th>
 
94
                    </tr>
 
95
                    </thead>
 
96
                    <tbody>
 
97
 
 
98
                    </tbody>
 
99
                </table>
 
100
            </div>
 
101
        </div>
 
102
    </div>
37
103
{% endblock %}
 
 
b'\\ No newline at end of file'