{% extends 'D2CoreBundle::base.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block page_header %}
{% for k, v in app.request.query %} {% if k|lower not in ['search', 'page', 'enabled'] %} {% endif %} {% endfor %}
Displaying {{ (country_list.getCurrentPageNumber()-1) * country_list.getItemNumberPerPage() + 1 }} to {{ ((country_list.getCurrentPageNumber()-1) * country_list.getItemNumberPerPage()) + (country_list.getItems()|length) }} of {{ country_list.getTotalItemCount() }} records
{% endblock page_header %} {% block content %} {% for entity in country_list %} {% endfor %}
{{ knp_pagination_sortable(country_list, 'Status', 'c.enabled') }} {{ knp_pagination_sortable(country_list, 'Country', 'c.country') }} {{ knp_pagination_sortable(country_list, 'Code', 'c.code') }}
{{ entity.enabled ? 'Enabled' : 'Disabled' }} {{ entity.country|trim }} {{ entity.code|trim }} {% if is_granted('ROLE_ADMIN_SETTINGS_EDIT') %}
{% endif %}
{% endblock content %}