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

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

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

    <select name="taxonomy[{{ taxonomy.slug }}][]" id="taxonomy-{{ taxonomy.slug }}" class="narrow form-control pull-left">
        <option value="">{{ __('(no group)') }}</option>
        <option value="" disabled>-----------</option>
        {% for slug, group in taxonomy.options %}
            <option value="{{ slug }}" {% if context.content.taxonomy[taxonomy.slug] is defined and group in context.content.taxonomy[taxonomy.slug] or context.content.taxonomy[taxonomy.slug] is not defined and taxonomy.default is defined and taxonomy.default == slug %}selected{% endif %}>{{ group }}</option>
        {% endfor %}
    </select>

    {% if taxonomy.has_sortorder is defined and taxonomy.has_sortorder == true %}
        <label for="taxonomy-order-{{ taxonomy.slug }}" class=" pull-left" style="margin: 6px 8px 0;">- Order:</label>
        {% if context.content.sortorder %}
            {% set sortorder = context.content.sortorder %}
        {% else %}
            {% set sortorder = 0 %}
        {% endif %}
        <input type="number" name="taxonomy-order[{{ taxonomy.slug }}]" id="taxonomy-order-{{ taxonomy.slug }}" step="1"
               value="{{ sortorder }}" class="verynarrow form-control pull-left">
    {% endif %}

</fieldset><commit_msg>Extend _fieldset.twig for taxonomy-grouping<commit_after>{#=== FIELDSET =======================================================================================================#}

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

{% block fieldset_type 'taxonomy-grouping' %}

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

{% block fieldset_controls %}
    <div class="col-sm-9">
        <select name="taxonomy[{{ taxonomy.slug }}][]" id="taxonomy-{{ taxonomy.slug }}" class="narrow form-control pull-left">
            <option value="">{{ __('(no group)') }}</option>
            <option value="" disabled>-----------</option>
            {% for slug, group in taxonomy.options %}
                <option value="{{ slug }}" {% if context.content.taxonomy[taxonomy.slug] is defined and group in context.content.taxonomy[taxonomy.slug] or context.content.taxonomy[taxonomy.slug] is not defined and taxonomy.default is defined and taxonomy.default == slug %}selected{% endif %}>{{ group }}</option>
            {% endfor %}
        </select>

        {% if taxonomy.has_sortorder is defined and taxonomy.has_sortorder == true %}
            <label for="taxonomy-order-{{ taxonomy.slug }}" class=" pull-left" style="margin: 6px 8px 0;">- Order:</label>
            {% if context.content.sortorder %}
                {% set sortorder = context.content.sortorder %}
            {% else %}
                {% set sortorder = 0 %}
            {% endif %}
            <input type="number" name="taxonomy-order[{{ taxonomy.slug }}]" id="taxonomy-order-{{ taxonomy.slug }}" step="1"
                   value="{{ sortorder }}" class="verynarrow form-control pull-left">
        {% endif %}
    </div>
{% endblock fieldset_controls %}
{'fraction_non_alphanumeric': 0.20547093565433633, 'fraction_numerical': 0.004351880634131178, 'mean_word_length': 3.063131313131313, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, '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': '3105066', 'n_tokens_mistral': 1004, 'n_tokens_neox': 922, 'n_words': 213}