{% extends 'D2ContentBundle::base_admin.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', 'from_date', 'to_date'] %} {% endif %} {% endfor %}
Displaying {{ (shoes.getCurrentPageNumber()-1) * shoes.getItemNumberPerPage() + 1 }} to {{ ((shoes.getCurrentPageNumber()-1) * shoes.getItemNumberPerPage()) + (shoes.getItems()|length) }} of {{ shoes.getTotalItemCount() }} Shoe records
{% endblock page_header %} {% block content %} {% for entity in shoes %} {% endfor %}
{{ knp_pagination_sortable(shoes, 'Category', 's.category') }} {{ knp_pagination_sortable(shoes, 'Name', 's.title') }} {{ knp_pagination_sortable(shoes, 'Heading', 's.heading') }} {{ knp_pagination_sortable(shoes, 'Price', 's.price') }} {{ knp_pagination_sortable(shoes, 'Date', 's.create_ts') }} {{ knp_pagination_sortable(shoes, 'Status', 's.enabled') }}
{{ entity.getCategory | trim }} {{ entity.getTitle }} {{ entity.getHeading }} R{{ entity.getPrice | number_format(2, '.', ' ') }} {{ entity.getCreateTs|date("Y/m/d g:ia") }} {{ entity.getEnabled ? 'Active' : 'Inactive' }}
{% endblock content %}