<commit_before>{# Relationships for this record #}

{% for relcontenttype, relation in context.contenttype.relations %}
    <div>

        {# Prefix #}
        {% if relation.prefix is defined and relation.prefix is not empty %}
            <div class="prefix">
                {{ relation.prefix|markdown }}
            </div>
        {% endif %}

        {# Relationship #}
        <fieldset class="form-group" data-bolt-field="relationship" style="border: 1px solid red">
            {# We set the 'format' for the rendering of each <option>. With fallback to a sensible default. #}
            {% set format = relation.format|default("{{ item.title|escape }} <span>(№ {{ item.id }})</span>") %}

            {{ macro.label(relation.label, relcontenttype|ucfirst, 'col-sm-4 control-label', 'relation-' ~ relcontenttype) }}

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

                {% if relation.multiple is defined and relation.multiple == 1 %}
                    <select name="relation[{{ relcontenttype }}][]" id="relation-{{ relcontenttype }}" class="wide" multiple style="width: 100%;" data-placeholder="{{ __('(none)') }}">
                {% else %}
                    <select name="relation[{{ relcontenttype }}][]" id="relation-{{ relcontenttype }}" class="wide" style="width: 100%;" data-placeholder="{{ __('(none)') }}">
                        <option value="0">{{ __('(none)') }}</option>
                {% endif %}<commit_msg>Add data-fieldtype to relationship container<commit_after>{# Relationships for this record #}

{% for relcontenttype, relation in context.contenttype.relations %}
    <div data-fieldtype="relationship">

        {# Prefix #}
        {% if relation.prefix is defined and relation.prefix is not empty %}
            <div class="prefix">
                {{ relation.prefix|markdown }}
            </div>
        {% endif %}

        {# Relationship #}
        <fieldset class="form-group" data-bolt-field="relationship" style="border: 1px solid red">
            {# We set the 'format' for the rendering of each <option>. With fallback to a sensible default. #}
            {% set format = relation.format|default("{{ item.title|escape }} <span>(№ {{ item.id }})</span>") %}

            {{ macro.label(relation.label, relcontenttype|ucfirst, 'col-sm-4 control-label', 'relation-' ~ relcontenttype) }}

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

                {% if relation.multiple is defined and relation.multiple == 1 %}
                    <select name="relation[{{ relcontenttype }}][]" id="relation-{{ relcontenttype }}" class="wide" multiple style="width: 100%;" data-placeholder="{{ __('(none)') }}">
                {% else %}
                    <select name="relation[{{ relcontenttype }}][]" id="relation-{{ relcontenttype }}" class="wide" style="width: 100%;" data-placeholder="{{ __('(none)') }}">
                        <option value="0">{{ __('(none)') }}</option>
                {% endif %}
{'fraction_non_alphanumeric': 0.17363234794427454, 'fraction_numerical': 0.007475365273530411, 'mean_word_length': 2.521531100478469, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '3739250', 'n_tokens_mistral': 859, 'n_tokens_neox': 775, 'n_words': 203}