Templates
=========
In your template you can use the forms and pagination snippets. E.g:
.. code-block:: jinja
{% content %}
...
{% trans "Order List" %} : {{ paginator.count }}
{% include "includes/form_paginate_by.html" with paginate_by=paginate_by range_pagination=range_pagination %}
{% include "includes/form_search.html" with search=search %}
{% trans 'Code' %}
{% trans 'Customer' %}
{% trans 'Product' %}
{% for order in object_list %}
{{ order.id }}
{{ order.customer.name|title }}
{{ order.product.name|title }}
{% endfor %}
{% endif %}
.. note::
- Example using Bootstrap Styles(CSS)
- includes/form_search.html: Form with search input. This ``include`` support placeholder too.
- includes/form_paginate_by.html: Select form to choose how many elements the page will be paginate. Ex: by (20, 40, 60, etc ...)
- includes/list_paginator.html: Block with pagination elements with the number of pages buttons, previous and next