<commit_before>{% extends '@EasyAdmin/default/list.html.twig' %}

{% trans_default_domain "EasyAdminBundle" %}

{% block content %}
    {% for flashMessage in app.session.flashbag.get('notice') %}
        <div class="flash-notice">
            {{ flashMessage }}
        </div>
    {% endfor %}
    {{ parent() }}
{% endblock %}

{% block content_title %}
    {% if 'search' == app.request.get('action') %}
        {{ 'search.page_title'|transchoice(paginator.nbResults)|raw }}
    {% else %}
        {{ (_entity_config.name~'.list.title')|trans }}
    {% endif %}
{% endblock %}

{% block new_action %}
    {% set _action = easyadmin_get_action_for_list_view('new', _entity_config.name) %}
    <div id="content-actions">
        <a  class="btn {{ _action.css_class|default('') }} pull-right"
            onClick="formModal.init('{{ path('admin', _request_parameters|merge({ action: _action.name })) }}')">
            {% if _action.icon %}<i class="fa fa-{{ _action.icon }}"></i>{% endif %}
            {{ 'action.new.label'|trans }}
        </a>
    </div>
{% endblock new_action %}

{% block item_actions %}
    {% spaceless %}
        {% for _action in _list_item_actions %}
            {% embed '@EasyAdminPopup/default/actions/default.html.twig' with {action:  _action, id: _item_id} %} {% endembed %}
        {% endfor %}

        {% set _action_href = path('admin', _request_parameters|merge({ action: 'delete', id: _item_id })) %}

        <a onClick="formModal.init('{{ _action_href }}')"
            data-toggle="tooltip"
            data-placement="right"
            data-original-title="{{ ("action.delete.tooltip")|trans }}">
            <i class="fa fa-remove"></i>
        </a>
    {% endspaceless %}
{% endblock item_actions %}

{% block search_action %}

{% set _action = easyadmin_get_action_for_list_view('search', _entity_config.name) %}

{{ form_start(searchForm) }}
    <input type="submit" />
    {# reset filter redirecting to the list #}
    <a href="{{ path('admin', _request_parameters|merge({ action: 'list' })) }}"
       data-toggle="tooltip"
       data-original-title="{{ ("action.search_reset.tooltip")|trans }}">
        <i class="fa fa-undo"></i>
    </a>
{{ form_end(searchForm) }}

{% endblock search_action %}<commit_msg>The search filters are displayed 3 in a row<commit_after>{% extends '@EasyAdmin/default/list.html.twig' %}

{% trans_default_domain "EasyAdminBundle" %}

{% block content_header %}
<div class="row">
    <div class="col-xs-12 col-sm-5">
        <h1 class="title">{{ block('content_title') }}</h1>
    </div>
    <div class="col-xs-12 col-sm-7">
    {% block view_actions %}
        {% if easyadmin_action_is_enabled_for_list_view('new', _entity_config.name) %}
            {% block new_action %}
                {% set _action = easyadmin_get_action_for_list_view('new', _entity_config.name) %}
                <div id="content-actions">
                    <a  class="btn {{ _action.css_class|default('') }} pull-right"
                        onClick="formModal.init('{{ path('admin', _request_parameters|merge({ action: _action.name })) }}')">
                        {% if _action.icon %}<i class="fa fa-{{ _action.icon }}"></i>{% endif %}
                        {{ 'action.new.label'|trans }}
                    </a>
                </div>
            {% endblock new_action %}
        {% endif %}
    {% endblock view_actions %}
    </div>
</div>
<div class="row search">
    <div class="col-xs-12 col-sm-12">
     {% if easyadmin_action_is_enabled_for_list_view('search', _entity_config.name) %}
        {% block search_action %}
            {% set _action = easyadmin_get_action_for_list_view('search', _entity_config.name) %}

            {{ form_start(searchForm) }}
            {% for child in searchForm.children %}

                    <div class="col-sm-4">
                        {{ form_row(child) }}
                    </div>
            {% endfor %}
            {{ form_rest(searchForm) }}
            <div class="buttons pull-right">
                <input type="submit" class="btn"/>
                {# reset filter redirecting to the list #}
                <a href="{{ path('admin', _request_parameters|merge({ action: 'list' })) }}"
                   class="btn"
                   data-toggle="tooltip"
                   data-original-title="{{ ("action.search_reset.tooltip")|trans }}">
                    <i class="fa fa-undo"></i>
                </a>
            </div>
            {{ form_end(searchForm) }}
        {% endblock search_action %}
    {% endif %}
    </div>
</div>
{% endblock content_header %}

{% block content %}
    {% for flashMessage in app.session.flashbag.get('notice') %}
        <div class="flash-notice">
            {{ flashMessage }}
        </div>
    {% endfor %}
    {{ parent() }}
{% endblock %}

{% block content_title %}
    {% if 'search' == app.request.get('action') %}
        {{ 'search.page_title'|transchoice(paginator.nbResults)|raw }}
    {% else %}
        {{ (_entity_config.name~'.list.title')|trans }}
    {% endif %}
{% endblock %}

{% block item_actions %}
    {% spaceless %}
        {% for _action in _list_item_actions %}
            {% embed '@EasyAdminPopup/default/actions/default.html.twig' with {action:  _action, id: _item_id} %} {% endembed %}
        {% endfor %}

        {% set _action_href = path('admin', _request_parameters|merge({ action: 'delete', id: _item_id })) %}

        <a onClick="formModal.init('{{ _action_href }}')"
            data-toggle="tooltip"
            data-placement="right"
            data-original-title="{{ ("action.delete.tooltip")|trans }}">
            <i class="fa fa-remove"></i>
        </a>
    {% endspaceless %}
{% endblock item_actions %}
{'fraction_non_alphanumeric': 0.17753749564004184, 'fraction_numerical': 0.002441576560865016, 'mean_word_length': 2.3995257854179015, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '1066839', 'n_tokens_mistral': 1880, 'n_tokens_neox': 1711, 'n_words': 317}