<commit_before>{% extends "shoop/admin/base.jinja" %}
{% from "shoop/admin/macros/general.jinja" import content_block %}

{% block title %}{{ page.title or _("New Page") }}{% endblock %}

{% block extra_js %}
<script type="text/javascript" src="{{ static("shoop_admin/js/remarkable.js") }}"></script>
{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row">
        <div class="col-md-3 section-navigation" data-navigatee="page_form"></div>
        <div class="col-md-9">
            <form method="post" id="page_form">
            {% csrf_token %}
            {% call content_block(_("General Information"), "fa-info-circle") %}
            <div class="row language-tabs">
                <div class="col-md-6 col-md-push-3">
                    <ul class="nav nav-tabs">
                        {% for language in form.languages %}
                        <li role="presentation" {% if loop.first %}class="active"{% endif %}>
                            <a href="#language-{{ language }}" role="tab" data-toggle="tab" id="tab-{{ language }}">{{ form.language_names[language] }}</a>
                        </li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
            <div class="tab-content">
                {% for language in form.languages %}
                    <div class="tab-pane {% if loop.first %}active{% endif %}" id="language-{{ language }}">
                        {% set map = form.trans_name_map[language] %}
                        {{ bs3.field(form[map.title]) }}
                        {{ bs3.field(form[map.url]) }}
                        {{ bs3.field(form[map.content], widget_class="remarkable-field") }}
                    </div>
                {% endfor %}
            </div>
            {% endcall %}

            {% call content_block(_("Availability"), "fa-clock-o") %}
                {{ bs3.field(form.visible_in_menu) }}
                {{ bs3.field(form.available_from) }}
                {{ bs3.field(form.available_to) }}
            {% endcall %}


            {% call content_block(_("Extras"), "fa-plus-circle") %}
                {{ bs3.field(form.identifier) }}
            {% endcall %}
            </form>
        </div>
    </div>
</div>
{% endblock %}

<commit_msg>Admin: Enable datetimepicker for Simple CMS availability fields<commit_after>{% extends "shoop/admin/base.jinja" %}
{% from "shoop/admin/macros/general.jinja" import content_block %}

{% block title %}{{ page.title or _("New Page") }}{% endblock %}

{% block extra_js %}
<script type="text/javascript" src="{{ static("shoop_admin/js/remarkable.js") }}"></script>
{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row">
        <div class="col-md-3 section-navigation" data-navigatee="page_form"></div>
        <div class="col-md-9">
            <form method="post" id="page_form">
            {% csrf_token %}
            {% call content_block(_("General Information"), "fa-info-circle") %}
                <div class="row language-tabs">
                    <div class="col-md-6 col-md-push-3">
                        <ul class="nav nav-tabs">
                            {% for language in form.languages %}
                            <li role="presentation" {% if loop.first %}class="active"{% endif %}>
                                <a href="#language-{{ language }}" role="tab" data-toggle="tab" id="tab-{{ language }}">{{ form.language_names[language] }}</a>
                            </li>
                            {% endfor %}
                        </ul>
                    </div>
                </div>
                <div class="tab-content">
                    {% for language in form.languages %}
                        <div class="tab-pane {% if loop.first %}active{% endif %}" id="language-{{ language }}">
                            {% set map = form.trans_name_map[language] %}
                            {{ bs3.field(form[map.title]) }}
                            {{ bs3.field(form[map.url]) }}
                            {{ bs3.field(form[map.content], widget_class="remarkable-field") }}
                        </div>
                    {% endfor %}
                </div>
            {% endcall %}

            {% call content_block(_("Availability"), "fa-clock-o") %}
                {{ bs3.field(form.visible_in_menu) }}
                {{ bs3.datetime_field(form.available_from) }}
                {{ bs3.datetime_field(form.available_to) }}
            {% endcall %}

            {% call content_block(_("Extras"), "fa-plus-circle") %}
                {{ bs3.field(form.identifier) }}
            {% endcall %}
            </form>
        </div>
    </div>
</div>
{% endblock %}


{'fraction_non_alphanumeric': 0.1711106445517531, 'fraction_numerical': 0.004618937644341801, 'mean_word_length': 1.5933587370713118, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '372458', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1296, 'n_words': 241}