3
* Xibo - Digital Signage - http://www.xibo.org.uk
4
* Copyright (C) 2012-2016 Spring Signage Ltd - http://www.springsignage.com
6
* This file is part of Xibo.
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
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.
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/>.
3
* Spring Signage Ltd - http://www.springsignage.com
4
* Copyright (C) 2015 Spring Signage Ltd
53
40
".analogue-control-group": { "display": "block" },
54
41
".digital-control-group": { "display": "none" },
55
".flip-control-group": { "display": "none" }
58
"field": "clockTypeId",
61
"operation": "equals",
63
".analogue-control-group": { "display": "none" },
64
".digital-control-group": { "display": "block" },
65
".flip-control-group": { "display": "none" }
68
"field": "clockTypeId",
71
"operation": "equals",
73
".analogue-control-group": { "display": "none" },
74
".digital-control-group": { "display": "block" },
75
".flip-control-group": { "display": "none" }
78
"field": "clockTypeId",
81
"operation": "equals",
83
".analogue-control-group": { "display": "none" },
84
".digital-control-group": { "display": "none" },
85
".flip-control-group": { "display": "block" }
88
"field": "clockTypeId",
91
"operation": "equals",
93
".analogue-control-group": { "display": "none" },
94
".digital-control-group": { "display": "none" },
95
".flip-control-group": { "display": "block" }
98
"field": "useDuration",
101
"operation": "is:checked",
103
".duration-fields": { "display": "none" }
106
"field": "useDuration",
109
"operation": "is:checked",
111
".duration-fields": { "display": "none" }
114
"field": "useDuration",
117
"operation": "is:checked",
119
".duration-fields": { "display": "block" }
122
"field": "useDuration",
125
"operation": "is:checked",
127
".duration-fields": { "display": "block" }
42
".flip-control-group": { "display": "none" },
43
".offset-control-group": { "display": "block" }
46
"field": "clockTypeId",
49
"operation": "equals",
51
".analogue-control-group": { "display": "none" },
52
".digital-control-group": { "display": "block" },
53
".flip-control-group": { "display": "none" },
54
".offset-control-group": { "display": "block" }
57
"field": "clockTypeId",
60
"operation": "equals",
62
".analogue-control-group": { "display": "none" },
63
".digital-control-group": { "display": "block" },
64
".flip-control-group": { "display": "none" },
65
".offset-control-group": { "display": "block" }
68
"field": "clockTypeId",
71
"operation": "equals",
73
".analogue-control-group": { "display": "none" },
74
".digital-control-group": { "display": "none" },
75
".flip-control-group": { "display": "block" },
76
".offset-control-group": { "display": "none" }
79
"field": "clockTypeId",
82
"operation": "equals",
84
".analogue-control-group": { "display": "none" },
85
".digital-control-group": { "display": "none" },
86
".flip-control-group": { "display": "block" },
87
".offset-control-group": { "display": "none" }
136
96
<div class="col-md-12">
137
97
<form id="clockFormEdit" class="XiboForm form-horizontal" method="put" action="{{ urlFor("module.widget.edit", {id: module.widget.widgetId}) }}">
139
{% set title %}{% trans "Name" %}{% endset %}
140
{% set helpText %}{% trans "An optional name for this widget" %}{% endset %}
141
{{ forms.input("name", title, "", helpText) }}
143
{% set title %}{% trans "Set a duration?" %}{% endset %}
144
{% set helpText %}{% trans "Select to provide a specific duration for this Widget" %}{% endset %}
145
{{ forms.checkbox("useDuration", title, module.getUseDuration(), helpText) }}
147
{% set title %}{% trans "Duration" %}{% endset %}
148
{% set helpText %}{% trans "The duration in seconds this should be displayed" %}{% endset %}
149
{{ forms.number("duration", title, module.getDuration(), helpText, "duration-fields", "required") }}
151
99
{% set title %}{% trans "Clock Type" %}{% endset %}
152
100
{% set helpText %}{% trans "Please select the type of clock to display." %}{% endset %}
153
101
{% set analog %}{% trans "Analog" %}{% endset %}
161
109
{{ forms.dropdown("clockTypeId", "single", title, module.getOption("clockTypeId"), options, "id", "value", helpText) }}
163
{% set title %}{% trans "Clock Face" %}{% endset %}
164
{% set helpText %}{% trans "Please select a clock face." %}{% endset %}
165
{{ forms.dropdown("clockFace", "single", title, module.getOption("clockFace", "TwentyFourHourClock"), module.clockFaces(), "id", "value", helpText, "flip-control-group") }}
111
{% set title %}{% trans "Duration" %}{% endset %}
112
{% set helpText %}{% trans "The duration in seconds this should be displayed" %}{% endset %}
113
{{ forms.number("duration", title, module.getDuration(), helpText, "", "required") }}
167
115
{% set title %}{% trans "Offset" %}{% endset %}
168
{% set helpText %}{% trans "The offset in minutes that should be applied to the current time, or if a counter then date/time to run from in the format Y-m-d H:i:s." %}{% endset %}
169
{{ forms.input("offset", title, module.getOption("offset"), helpText) }}
171
{% set title %}{% trans "Show Seconds?" %}{% endset %}
172
{% set helpText %}{% trans "Should the clock show seconds or not?" %}{% endset %}
173
{{ forms.checkbox("showSeconds", title, module.getOption("showSeconds", 1), helpText, "flip-control-group") }}
116
{% set helpText %}{% trans "The offset in minutes that should be applied to the current time." %}{% endset %}
117
{{ forms.number("offset", title, module.getOption("offset"), helpText, "", "", "offset-control-group") }}
175
119
{% set title %}{% trans "Theme" %}{% endset %}
176
120
{% set helpText %}{% trans "Please select a theme for the clock." %}{% endset %}