{% 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 "Background Colour" %}{% endset %}
{% set helpText %}{% trans "If you want to use a background colour for the Widget, select one here." %}{% endset %}
{{ forms.input("backgroundColor", title, module.getOption("backgroundColor"), helpText, "") }}
{% set title %}{% trans "Effect" %}{% endset %}
{% set helpText %}{% trans "Please select the effect that will be used to transition between items. If all items should be output, select None. Marquee effects are CPU intensive and may not be suitable for lower power displays." %}{% endset %}
{% set noneOption %}{% trans "None" %}{% endset %}
{% set fade %}{% trans "Fade" %}{% endset %}
{% set fadeout %}{% trans "Fade Out" %}{% endset %}
{% set scrollHorz %}{% trans "Scroll Horizontal" %}{% endset %}
{% set scrollVert %}{% trans "Scroll Vertical" %}{% endset %}
{% set flipHorz %}{% trans "Flip Horizontal" %}{% endset %}
{% set flipVert %}{% trans "Flip Vertical" %}{% endset %}
{% set shuffle %}{% trans "shuffle" %}{% endset %}
{% set tileSlide %}{% trans "Tile Slide" %}{% endset %}
{% set tileBlind %}{% trans "Tile Blind" %}{% endset %}
{% set marqueeLeft %}{% trans "Marquee Left" %}{% endset %}
{% set marqueeRight %}{% trans "Marquee Right" %}{% endset %}
{% set marqueeUp %}{% trans "Marquee Up" %}{% endset %}
{% set marqueeDown %}{% trans "Marquee Down" %}{% endset %}
{% set options = [
{ effectid: "none", effect: noneOption },
{ effectid: "fade", effect: fade },
{ effectid: "fadeout", effect: fadeout},
{ effectid: "scrollHorz", effect: scrollHorz},
{ effectid: "scrollVert", effect: scrollVert},
{ effectid: "flipHorz", effect: flipHorz},
{ effectid: "flipVert", effect: flipVert},
{ effectid: "shuffle", effect: shuffle},
{ effectid: "tileSlide", effect: tileSlide},
{ effectid: "tileBlind", effect: tileBlind},
{ effectid: "marqueeLeft", effect: marqueeLeft},
{ effectid: "marqueeRight", effect: marqueeRight},
{ effectid: "marqueeUp", effect: marqueeUp},
{ effectid: "marqueeDown", effect: marqueeDown}
] %}
{{ forms.dropdown("effect", "single", title, module.getOption("effect"), options, "effectid", "effect", helpText) }}
{% set title %}{% trans "Speed" %}{% endset %}
{% set helpText %}{% trans "The transition speed of the selected effect in milliseconds (normal = 1000) or the Marquee Speed in a low to high scale (normal = 1)." %}{% endset %}
{{ forms.number("speed", title, module.getOption("speed"), helpText, "effect-controls") }}
{% set title %}{% trans "Marquee Selector" %}{% endset %}
{% set helpText %}{% trans "The selector to use for stacking marquee items in a line when scrolling Left/Right." %}{% endset %}
{{ forms.input("marqueeInlineSelector", title, module.getOption("marqueeInlineSelector"), helpText, "effect-controls") }}
{% trans "Main Template" %}
{% set simpleTextEditorMessage %}
{% trans "Enter text or HTML in the box below." %}
{% endset %}
{{ forms.message(simpleTextEditorMessage, 'ta_text-advanced-editor-hide inline-editor-hide') }}
{# Layout Designer messages #}
{% set layoutDesignerMessage %}
{% trans "Enter text to display using the inline editor which can be opened by clicking in the preview on the left." %}
{% trans "When using the inline editor Shift+Enter will drop a single line. Enter alone starts a new paragraph." %}
{% endset %}
{{ forms.message(layoutDesignerMessage, 'layout-designer-message inline-editor-show') }}
{# Playlist Editor messages #}
{% set playlistEditorMessage %}
{% trans "Enter the text to display. The red rectangle reflects the size of the region you are editing." %}
{% trans "Shift+Enter will drop a single line. Enter alone starts a new paragraph." %}
{% endset %}
{{ forms.message(playlistEditorMessage, 'playlist-editor-message ta_text-advanced-editor-show') }}
{{ forms.textarea("ta_text", "", module.getOption("text"), "", "inline-editor-hide", "", 10) }}
{% trans "Optional JavaScript" %}
{{ forms.textarea("javaScript", "", module.getRawNode("javaScript"), "", "", "", 10) }}