PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/django/contrib/admin/templates/mako/admin/pagination.html

https://code.google.com/p/mango-py/
HTML | 40 lines | 28 code | 12 blank | 0 comment | 0 complexity | 03e82993101f5fcc8693772efe06d393 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <%def name="pagination(cl, pagination_required, show_all_url, page_range, ALL_VAR)" >
  2. <form name="gotopage" method="GET" action=".">
  3. <p class="paginator">
  4. % if pagination_required:
  5. <%
  6. from django.contrib.admin.templatetags.admin_list import paginator_number
  7. %>
  8. % for i in page_range:
  9. ${ paginator_number(cl,i) }
  10. % endfor
  11. % endif
  12. ${cl.result_count}
  13. % if cl.result_count==1:
  14. ${cl.opts.verbose_name}
  15. % else:
  16. ${cl.opts.verbose_name_plural}
  17. % endif
  18. % if show_all_url:
  19. &nbsp;&nbsp;<a href="${show_all_url}" class="showall">${trans('Show all')}</a>
  20. % endif
  21. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to page <input type="text" size="4" name="p">
  22. ${cl.build_hidden_input_tags()}
  23. % if cl.formset and cl.result_count:
  24. <input type="submit" name="_save" class="default" value="${ trans('Save') }"/>
  25. % endif
  26. </p>
  27. </form>
  28. </%def>