{% 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 {{ (tax_code_list.getCurrentPageNumber()-1) * tax_code_list.getItemNumberPerPage() + 1 }} to {{ ((tax_code_list.getCurrentPageNumber()-1) * tax_code_list.getItemNumberPerPage()) + (tax_code_list.getItems()|length) }} of {{ tax_code_list.getTotalItemCount() }} records
{% endblock page_header %} {% block content %} {% for entity in tax_code_list %} {% endfor %}
{{ knp_pagination_sortable(tax_code_list, 'Code', 't.code') }} {{ knp_pagination_sortable(tax_code_list, 'Title', 't.title') }} {{ knp_pagination_sortable(tax_code_list, 'Amount', 't.amount') }} {{ knp_pagination_sortable(tax_code_list, 'Start Date', 't.start_date') }} {{ knp_pagination_sortable(tax_code_list, 'End Date', 't.end_date') }}
{{ entity.code|trim }} {{ entity.title|trim }} {{ entity.amount|number_format(2, '.', ',') }} {% if entity.start_date %}{{ entity.start_date|date('Y-m-d') }}{% endif %} {% if entity.end_date %}{{ entity.end_date|date('Y-m-d') }}{% endif %} {% if is_granted('ROLE_ADMIN_SETTINGS_EDIT') %} {% endif %}
{% endblock content %}