{% 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 "Duration is per item" %}{% endset %}
{% set helpText %}{% trans "The duration specified is per item otherwise it is per feed." %}{% endset %}
{{ forms.checkbox("durationIsPerItem", title, module.getOption("durationIsPerItem"), helpText) }}
{% 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 "Age" %}{% endset %}
{% set helpText %}{% trans "What is the maximum notification age in minutes, 0 for no restrictions." %}{% endset %}
{{ forms.number("age", title, module.getOption("age"), helpText, "", "required") }}
{% set title %}{% trans "Effect" %}{% endset %}
{% set helpText %}{% trans "Please select the effect that will be used to transition between items." %}{% 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 templateMessage %}
{% trans "The template for formatting your notifications. Enter [Subject] and [Body] with your desired formatting." %}
{% endset %}
{{ forms.message(templateMessage, '') }}
{% set simpleTextEditorMessage %}
{% trans "Enter text or HTML in the box below." %}
{% endset %}
{{ forms.message(simpleTextEditorMessage, 'template-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 template-advanced-editor-show') }}
{{ forms.textarea("template", "", module.getRawNode("template"), "", "inline-editor-hide", "", 5) }}
{% set noDataMessageMessage1 %}
{% trans "Enter text or HTML in the box below." %}
{% endset %}
{{ forms.message(noDataMessageMessage1, 'noDataMessage-advanced-editor-hide') }}
{% set noDataMessageMessage2 %}
{% trans "Enter the text to display." %}
{% trans "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(noDataMessageMessage2, 'noDataMessage-advanced-editor-show') }}
{% set helpText %}{% trans "A message to display when there are no notifications to show" %}{% endset %}
{{ forms.textarea("noDataMessage", "", module.getRawNode("noDataMessage"), helpText, "", "", 5) }}
{% set helpText %}{% trans "Custom Style Sheets" %}{% endset %}
{{ forms.textarea("embedStyle", "", module.getRawNode('embedStyle'), helpText, "", "", 10) }}