{% 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 item 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 "Show items side by side?" %}{% endset %}
{% set helpText %}{% trans "Should items be shown side by side?" %}{% endset %}
{{ forms.checkbox("itemsSideBySide", title, module.getOption("itemsSideBySide"), helpText) }}
{% set title %}{% trans "Lower Row Limit" %}{% endset %}
{% set helpText %}{% trans "Please enter the Lower Row Limit for this DataSet (enter 0 for no limit)" %}{% endset %}
{{ forms.number("lowerLimit", title, module.getOption("lowerLimit"), helpText) }}
{% set title %}{% trans "Upper Row Limit" %}{% endset %}
{% set helpText %}{% trans "Please enter the Upper Row Limit for this DataSet (enter 0 for no limit)" %}{% endset %}
{{ forms.number("upperLimit", title, module.getOption("upperLimit"), helpText) }}
{% set title %}{% trans "Number of Items" %}{% endset %}
{% set helpText %}{% trans "The Number of items you want to display" %}{% endset %}
{{ forms.number("numItems", title, module.getOption("numItems"), helpText) }}
{% set title %}{% trans "Randomise?" %}{% endset %}
{% set helpText %}{% trans "Should the order of the feed be randomised? When enabled each time the Widget is shown the items will be randomly shuffled and displayed in a random order." %}{% endset %}
{{ forms.checkbox("randomiseItems", title, module.getOption("randomiseItems"), helpText) }}
{% set title %}{% trans "Background Colour" %}{% endset %}
{% set helpText %}{% trans "The selected effect works best with a background colour. Optionally add one here." %}{% endset %}
{{ forms.colorPicker("backgroundColor", title, module.getOption("backgroundColor"), helpText, "background-color-group") }}
{% set title %}{% trans "Effect" %}{% endset %}
{% set helpText %}{% trans "Please select the effect that will be used to transition between items. Marquee effects are CPU intensive and may not be suitable for lower power displays." %}{% endset %}
{% set showAll %}{% trans "Show all items" %}{% endset %}
{% set showPaged %}{% trans "Paged" %}{% 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 optionGroups = [
{id: "showAll", label: showAll},
{id: "showPaged", label: showPaged}
] %}
{% set noneOption %}{% trans "No effect - all items are shown" %}{% endset %}
{% set showAllOptions = [
{ effectid: "none", effect: noneOption },
{ effectid: "marqueeLeft", effect: marqueeLeft},
{ effectid: "marqueeRight", effect: marqueeRight},
{ effectid: "marqueeUp", effect: marqueeUp},
{ effectid: "marqueeDown", effect: marqueeDown}
] %}
{% set noTransitionOption %}{% trans "No transition" %}{% 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 showPagedOptions = [
{ effectid: "noTransition", effect: noTransitionOption },
{ 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}
] %}
{{ forms.dropdown("effect", "single", title, module.getOption("effect"), {showAll: showAllOptions, showPaged: showPagedOptions}, "effectid", "effect", helpText, "l", "", "", "", "", optionGroups) }}
{% 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", module.getOption("scrollSpeed")), helpText, "effect-controls") }}
{% set title %}{% trans "Items per page" %}{% endset %}
{% set helpText %}{% trans "If an effect has been selected from the General tab, how many pages should we split the items across? If you don't enter anything here 1 item will be put on each page." %}{% endset %}
{{ forms.number("itemsPerPage", title, module.getOption("itemsPerPage"), helpText, "effect-controls") }}
{% 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 layoutEditorMessage %}
{% 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(layoutEditorMessage, '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.getRawNode("template"), "", "inline-editor-hide", "", 10) }}
{% 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 no data is returned from the source" %}{% endset %}
{{ forms.textarea("noDataMessage", "", module.getRawNode("noDataMessage"), helpText, "", "", 5) }}
{% trans "Optional Stylesheet Template" %}
{{ forms.textarea("ta_css", "", module.getRawNode("css"), "", "", "", 10) }}
{% trans "Optional JavaScript" %}
{{ forms.textarea("javaScript", "", module.getRawNode("javaScript"), "", "", "", 10) }}
{% set message %}{% trans "The DataSet results can be ordered by any column and set below. New fields can be added by selecting the plus icon at the end of the current row. Should a more complicated order be required the advanced checkbox can be selected to provide custom SQL syntax." %}{% endset %}
{{ forms.message(message) }}
{% set title %}{% trans "Use advanced order clause?" %}{% endset %}
{% set helpText %}{% trans "Provide a custom clause instead of using the clause builder above." %}{% endset %}
{{ forms.checkbox("useOrderingClause", title, module.getOption("useOrderingClause", 0), helpText) }}
{% set title %}{% trans "Order" %}{% endset %}
{% set helpText %}{% trans "Please enter a SQL clause for how this dataset should be ordered" %}{% endset %}
{{ forms.input("ordering", title, module.getOption("ordering"), helpText, "order-clause-field") }}
{% set message %}{% trans "The DataSet results can be filtered by any column and set below. New fields can be added by selecting the plus icon at the end of the current row. Should a more complicated filter be required the advanced checkbox can be selected to provide custom SQL syntax." %}{% endset %}
{{ forms.message(message) }}
{% set message %}{% trans "The substitution [DisplayId] can be used in filter clauses and will be substituted at run time with the Display ID. When shown in the CMS it will be substituted with 0." %}{% endset %}
{{ forms.message(message) }}
{% set title %}{% trans "Use advanced filter clause?" %}{% endset %}
{% set helpText %}{% trans "Provide a custom clause instead of using the clause builder above." %}{% endset %}
{{ forms.checkbox("useFilteringClause", title, module.getOption("useFilteringClause", 0), helpText) }}
{% set title %}{% trans "Filter" %}{% endset %}
{% set helpText %}{% trans "Please enter a SQL clause to filter this DataSet." %}{% endset %}
{{ forms.input("filter", title, module.getOption("filter"), helpText, "filter-clause-field") }}
{% set title %}{% trans "Update Interval (mins)" %}{% endset %}
{% 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 %}
{{ forms.number("updateInterval", title, module.getOption("updateInterval", 5), helpText, "", "required") }}
{% set title %}{% trans "Freshness (mins)" %}{% endset %}
{% set helpText %}{% trans "If the Player is offline it will switch to the No Data Template after this freshness time. Set this to 0 to never switch." %}{% endset %}
{{ forms.number("freshnessTimeout", title, module.getOption("freshnessTimeout", 0), helpText) }}