<commit_before>{% set extraparams = extraparams|merge(filter.currentparameters) %}

{% include 'KunstmaanAdminListBundle:AdminListTwigExtension:filters.html.twig' %}
{% include 'KunstmaanAdminListBundle:AdminListTwigExtension:pagination.html.twig' %}

<table class="table table-striped table-bordered">
    <thead>
	    <tr>
	        {% for column in adminlist.columns%}
	            {% set columnName = column.fieldName%}
	            {% set columnkey = column.fieldheader%}
	            {% set orderDirection = "DESC" %}
	            {% set extraHeaderClass = "" %}
	            {% if ( columnName == adminlist.orderBy )%}
	                {% if adminlist.orderDirection == "DESC" %}
	                    {% set orderDirection = "ASC" %}
	                    {% set extraHeaderClass = "headerSortDown" %}
	                {% else %}
	                    {% set extraHeaderClass = "headerSortUp" %}
	                {% endif %}
	            {% endif %}
	            <th {% if adminlist.hasSort(columnName) %} class="header {{extraHeaderClass}}" onclick="window.location = '{{ path(basepath, extraparams|merge({ 'orderBy': columnName, "orderDirection": orderDirection }))}}'"{% endif %}>{{ columnkey | trans }}</th>
	        {% endfor %}
	        <th>{{ 'form.actions'|trans }}</th>
	    </tr>
    </thead>
    <tbody>
    {% for item in adminlist.items(queryparams) %}
        <tr>
            {% for column in adminlist.columns%}
                {% set columnName = column.fieldName%}
                {% set template = column.template%}
                {% if template is not null %}
                    <td>{% include template with {'row': item, 'columnName': columnName, 'object': adminlist.getValue(item, columnName)} %}</td>
                {% else %}
                    <td>{{adminlist.getStringValue(item, columnName)}}</td>
                {% endif %}
            {% endfor %}
            <td class="actions">
                {% if adminlist.canEdit(item) %}
                    <a href="{{ path(adminlist.getEditUrlFor(item)["path"], adminlist.getEditUrlFor(item)[("params")] ) }}"><i class="icon-edit"></i>Edit</a>
                {% endif %}
                {% if adminlist.canDelete(item) %}
                    {% if adminlist.getDeleteUrlFor(item)["action"] is defined %}
                        {% render adminlist.getDeleteUrlFor(item)["action"] with {'entity_id': item.id} %}
                    {% elseif adminlist.getDeleteUrlFor(item)["path"] is defined %}
                        <a href="{{ path(adminlist.getDeleteUrlFor(item)["path"], adminlist.getDeleteUrlFor(item)[("params")] ) }}" data-toggle="modal" data-target="#sure-modal-{{ item.id }}" class="danger"><i class="icon-remove-sign"></i>Delete</a>
                    {% endif %}
                {% endif %}
                {% if adminlist.hasCustomActions() %}
                    {% for customAction in adminlist.getCustomActions() %}
                        {% if customAction.template is not null %}
                            {% include customAction.template with {'row': item, 'item': item} %}
                        {% else %}
                            <a href="{{ path(customAction.getUrlFor(item)["path"], customAction.getUrlFor(item)[("params")] ) }}">
                            {% if customAction.getIcon(item) is not null %}
                                <img src="{{ asset(customAction.getIcon(item)) }}" alt="{{ customAction.getLabel(item) }}"/>
                            {% else %}
                                {{ customAction.getLabel(item) }}
                            {% endif %}
                            </a>
                        {% endif %}
                    {% endfor %}
                {% endif %}
                {% include 'KunstmaanAdminListBundle:AdminListTwigExtension:sure-modal.html.twig' %}
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

{% if adminlist.canAdd() %}
    <select onchange="location = this.options[this.selectedIndex].value;">
        <option>{{ 'form.add' | trans }}</option>
        {% for key,add in adminlist.getAddUrlFor(addparams) %}
            <option value="{{ path(add["path"], add[("params")]) }}">{{ key }}</option>
        {% endfor %}
    </select>
{% endif %}

{% include 'KunstmaanAdminListBundle:AdminListTwigExtension:pagination.html.twig' %}<commit_msg>fix issue<commit_after>{% set extraparams = extraparams|merge(filter.currentparameters) %}

