<commit_before><fieldset class="form-group" data-bolt-field="taxonomy-categories">

    {{ macro.label(taxonomy.name, '', 'col-sm-3 control-label', 'taxonomy-' ~ taxonomy.slug) }}

    <div class="col-sm-9">

    {% if taxonomy.multiple is defined and taxonomy.multiple == 1 %}
        <select name="taxonomy[{{ taxonomy.slug }}][]" id="taxonomy-{{ taxonomy.slug }}" class="form-control" multiple>
    {% else %}
        <select name="taxonomy[{{ taxonomy.slug }}][]" id="taxonomy-{{ taxonomy.slug }}" class="form-control">
            <option value="">{{ __('(no category)') }}</option>
            <option value="" disabled>-----------</option>
    {% endif %}

    {% for slug, cat in taxonomy.options %}
        <option value="{{ slug }}" {% if context.content.taxonomy[taxonomy.slug] is defined and cat in context.content.taxonomy[taxonomy.slug] %}selected{% endif %}>{{ cat }}</option>
    {% endfor %}

    </select>

    {% if taxonomy.multiple is defined and taxonomy.multiple == 1 %}
        <label><span class="left" style="line-height: 1px;">&nbsp;</span></label>
        <div style="margin-top: -14px;">{# TODO:onclick-events to JS #}
            <a href="#" class="btn btn-default btn-xs" onclick="jQuery('#taxonomy-{{ taxonomy.slug }} option').prop('selected', true); return false;">
                <i class="fa fa-fw fa-check-square-o"></i>{{ __("Select all") }}
            </a>
            <a href="#" class="btn btn-default btn-xs" onclick="jQuery('#taxonomy-{{ taxonomy.slug }} option').prop('selected', false); return false;">
                <i class="fa fa-fw fa-square-o"></i>{{ __("Select none") }}
            </a>
        </div>
    {% endif %}
</fieldset><commit_msg>Extends _fieldset.twig for taxonomy-categories<commit_after>{#=== FIELDSET =======================================================================================================#}

{% extends '_base/_fieldset.twig' %}

{% block fieldset_type 'taxonomy-categories' %}

{% block fieldset_label_text  taxonomy.name %}
{% block fieldset_label_class 'col-sm-3' %}
{% block fieldset_label_for   'taxonomy-' ~ taxonomy.slug %}

{% block fieldset_controls %}
    <div class="col-sm-9">
        {% if taxonomy.multiple is defined and taxonomy.multiple == 1 %}
            <select name="taxonomy[{{ taxonomy.slug }}][]" id="taxonomy-{{ taxonomy.slug }}" class="form-control" multiple>
        {% else %}
            <select name="taxonomy[{{ taxonomy.slug }}][]" id="taxonomy-{{ taxonomy.slug }}" class="form-control">
                <option value="">{{ __('(no category)') }}</option>
                <option value="" disabled>-----------</option>
        {% endif %}

        {% for slug, cat in taxonomy.options %}
            <option value="{{ slug }}" {% if context.content.taxonomy[taxonomy.slug] is defined and cat in context.content.taxonomy[taxonomy.slug] %}selected{% endif %}>{{ cat }}</option>
        {% endfor %}

        </select>

        {% if taxonomy.multiple is defined and taxonomy.multiple == 1 %}
            <label><span class="left" style="line-height: 1px;">&nbsp;</span></label>
            <div style="margin-top: -14px;">{# TODO:onclick-events to JS #}
                <a href="#" class="btn btn-default btn-xs" onclick="jQuery('#taxonomy-{{ taxonomy.slug }} option').prop('selected', true); return false;">
                    <i class="fa fa-fw fa-check-square-o"></i>{{ __("Select all") }}
                </a>
                <a href="#" class="btn btn-default btn-xs" onclick="jQuery('#taxonomy-{{ taxonomy.slug }} option').prop('selected', false); return false;">
                    <i class="fa fa-fw fa-square-o"></i>{{ __("Select none") }}
                </a>
            </div>
        {% endif %}
    </div>
{% endblock fieldset_controls %}
{'fraction_non_alphanumeric': 0.22546419098143236, 'fraction_numerical': 0.003713527851458886, 'mean_word_length': 2.9037267080745344, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5626211', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1101, 'n_words': 251}