<commit_before>{#
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2015 Spring Signage Ltd
 * (${FILE_NAME})
 */

#}

{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}

{% block formTitle %}
    {% set name = layout.layout %}
    {% trans %}Copy {{ name }}{% endtrans %}
{% endblock %}

{% block formButtons %}
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
    {% trans "Cancel" %}, XiboDialogClose()
    {% trans "Copy" %}, $("#layoutCopyForm").submit()
{% endblock %}

{% block formHtml %}
    <div class="row">
        <div class="col-md-12">
            <form id="layoutCopyForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("layout.copy", {id: layout.layoutId}) }}")>
                {% set title %}{% trans "Name" %}{% endset %}
                {% set helpText %}{% trans "The Name of the Layout - (1 - 50 characters)" %}{% endset %}
                {{ forms.text("name", title, layout.layout, helpText) }}

                {% set title %}{% trans "Description" %}{% endset %}
                {% set helpText %}{% trans "An optional description of the Layout. (1 - 250 characters)" %}{% endset %}
                {{ forms.textarea("description", title, layout.description, helpText) }}

                {% set title %}{% trans "Make new copies of all media on this layout?" %}{% endset %}
                {% set helpText %}{% trans "This will duplicate all media that is currently assigned to the Layout being copied." %}{% endset %}
                {% if config.LAYOUT_COPY_MEDIA_CHECKB == "Checked" %}
                    {% set checked = 1 %}
                {% else %}
                    {% set checked = 0 %}
                {% endif %}
                {{ forms.checkbox("copyMediaFiles", title, checked, helpText) }}
            </form><commit_msg>Fix for Layout Copy form - description on new tab. 2 appended to name.<commit_after>{#
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2015 Spring Signage Ltd
 * (${FILE_NAME})
 */

#}

{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}

{% block formTitle %}
    {% set name = layout.layout %}
    {% trans %}Copy {{ name }}{% endtrans %}
{% endblock %}

{% block formButtons %}
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
    {% trans "Cancel" %}, XiboDialogClose()
    {% trans "Copy" %}, $("#layoutCopyForm").submit()
{% endblock %}

{% block formHtml %}
    <div class="row">
        <div class="col-md-12">
            <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="#description" role="tab" data-toggle="tab"><span>{% trans "Description" %}</span></a></li>
            </ul>
            <form id="layoutCopyForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("layout.copy", {id: layout.layoutId}) }}")>
                <div class="tab-content">
                    <div class="tab-pane active" id="general">
                        {% set title %}{% trans "Name" %}{% endset %}
                        {% set helpText %}{% trans "The Name of the Layout - (1 - 50 characters)" %}{% endset %}
                        {% set layoutName %}{{ layout.layout }} 2{% endset %}
                        {{ forms.text("name", title, layoutName, helpText) }}

                        {% set title %}{% trans "Make new copies of all media on this layout?" %}{% endset %}
                        {% set helpText %}{% trans "This will duplicate all media that is currently assigned to the Layout being copied." %}{% endset %}
                        {% if config.LAYOUT_COPY_MEDIA_CHECKB == "Checked" %}
                            {% set checked = 1 %}
                        {% else %}
                            {% set checked = 0 %}
                        {% endif %}
                        {{ forms.checkbox("copyMediaFiles", title, checked, helpText) }}
                    </div>
                    <div class="tab-pane" id="description">
                        {% set title %}{% trans "Description" %}{% endset %}
                        {% set helpText %}{% trans "An optional description of the Layout. (1 - 250 characters)" %}{% endset %}
                        {{ forms.textarea("description", title, layout.description, helpText) }}
                    </div>
                </div>
            </form>
{'fraction_non_alphanumeric': 0.173805786050684, 'fraction_numerical': 0.00717649697241534, 'mean_word_length': 1.9993275050437123, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1852264', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1197, 'n_words': 340}