<commit_before>{#
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2015-2018 Spring Signage Ltd
 * (subplaylist-form-add.twig)
 */
#}
{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}

{% block formTitle %}
    {% trans "Edit Sub-Playlist" %}
{% endblock %}

{% block extra %}{{ module.getExtra()|json_encode|raw }}{% endblock %}

{% block formHtml %}
    <div class="row">
        <ul class="nav nav-tabs" role="tablist">
            <li class="active"><a href="#general" role="tab" data-toggle="tab"><span>{% trans "General" %}</span></a></li>
            <li><a href="#configurationTab" role="tab" data-toggle="tab"><span>{% trans "Configuration" %}</span></a></li>
        </ul>
        <div class="col-md-12">
            <form id="subPlaylistForm" class="XiboForm form-horizontal" method="put" action="{{ urlFor("module.widget.edit", {id: module.widget.widgetId}) }}">
                <div class="tab-content">
                    <div class="tab-pane active" id="general">
                        {% 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) }}

                        <div class="sub-playlists"></div>
                    </div>

                    <div class="tab-pane" id="configurationTab">
                        {% 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 "Remainder" %}{% 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 %}<commit_msg>Missed arrangement wording tweak OSX-545<commit_after>{#
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2015-2018 Spring Signage Ltd
 * (subplaylist-form-add.twig)
 */
#}
{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}

{% block formTitle %}
    {% trans "Edit Sub-Playlist" %}
{% endblock %}

{% block extra %}{{ module.getExtra()|json_encode|raw }}{% endblock %}

{% block formHtml %}
    <div class="row">
        <ul class="nav nav-tabs" role="tablist">
            <li class="active"><a href="#general" role="tab" data-toggle="tab"><span>{% trans "General" %}</span></a></li>
            <li><a href="#configurationTab" role="tab" data-toggle="tab"><span>{% trans "Configuration" %}</span></a></li>
        </ul>
        <div class="col-md-12">
            <form id="subPlaylistForm" class="XiboForm form-horizontal" method="put" action="{{ urlFor("module.widget.edit", {id: module.widget.widgetId}) }}">
                <div class="tab-content">
                    <div class="tab-pane active" id="general">
                        {% 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) }}

                        <div class="sub-playlists"></div>
                    </div>

                    <div class="tab-pane" id="configurationTab">
                        {% 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 %}
{'fraction_non_alphanumeric': 0.1422719394989759, 'fraction_numerical': 0.003623759256341579, 'mean_word_length': 2.1317217562900836, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5609689', 'n_tokens_mistral': 1788, 'n_tokens_neox': 1666, 'n_words': 565}