pagination.html 835 B

123456789101112131415161718192021
  1. {% load admin_list %}
  2. {% load i18n %}
  3. <p class="button-group">
  4. <span class="button-group-label small">
  5. <strong>{{ cl.result_count }}</strong> {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}
  6. {% if show_all_url %}&nbsp;&nbsp;<a href="{{ show_all_url }}" class="showall">{% trans 'Show all' %}</a>{% endif %}
  7. </span>
  8. {% if pagination_required %}
  9. <span class="button-group-buttons">
  10. {% spaceless %}
  11. {% for i in page_range %}
  12. {% paginator_number cl i %}
  13. {% endfor %}
  14. {% endspaceless %}
  15. </span>
  16. {% endif %}
  17. {% if cl.formset and cl.result_count %}<input type="submit" name="_save" class="default" value="{% trans 'Save' %}"/>{% endif %}
  18. </p>