<commit_before>{% import "whatwedoCrudBundle:Crud:_macros.html.twig" as macros %}

{% set keyArr = helper.blocks|keys %}
{% set i = 0 %}
{% for block in helper.blocks if block.isVisibleOnShow and is_granted(block.showVoterAttribute, helper.data) %}

    {# Zeile #}
    {% set i = i + 1 %}
    {% if i == 1 %}
        <div class="row">
    {% endif %}

    {% if block.attr.class is not defined %}
        {% set blockAttr = block.attr|merge({ class: '' }) %}
    {% else %}
        {% set blockAttr = block.attr %}
    {% endif %}

    {% if block.size == 'small' %}
        {% set blockAttr = blockAttr|merge({
            class: 'col-lg-6 box_show box_' ~ block.acronym ~ ' ' ~ blockAttr.class
        }) %}
    {% else %}
        {% set blockAttr = blockAttr|merge({
            class: 'col-lg-12 box_show box_' ~ block.acronym ~ ' ' ~ blockAttr.class
        }) %}
    {% endif %}
            <div {{ macros.attributes(blockAttr) }}>
                <div class="box box-primary">
                    {% if block.label %}
                        {{ macros.blockHeader(block.label) }}
                    {% endif %}

                    <div class="box-body">
                        {% for key, content in block.contents if content.isVisibleOnShow and is_granted(content.showVoterAttribute, helper.data) %}

                            {% if content.attr.class is not defined %}
                                {% set contentAttr = content.attr|merge({
                                    class: 'content_show content_' ~ block.acronym
                                }) %}
                            {% else %}
                                {% set contentAttr = content.attr|merge({
                                    class: 'content_show content_' ~ block.acronym ~ ' ' ~ content.attr.class
                                }) %}
                            {% endif %}

                            <div {{ macros.attributes(contentAttr) }}>
                                {% if content.isTable is defined and content.isTable %}
                                    <div class="row">
                                        <div class="col-lg-12">
                                            <strong>{{ content.label }}{% if content.label is not empty %}:{% endif %}</strong>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-lg-12">
                                            {{ content.renderTable(key, helper.data)|raw }}
                                        </div>
                                    </div>
                                    {% if content.createRoute is defined and content.createRoute %}
                                        <div class="row">
                                            <div class="col-lg-12 text-right">
                                                <p></p>
                                                {% if content.indexRoute %}
                                                    <a href="{{ path(content.indexRoute, content.createRouteParameters(data)) }}" class="btn btn-primary btn-xs">
                                                        <i class="fa fa-list"></i>
                                                        Alle ansehen
                                                    </a>
                                                {% endif %}
                                                {% block add_button %}
                                                    {% if content.createRoute and content.isAddAllowed is defined and content.isAddAllowed and is_granted(content.addVoterAttribute, helper.data) %}
                                                        <a href="{{ path(content.createRoute, content.createRouteParameters(data)) }}" class="btn btn-success btn-xs">
                                                            <i class="fa fa-plus"></i>
                                                            Hinzufügen
                                                        </a>
                                                    {% endif %}
                                                {% endblock %}
                                            </div>
                                        </div>
                                    {% endif %}
                                {% elseif content.isTwigContent is defined and content.isTwigContent %}
                                    {% include content.template with content.parameters  %}
                                {% else %}
                                    {% set value = content.render(data) %}

                                    {% if value is iterable %}
                                        {% for key, v in value %}
                                            <div class="row">
                                                <div class="col-lg-4">
                                                    <strong>{{ key }}:</strong>
                                                </div>
                                                <div class="col-lg-8">
                                                    {{ helper.linkIt(v, content)|raw }}
                                                </div>
                                            </div>
                                        {% endfor %}
                                    {% else %}
                                        <div class="row">
                                            <div class="col-lg-4">
                                                <strong>{{ content.label }}{% if content.label is not empty %}:{% endif %}
                                                    {% if content.help is not empty %}&nbsp;<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="{{ content.help }}"></i>{% endif %}
                                                </strong>
                                            </div>
                                            <div class="col-lg-8">
                                                {{ helper.linkIt(value, content)|raw }}
                                            </div>
                                        </div>
                                    {% endif %}

                                {% endif %}
                            </div>

                        {% endfor %}
                    </div>
                </div>
            </div>



    {# / Zeile #}
    {% if i == 2 or loop.index == keyArr|length or block.size == "large" %}
        {% set i = 0 %}
        </div>
    {% elseif helper.blocks[keyArr[loop.index]] is defined %}
        {% if helper.blocks[keyArr[loop.index]].size == "large" %}
            {% set i = 0 %}
            </div>
        {% endif %}
    {% endif %}

{% endfor %}

{% if i > 0 %}
</div>
{% endif %}<commit_msg>Fix(): Reverted & redone 'big-row'-support<commit_after>{% import "whatwedoCrudBundle:Crud:_macros.html.twig" as macros %}

{% set keyArr = helper.blocks|keys %}
{% set i = 0 %}
{% for block in helper.blocks if block.isVisibleOnShow and is_granted(block.showVoterAttribute, helper.data) %}

    {# Zeile #}
    {% set i = i + 1 %}
    {% if i == 1 %}
        <div class="row">
    {% endif %}

    {% if block.attr.class is not defined %}
        {% set blockAttr = block.attr|merge({ class: '' }) %}
    {% else %}
        {% set blockAttr = block.attr %}
    {% endif %}

    {% if block.size == 'small' %}
        {% set blockAttr = blockAttr|merge({
            class: 'col-lg-6 box_show box_' ~ block.acronym ~ ' ' ~ blockAttr.class
        }) %}
    {% else %}
        {% set blockAttr = blockAttr|merge({
            class: 'col-lg-12 box_show box_' ~ block.acronym ~ ' ' ~ blockAttr.class
        }) %}
    {% endif %}
            <div {{ macros.attributes(blockAttr) }}>
                <div class="box box-primary">
                    {% if block.label %}
                        {{ macros.blockHeader(block.label) }}
                    {% endif %}

                    <div class="box-body">
                        {% for key, content in block.contents if content.isVisibleOnShow and is_granted(content.showVoterAttribute, helper.data) %}

                            {% if content.attr.class is not defined %}
                                {% set contentAttr = content.attr|merge({
                                    class: 'content_show content_' ~ block.acronym
                                }) %}
                            {% else %}
                                {% set contentAttr = content.attr|merge({
                                    class: 'content_show content_' ~ block.acronym ~ ' ' ~ content.attr.class
                                }) %}
                            {% endif %}

                            <div {{ macros.attributes(contentAttr) }}>
                                {% if content.isTable is defined and content.isTable %}
                                    <div class="row">
                                        <div class="col-lg-12">
                                            <strong>{{ content.label }}{% if content.label is not empty %}:{% endif %}</strong>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-lg-12">
                                            {{ content.renderTable(key, helper.data)|raw }}
                                        </div>
                                    </div>
                                    {% if content.createRoute is defined and content.createRoute %}
                                        <div class="row">
                                            <div class="col-lg-12 text-right">
                                                <p></p>
                                                {% if content.indexRoute %}
                                                    <a href="{{ path(content.indexRoute, content.createRouteParameters(data)) }}" class="btn btn-primary btn-xs">
                                                        <i class="fa fa-list"></i>
                                                        Alle ansehen
                                                    </a>
                                                {% endif %}
                                                {% block add_button %}
                                                    {% if content.createRoute and content.isAddAllowed is defined and content.isAddAllowed and is_granted(content.addVoterAttribute, helper.data) %}
                                                        <a href="{{ path(content.createRoute, content.createRouteParameters(data)) }}" class="btn btn-success btn-xs">
                                                            <i class="fa fa-plus"></i>
                                                            Hinzufügen
                                                        </a>
                                                    {% endif %}
                                                {% endblock %}
                                            </div>
                                        </div>
                                    {% endif %}
                                {% elseif content.isTwigContent is defined and content.isTwigContent %}
                                    {% include content.template with content.parameters  %}
                                {% else %}
                                    {% set value = content.render(data) %}

                                    {% if value is iterable %}
                                        {% for key, v in value %}
                                            <div class="row">
                                                <div class="col-lg-4">
                                                    <strong>{{ key }}:</strong>
                                                </div>
                                                <div class="col-lg-8">
                                                    {{ helper.linkIt(v, content)|raw }}
                                                </div>
                                            </div>
                                        {% endfor %}
                                    {% else %}
                                        <div class="row">
                                            <div class="col-lg-4">
                                                <strong>{{ content.label }}{% if content.label is not empty %}:{% endif %}
                                                    {% if content.help is not empty %}&nbsp;<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="{{ content.help }}"></i>{% endif %}
                                                </strong>
                                            </div>
                                            <div class="col-lg-8">
                                                {{ helper.linkIt(value, content)|raw }}
                                            </div>
                                        </div>
                                    {% endif %}

                                {% endif %}
                            </div>

                        {% endfor %}
                    </div>
                </div>
            </div>



    {# / Zeile #}
    {% if i == 2 or loop.index == keyArr|length or block.size == "large" %}
        {% set i = 0 %}
        </div>
    {% elseif keyArr[loop.index] is defined and helper.blocks[keyArr[loop.index]] is defined %}
        {% if helper.blocks[keyArr[loop.index]].size == "large" %}
            {% set i = 0 %}
            </div>
        {% endif %}
    {% endif %}

{% endfor %}

{% if i > 0 %}
</div>
{% endif %}
{'fraction_non_alphanumeric': 0.11013973486205661, 'fraction_numerical': 0.002866356144750985, 'mean_word_length': 0.7323733862959285, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 214, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1357101', 'n_tokens_mistral': 3022, 'n_tokens_neox': 2647, 'n_words': 633}