{% extends "admin/base_site.html" %} {% load i18n %}{% load url from future %} {% block bodyclass %}grp-doc{% endblock %} {% block content-class %}{% endblock %} {% block title %}Grappelli Documentation » Pagination{% endblock %} {% block extrahead %} {% endblock %} {% block breadcrumbs %}
The pagination is meant to appear in a .grp-row within a .grp-module.
Basically it is a nav.grp-pagination containing a hidden header (to appear in the document outlines) and ul with li representing the results and pages.
Everything within a li has to be either a span or an a (if it's clickable).
Make sure to wrap the pagination with spaceless-tags to avoid whitespaces.
{% filter force_escape %}
{% templatetag openblock %} spaceless {% templatetag closeblock %}
{% templatetag openblock %} endspaceless {% templatetag closeblock %}
{% endfilter %}
Take a look at Grappellis pagination.html to get the full code of a pagination (e.g. like it is used in a change-list).