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

/django/contrib/admin/templates/admin/change_list.html

https://code.google.com/p/mango-py/
HTML | 104 lines | 96 code | 8 blank | 0 comment | 0 complexity | 58fa9ad33b9147f381d57e9c52f2935c MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {% extends "admin/base_site.html" %}
  2. {% load adminmedia admin_list i18n %}
  3. {% load url from future %}
  4. {% block extrastyle %}
  5. {{ block.super }}
  6. <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" />
  7. {% if cl.formset %}
  8. <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />
  9. {% endif %}
  10. {% if cl.formset or action_form %}
  11. {% url 'admin:jsi18n' as jsi18nurl %}
  12. <script type="text/javascript" src="{{ jsi18nurl|default:'../../jsi18n/' }}"></script>
  13. {% endif %}
  14. {{ media.css }}
  15. {% if not actions_on_top and not actions_on_bottom %}
  16. <style>
  17. #changelist table thead th:first-child {width: inherit}
  18. </style>
  19. {% endif %}
  20. {% endblock %}
  21. {% block extrahead %}
  22. {{ block.super }}
  23. {{ media.js }}
  24. {% if action_form %}{% if actions_on_top or actions_on_bottom %}
  25. <script type="text/javascript">
  26. (function($) {
  27. $(document).ready(function($) {
  28. $("tr input.action-select").actions();
  29. });
  30. })(django.jQuery);
  31. </script>
  32. {% endif %}{% endif %}
  33. {% endblock %}
  34. {% block bodyclass %}change-list{% endblock %}
  35. {% if not is_popup %}
  36. {% block breadcrumbs %}
  37. <div class="breadcrumbs">
  38. <a href="../../">
  39. {% trans "Home" %}
  40. </a>
  41. &rsaquo;
  42. <a href="../">
  43. {{ app_label|capfirst }}
  44. </a>
  45. &rsaquo;
  46. {{ cl.opts.verbose_name_plural|capfirst }}
  47. </div>
  48. {% endblock %}
  49. {% endif %}
  50. {% block coltype %}flex{% endblock %}
  51. {% block content %}
  52. <div id="content-main">
  53. {% block object-tools %}
  54. {% if has_add_permission %}
  55. <ul class="object-tools">
  56. {% block object-tools-items %}
  57. <li>
  58. <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
  59. {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
  60. </a>
  61. </li>
  62. {% endblock %}
  63. </ul>
  64. {% endif %}
  65. {% endblock %}
  66. {% if cl.formset.errors %}
  67. <p class="errornote">
  68. {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
  69. </p>
  70. {{ cl.formset.non_form_errors }}
  71. {% endif %}
  72. <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
  73. {% block search %}{% search_form cl %}{% endblock %}
  74. {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
  75. {% block filters %}
  76. {% if cl.has_filters %}
  77. <div id="changelist-filter">
  78. <h2>{% trans 'Filter' %}</h2>
  79. {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
  80. </div>
  81. {% endif %}
  82. {% endblock %}
  83. <form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %}
  84. {% if cl.formset %}
  85. <div>{{ cl.formset.management_form }}</div>
  86. {% endif %}
  87. {% block result_list %}
  88. {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %}
  89. {% result_list cl %}
  90. {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %}
  91. {% endblock %}
  92. {% block pagination %}{% pagination cl %}{% endblock %}
  93. </form>
  94. </div>
  95. </div>
  96. {% endblock %}