163
191
{{ forms.checkbox("useDisplayLocation", title, module.getOption("useDisplayLocation"), helpText) }}
165
193
{% set title %}{% trans "Latitude" %}{% endset %}
166
{% set helpText %}{% trans "The Latitude for this widget" %}{% endset %}
194
{% set helpText %}{% trans "The Latitude for this weather module" %}{% endset %}
167
195
{{ forms.number("latitude", title, module.getOption("latitude"), helpText, "locationControls") }}
169
197
{% set title %}{% trans "Longitude" %}{% endset %}
170
{% set helpText %}{% trans "The Longitude for this widget" %}{% endset %}
198
{% set helpText %}{% trans "The Longitude for this weather module" %}{% endset %}
171
199
{{ forms.number("longitude", title, module.getOption("longitude"), helpText, "locationControls") }}
201
{% set title %}{% trans "Colour" %}{% endset %}
202
{% set helpText %}{% trans "Please select a colour for the foreground text." %}{% endset %}
203
{{ forms.input("color", title, module.getOption("color"), helpText, "", "required") }}
174
<div class="tab-pane" id="appearance">
206
<div class="tab-pane" id="advanced">
176
208
{% set title %}{% trans "Weather Template" %}{% endset %}
177
209
{% set helpText %}{% trans "Select the template you would like to apply. This can be overridden using the check box below." %}{% endset %}
178
{{ forms.dropdown("templateId", "single", title, module.getOption("templateId"), module.templatesAvailable(), "id", "value", helpText, "template-selector-control selectPicker selectPickerWithImage", null, null, null, null, null, baseUrl, "image") }}
210
{{ forms.dropdown("templateId", "single", title, module.getOption("templateId"), module.templatesAvailable(), "id", "value", helpText, "template-selector-control") }}
212
{% set title %}{% trans "Icons" %}{% endset %}
213
{% set helpText %}{% trans "Select the icon set you would like to use." %}{% endset %}
214
{{ forms.dropdown("icons", "single", title, module.getOption("icons"), module.iconsAvailable(), "id", "value", helpText, "icon-controls") }}
216
{% set title %}{% trans "Size" %}{% endset %}
217
{% set helpText %}{% trans "Set the size. Start at 1 and work up until the widget fits your region appropriately." %}{% endset %}
218
{{ forms.number("size", title, module.getOption("size"), helpText, "template-selector-control", "number") }}
220
{% set title %}{% trans "Units" %}{% endset %}
221
{% set helpText %}{% trans "Select the units you would like to use." %}{% endset %}
222
{{ forms.dropdown("units", "single", title, module.getOption("units"), module.unitsAvailable(), "id", "value", helpText) }}
224
{% set title %}{% trans "Language" %}{% endset %}
225
{% set helpText %}{% trans "Select the language you would like to use." %}{% endset %}
226
{{ forms.dropdown("lang", "single", title, module.getOption("lang"), module.supportedLanguages(), "id", "value", helpText) }}
228
{% set title %}{% trans "Update Interval (mins)" %}{% endset %}
229
{% set helpText %}{% trans "Please enter the update interval in minutes. This should be kept as high as possible. For example, if the data will only change once per hour this could be set to 60." %}{% endset %}
230
{{ forms.number("updateInterval", title, module.getOption("updateInterval", 60), helpText, "", "required") }}
232
{% set title %}{% trans "Only show Daytime weather conditions" %}{% endset %}
233
{% set helpText %}{% trans "Tick if you would like to only show the Daytime weather conditions." %}{% endset %}
234
{{ forms.checkbox("dayConditionsOnly", title, module.getOption("dayConditionsOnly"), helpText) }}
180
236
{% set title %}{% trans "Override the template?" %}{% endset %}
181
237
{% set helpText %}{% trans "Tick if you would like to override the template." %}{% endset %}
182
238
{{ forms.checkbox("overrideTemplate", title, module.getOption("overrideTemplate"), helpText) }}
184
{% set title %}{% trans "Original Width" %}{% endset %}
185
{% set helpText %}{% trans "This is the intended width of the template and is used to scale the Widget within its region when the template is applied." %}{% endset %}
186
{{ forms.number("widgetOriginalWidth", title, module.getOption("widgetOriginalWidth", undefined), helpText, "template-override-controls", "", "number") }}
188
{% set title %}{% trans "Original Height" %}{% endset %}
189
{% set helpText %}{% trans "This is the intended height of the template and is used to scale the Widget within its region when the template is applied." %}{% endset %}
190
{{ forms.number("widgetOriginalHeight", title, module.getOption("widgetOriginalHeight", undefined), helpText, "template-override-controls", "", "number") }}
192
240
{% set title %}{% trans "Template for Current Forecast" %}{% endset %}
193
241
{% set helpText %}{% trans "Enter the template for the current forecast. For a list of substitutions click Request Forecast below." %}{% endset %}
194
242
{{ forms.textarea("currentTemplate", title, module.getOption("currentTemplate"), helpText, "template-override-controls", "required", 10) }}
201
249
{% set helpText %}{% trans "Enter a CSS style sheet to style the weather widget" %}{% endset %}
202
250
{{ forms.textarea("styleSheet", title, module.getOption("styleSheet"), helpText, "template-override-controls", "required", 10) }}
204
<div class="tab-pane" id="advanced">
206
{% set title %}{% trans "Units" %}{% endset %}
207
{% set helpText %}{% trans "Select the units you would like to use." %}{% endset %}
208
{{ forms.dropdown("units", "single", title, module.getOption("units"), module.unitsAvailable(), "id", "value", helpText) }}
210
{% set title %}{% trans "Language" %}{% endset %}
211
{% set helpText %}{% trans "Select the language you would like to use." %}{% endset %}
212
{{ forms.dropdown("lang", "single", title, module.getOption("lang"), module.supportedLanguages(), "id", "value", helpText) }}
214
{% set title %}{% trans "Update Interval (mins)" %}{% endset %}
215
{% set helpText %}{% trans "Please enter the update interval in minutes. This should be kept as high as possible. For example, if the data will only change once per hour this could be set to 60." %}{% endset %}
216
{{ forms.number("updateInterval", title, module.getOption("updateInterval", 60), helpText, "", "required") }}
218
{% set title %}{% trans "Only show Daytime weather conditions" %}{% endset %}
219
{% set helpText %}{% trans "Tick if you would like to only show the Daytime weather conditions." %}{% endset %}
220
{{ forms.checkbox("dayConditionsOnly", title, module.getOption("dayConditionsOnly"), helpText) }}
222
{% set title %}{% trans "Optional JavaScript" %}{% endset %}
223
{{ forms.textarea("javaScript", "", module.getRawNode("javaScript"), title, "", "", 10) }}
226
252
<div class="tab-pane" id="forecast">
227
253
{% set message %}{% trans "Please press Request Forecast" %}{% endset %}
228
254
{{ forms.message(message) }}