{% 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") }}
{% set title %}{% trans "Horizontal Align" %}{% endset %}
{% set helpText %}{% trans "How should this widget be aligned?" %}{% endset %}
{% set left %}{% trans "Left" %}{% endset %}
{% set center %}{% trans "Centre" %}{% endset %}
{% set right %}{% trans "Right" %}{% endset %}
{% set options = [
{ alignH: "left", align: left },
{ alignH: "center", align: center },
{ alignH: "right", align: right }
] %}
{{ forms.dropdown("alignH", "single", title, module.getOption("alignH","center"), options, "alignH", "align", helpText, "align-fields") }}
{% set title %}{% trans "Vertical Align" %}{% endset %}
{% set helpText %}{% trans "How should this widget be vertically aligned?" %}{% endset %}
{% set top %}{% trans "Top" %}{% endset %}
{% set middle %}{% trans "Middle" %}{% endset %}
{% set bottom %}{% trans "Bottom" %}{% endset %}
{% set options = [
{ alignV: "top", valign: top },
{ alignV: "middle", valign: middle },
{ alignV: "bottom", valign: bottom }
] %}
{{ forms.dropdown("alignV", "single", title, module.getoption("alignV", "middle"), options, "alignV", "valign", helpText, "align-fields") }}
{% trans "Analogue Clock Settings" %}
{% set title %}{% trans "Background colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the background colour" %}{% endset %}
{{ forms.colorPicker("bgColor", title, module.getOption("bgColor", ""), helpText) }}
{% set title %}{% trans "Face colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the face colour" %}{% endset %}
{{ forms.colorPicker("faceColor", title, module.getOption("faceColor", "#f9f9f9"), helpText) }}
{% set title %}{% trans "Case colour" %}{% endset %}
{% set helpText %}{% trans "Use the colour picker to select the case colour" %}{% endset %}
{{ forms.colorPicker("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.colorPicker("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.colorPicker("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.colorPicker("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.colorPicker("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.colorPicker("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.colorPicker("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.colorPicker("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.colorPicker("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.colorPicker("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.colorPicker("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) }}