{% include 'KunstmaanAdminListBundle:AdminListTwigExtension:filters.html.twig' %}
{% include 'KunstmaanAdminListBundle:AdminListTwigExtension:pagination.html.twig' %}

<table class="table table-striped table-bordered">
    <thead>
	    <tr>
	        {% for column in adminlist.columns%}
	            {% set columnName = column.fieldName%}
	            {% set columnkey = column.fieldheader%}
	            {% set orderDirection = "DESC" %}
	            {% set extraHeaderClass = "" %}
	            {% if ( columnName == adminlist.orderBy )%}
	                {% if adminlist.orderDirection == "DESC" %}
	                    {% set orderDirection = "ASC" %}
	                    {% set extraHeaderClass = "headerSortDown" %}
	                {% else %}
	                    {% set extraHeaderClass = "headerSortUp" %}
	                {% endif %}
	            {% endif %}
	            <th {% if adminlist.hasSort(columnName) %} class="header {{extraHeaderClass}}" onclick="window.location = '{{ path(basepath, extraparams|merge({ 'orderBy': columnName, "orderDirection": orderDirection }))}}'"{% endif %}>{{ columnkey | trans }}</th>
	        {% endfor %}
	        <th>{{ 'form.actions'|trans }}</th>
	    </tr>
    </thead>
    <tbody>
    {% for item in adminlist.items(queryparams) %}
        <tr>
            {% for column in adminlist.columns%}
                {% set columnName = column.fieldName%}
                {% set template = column.template%}
                {% if template is not null %}
                    <td>{% include template with {'row': item, 'columnName': columnName, 'object': adminlist.getValue(item, columnName)} %}</td>
                {% else %}
                    <td>{{adminlist.getStringValue(item, columnName)}}</td>
                {% endif %}
            {% endfor %}
            <td class="actions">
            	{% include 'KunstmaanAdminListBundle:AdminListTwigExtension:sure-modal.html.twig' %}
                {% if adminlist.canEdit(item) %}
                    <a href="{{ path(adminlist.getEditUrlFor(item)["path"], adminlist.getEditUrlFor(item)[("params")] ) }}"><i class="icon-edit"></i>Edit</a>
                {% endif %}
                {% if adminlist.canDelete(item) %}
                    {% if adminlist.getDeleteUrlFor(item)["action"] is defined %}
                        {% render adminlist.getDeleteUrlFor(item)["action"] with {'entity_id': item.id} %}
                    {% elseif adminlist.getDeleteUrlFor(item)["path"] is defined %}
                        <a href="{{ path(adminlist.getDeleteUrlFor(item)["path"], adminlist.getDeleteUrlFor(item)[("params")] ) }}" data-toggle="modal" data-target="#sure-modal-{{ item.id }}" class="danger"><i class="icon-remove-sign"></i>Delete</a>
                    {% endif %}
                {% endif %}
                {% if adminlist.hasCustomActions() %}
                    {% for customAction in adminlist.getCustomActions() %}
                        {% if customAction.template is not null %}
                            {% include customAction.template with {'row': item, 'item': item} %}
                        {% else %}
                            <a href="{{ path(customAction.getUrlFor(item)["path"], customAction.getUrlFor(item)[("params")] ) }}">
                            {% if customAction.getIcon(item) is not null %}
                                <img src="{{ asset(customAction.getIcon(item)) }}" alt="{{ customAction.getLabel(item) }}"/>
                            {% else %}
                                {{ customAction.getLabel(item) }}
                            {% endif %}
                            </a>
                        {% endif %}
                    {% endfor %}
                {% endif %}
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

{% if adminlist.canAdd() %}
    <select onchange="location = this.options[this.selectedIndex].value;">
        <option>{{ 'form.add' | trans }}</option>
        {% for key,add in adminlist.getAddUrlFor(addparams) %}
            <option value="{{ path(add["path"], add[("params")]) }}">{{ key }}</option>
        {% endfor %}
    </select>
{% endif %}

{% include 'KunstmaanAdminListBundle:AdminListTwigExtension:pagination.html.twig' %}
{'fraction_non_alphanumeric': 0.16104135468264025, 'fraction_numerical': 0.0, 'mean_word_length': 1.8872630528766212, 'pattern_counts': {'":': 2, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6444110', 'n_tokens_mistral': 2594, 'n_tokens_neox': 2260, 'n_words': 431}