{% set list_url = slug is defined and slug is not null ? url(list_route_name, {'slug': slug}) : url(list_route_name) %} {% set mgr_url = slug is defined and slug is not null ? url(mgr_route_name, {'slug': slug}) : url(mgr_route_name) %}
{% if pagination.items|length > 0 %}
{% block sidecolumn %} {% endblock %}

{{ entity }} List {% if app.request.attributes.get('_route') != 'app_ledgers' %} {{ paging }} in total {% else %} List of all the ledger on the system {% endif %}

{% if app.request.attributes.get('_route') == 'app_products' %}
Category
Status
{% endif %}
Add {{ entity }}
{% block table %} {% endblock %}
{{ knp_pagination_render(pagination) }}
{% else %}

Welcome to the {{ title.detail }} section

There are no {{ entity }} added yet.
Start by adding your first {{ entity }}

Add {{ entity }}
{% endif %}