{% set title %}{% trans "Name" %}{% endset %}
{% set helpText %}{% trans "An optional name for this widget" %}{% endset %}
{{ forms.input("name", title, module.getOption("name"), helpText) }}
{% set helpText %}{% trans "Please select one or more Playlists to embed. If selecting more than one use the Configuration tab to adjust how each Playlist is combined." %}{% endset %}
{{ forms.message(helpText) }}
{% set helpText %}{% trans "Optionally set Spot options to expand or shrink each Playlist to a particular size or duration. Leave the Spot options empty to use the count of Widgets in each Playlist." %}{% endset %}
{{ forms.message(helpText) }}
{% set helpText %}{% trans "Setting Spots to 0 will omit the first Playlist from the play order, and will be used as a Spot Fill option." %}{% endset %}
{{ forms.message(helpText) }}
#
{{ "Playlists"|trans }}
{% set helpText %}{% trans "How many spots would you like on this Sub-Playlist? This is used before ordering to expand or shrink the list to the specified size. Leave empty to use the count of Widgets." %}{% endset %}
{{ "Spots"|trans }}
{% set helpText %}{% trans "Set the duration of all Widgets in the Playlist to a specific value in seconds. Leave empty to use each Widget duration." %}{% endset %}
{{ "Spot Length"|trans }}
{% set helpText %}{% trans "If there are not enough Widgets fill all spots, how should the remaining spots be filled?" %}{% endset %}
{{ "Spot Fill"|trans }}
{% set title %}{% trans "Playlist Ordering" %}{% endset %}
{% set helpText %}{% trans "How would you like the Widgets on these Playlists to be ordered?" %}{% endset %}
{% set noneOption %}{% trans "Play all - Playlists will play in their entirety one after the other in the order they appear on the General tab" %}{% endset %}
{% set robinOption %}{% trans "Round Robin - take one Widget from each Playlist in the order they appear on the General tab and repeat" %}{% endset %}
{% set evenOption %}{% trans "Auto - ensure Widgets are played evenly from each Playlist using the total count of Widgets on all Playlists" %}{% endset %}
{% set options = [
{ id: "none", value: noneOption },
{ id: "roundrobin", value: robinOption },
{ id: "even", value: evenOption }
] %}
{{ forms.dropdown("arrangement", "single", title, module.getOption("arrangement"), options, "id", "value", helpText) }}
{% set title %}{% trans "Remaining Widgets" %}{% endset %}
{% set helpText %}{% trans "If there are Widgets left unordered at the end, what should be done with these Widgets?" %}{% endset %}
{% set noneOption %}{% trans "Add - After ordering any remaining Widgets are to be added to the end" %}{% endset %}
{% set dropOption %}{% trans "Discard - Uses the Playlist with the least Widgets and ignores remaining Widgets on the longer Playlists" %}{% endset %}
{% set repeatOption %}{% trans "Repeat - Uses the Playlist with the most Widgets and repeats remaining Widgets on the shorter Playlists" %}{% endset %}
{% set options = [
{ id: "none", value: noneOption },
{ id: "drop", value: dropOption },
{ id: "repeat", value: repeatOption }
] %}
{{ forms.dropdown("remainder", "single", title, module.getOption("remainder"), options, "id", "value", helpText) }}
{% set title %}{% trans "Enable cycle based playback?" %}{% endset %}
{% set helpText %}{% trans "When cycle based playback is enabled only 1 Widget from this Sub-Playlist will be played each time the Layout is shown. The same Widget will be shown until the 'Play count' is achieved."%}{% endset %}
{{ forms.checkbox("cyclePlaybackEnabled", title, module.getOption("cyclePlaybackEnabled"), helpText) }}
{% set title %}{% trans "Play count" %}{% endset %}
{% set helpText %}{% trans "In cycle based playback, how many plays should each Widget have before moving on?" %}{% endset %}
{{ forms.number("playCount", title, module.getOption("playCount"), helpText, "cycle-based-playback") }}
{% set title %}{% trans "Random Widget each cycle?" %}{% endset %}
{% set helpText %}{% trans "When enabled a random Widget will be selected at the start of each cycle and shown until its play count has been met."%}{% endset %}
{{ forms.checkbox("cycleRandomWidget", title, module.getOption("cycleRandomWidget"), helpText, "cycle-based-playback") }}