{% set title %}{% trans "Name" %}{% endset %}
{% set helpText %}{% trans "An optional name for this widget" %}{% endset %}
{{ forms.input("name", title, module.getOption("name"), helpText) }}
{% set title %}{% trans "Set a duration?" %}{% endset %}
{% set helpText %}{% trans "Select to provide a specific duration for this Widget" %}{% endset %}
{{ forms.checkbox("useDuration", title, module.getUseDuration(), helpText) }}
{% set title %}{% trans "Duration" %}{% endset %}
{% set helpText %}{% trans "The duration in seconds this should be displayed" %}{% endset %}
{{ forms.number("duration", title, module.getDuration(), helpText, "duration-fields", "required") }}
{% set title %}{% trans "Enable Stats Collection?" %}{% endset %}
{% set helpText %}{% trans "Enable the collection of Proof of Play statistics for this Widget. Ensure that ‘Enable Stats Collection’ is set to ‘On’ in the Display Settings." %}{% endset %}
{% set offOption %}{% trans "Off" %}{% endset %}
{% set onOption %}{% trans "On" %}{% endset %}
{% set inheritOption %}{% trans "Inherit" %}{% endset %}
{% set options = [
{ id: "Off", value: offOption },
{ id: "On", value: onOption },
{ id: "Inherit", value: inheritOption }
] %}
{{ forms.dropdown("enableStat", "single", title, module.getOption("enableStat", theme.getSetting("WIDGET_STATS_ENABLED_DEFAULT")), options, "id", "value", helpText) }}
{% set title %}{% trans "Clock Type" %}{% endset %}
{% set helpText %}{% trans "Please select the type of clock to display." %}{% endset %}
{% set analog %}{% trans "Analog" %}{% endset %}
{% set digital %}{% trans "Digital" %}{% endset %}
{% set options = [
{ id: 1, value: digital },
{ id: 2, value: analog }
] %}
{{ forms.dropdown("clockType", "single", title, module.getOption("clockType"), options, "id", "value", helpText) }}
{% set title %}{% trans "Clock Columns" %}{% endset %}
{% set helpText %}{% trans "Number of columns to display" %}{% endset %}
{{ forms.number("clockCols", title, module.getOption("clockCols", 1), helpText, "", "required") }}
{% set title %}{% trans "Clock Rows" %}{% endset %}
{% set helpText %}{% trans "Number of rows to display" %}{% endset %}
{{ forms.number("clockRows", title, module.getOption("clockRows", 1), helpText, "", "required") }}
{% trans "Analogue Clock Settings" %}
{% set title %}{% trans "Background colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the background colour" %}{% endset %}
{{ forms.color("bgColor", title, module.getOption("bgColor", "#f9f9f9"), helpText) }}
{% set title %}{% trans "Case colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the case colour" %}{% endset %}
{{ forms.color("caseColor", title, module.getOption("caseColor", "#222"), helpText) }}
{% set title %}{% trans "Hour hand colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the hour hand colour" %}{% endset %}
{{ forms.color("hourHandColor", title, module.getOption("hourHandColor", "#333"), helpText) }}
{% set title %}{% trans "Minute hand colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the minute hand colour" %}{% endset %}
{{ forms.color("minuteHandColor", title, module.getOption("minuteHandColor", "#333"), helpText) }}
{% set title %}{% trans "Show seconds hand?" %}{% endset %}
{% set helpText %}{% trans "Tick if you would like to show the seconds hand." %}{% endset %}
{{ forms.checkbox("showSecondsHand", title, module.getOption("showSecondsHand", 1), helpText) }}
{% set title %}{% trans "Seconds hand colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the seconds hand colour" %}{% endset %}
{{ forms.color("secondsHandColor", title, module.getOption("secondsHandColor", "#aa0202"), helpText, "seconds-fields") }}
{% set title %}{% trans "Dial centre colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the dial centre colour" %}{% endset %}
{{ forms.color("dialColor", title, module.getOption("dialColor", "#222"), helpText) }}
{% set title %}{% trans "Show steps?" %}{% endset %}
{% set helpText %}{% trans "Tick if you would like to show the clock steps." %}{% endset %}
{{ forms.checkbox("showSteps", title, module.getOption("showSteps", 1), helpText) }}
{% set title %}{% trans "Steps colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the steps colour" %}{% endset %}
{{ forms.color("stepsColor", title, module.getOption("stepsColor", "#333"), helpText, "steps-fields") }}
{% set title %}{% trans "Secondary steps colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the secondary steps colour" %}{% endset %}
{{ forms.color("secondaryStepsColor", title, module.getOption("secondaryStepsColor", "#333"), helpText, "steps-fields") }}
{% set title %}{% trans "Detailed look?" %}{% endset %}
{% set helpText %}{% trans "Tick if you would like to show a more detailed look for the clock ( using shadows and 3D effects )." %}{% endset %}
{{ forms.checkbox("showDetailed", title, module.getOption("showDetailed", 1), helpText) }}
{% set title %}{% trans "Show inner digital clock?" %}{% endset %}
{% set helpText %}{% trans "Tick if you would like to show a small inner digital clock." %}{% endset %}
{{ forms.checkbox("showMiniDigitalClock", title, module.getOption("showMiniDigitalClock", 1), helpText) }}
{% set title %}{% trans "Digital clock text colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the digital clock text colour" %}{% endset %}
{{ forms.color("digitalClockTextColor", title, module.getOption("digitalClockTextColor", "#3b3b3b"), helpText, "inner-digital-fields") }}
{% set title %}{% trans "Digital clock background colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the digital clock background colour" %}{% endset %}
{{ forms.color("digitalClockBgColor", title, module.getOption("digitalClockBgColor", "#e6e6e6"), helpText, "inner-digital-fields") }}
{% set title %}{% trans "Show label?" %}{% endset %}
{% set helpText %}{% trans "Tick if you would like to show the timezone label." %}{% endset %}
{{ forms.checkbox("showLabel", title, module.getOption("showLabel", 1), helpText) }}
{% set title %}{% trans "Label text colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the label text colour" %}{% endset %}
{{ forms.color("labelTextColor", title, module.getOption("labelTextColor", "#f9f9f9"), helpText, "label-fields") }}
{% set title %}{% trans "Label background colour" %}{% endset %}
{% set helpBg %}{% trans "Use the colour picker to select the label background colour" %}{% endset %}
{{ forms.color("labelBgColor", title, module.getOption("labelBgColor", "#222"), helpText, "label-fields") }}
{% set title %}{% trans "Template" %}{% endset %}
{% set helpText %}{% trans "Select the template you would like to apply. This can be overridden using the check box below." %}{% endset %}
{{ forms.dropdown("templateId", "single", title, module.getOption("templateId"), templatesAvailable, "id", "value", helptext, "template-selector-control selectPicker selectPickerWithImage", null, null, null, [{ name: "data-minimum-results-for-search", value: "Infinity" },{ name: "data-width", value: "100%" }], null, "image") }}
{% set title %}{% trans "Override the template?" %}{% endset %}
{% set helpText %}{% trans "Tick if you would like to override the template." %}{% endset %}
{{ forms.checkbox("overrideTemplate", title, module.getOption("overrideTemplate", 0), helpText) }}
{% set useTemplatesMessage %}
{% trans "With Override the Template selected enter your own text, html and css by using the Templates drop down menu in the tab header above." %}
{% endset %}
{{ forms.message(useTemplatesMessage, 'template-override-controls') }}
{% set title %}{% trans "Original Width" %}{% endset %}
{% 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 %}
{{ forms.number("widgetOriginalWidth", title, module.getOption("widgetOriginalWidth", undefined), helpText, "template-override-controls", "", "number") }}
{% set title %}{% trans "Original Height" %}{% endset %}
{% 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 %}
{{ forms.number("widgetOriginalHeight", title, module.getOption("widgetOriginalHeight", undefined), helpText, "template-override-controls", "", "number") }}
{% set message %}{% trans "Enter a format for the World Clock. See the manual for more information." %}{% endset %}
{{ forms.message(message, "") }}
{% set simpleTextEditorMessage %}
{% trans "Enter text or HTML in the box below." %}
{% endset %}
{{ forms.message(simpleTextEditorMessage, 'mainTemplate-advanced-editor-hide inline-editor-hide') }}
{{ forms.message(playlistEditorMessage, 'playlist-editor-message mainTemplate-advanced-editor-show') }}
{{ forms.textarea("mainTemplate", "", module.getRawNode("mainTemplate"), "", "inline-editor-hide", "", 10) }}
{% trans "Optional Stylesheet" %}
{{ forms.textarea("styleSheet", "", module.getRawNode("styleSheet"), "", "", "", 10) }}