private_index.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n admin_urls static admin_list %}
  3. {% load core_tags %}
  4. {% block extrastyle %}
  5. {{ block.super }}
  6. <link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}">
  7. {% if cl.formset %}
  8. <link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">
  9. {% endif %}
  10. {% if cl.formset or action_form %}
  11. <script src="{% url 'admin:jsi18n' %}"></script>
  12. {% endif %}
  13. {{ media.css }}
  14. {% if not actions_on_top and not actions_on_bottom %}
  15. <style>
  16. #changelist table thead th:first-child {width: inherit}
  17. </style>
  18. {% endif %}
  19. {% endblock %}
  20. {% block extrahead %}
  21. {{ block.super }}
  22. {{ media.js }}
  23. {% endblock %}
  24. {% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-list{% endblock %}
  25. {% if not is_popup %}
  26. {% block breadcrumbs %}
  27. <div class="breadcrumbs">
  28. <a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
  29. &rsaquo; <a href="{% url 'admin:app_list' app_label=cl.opts.app_label %}">{{ cl.opts.app_config.verbose_name }}</a>
  30. &rsaquo; {{ cl.opts.verbose_name_plural|capfirst }}
  31. </div>
  32. {% endblock %}
  33. {% endif %}
  34. {% block coltype %}{% endblock %}
  35. {% block content %}
  36. <div id="content-main">
  37. {% block object-tools %}
  38. <ul class="object-tools">
  39. {% block object-tools-items %}
  40. {% change_list_object_tools %}
  41. {% endblock %}
  42. </ul>
  43. {% endblock %}
  44. {% if cl.formset and cl.formset.errors %}
  45. <p class="errornote">
  46. {% if cl.formset.total_error_count == 1 %}{% translate "Please correct the error below." %}{% else %}{% translate "Please correct the errors below." %}{% endif %}
  47. </p>
  48. {{ cl.formset.non_form_errors }}
  49. {% endif %}
  50. <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
  51. <div class="changelist-form-container">
  52. {% block search %}{% search_form cl %}{% endblock %}
  53. {% block date_hierarchy %}{% if cl.date_hierarchy %}{% date_hierarchy cl %}{% endif %}{% endblock %}
  54. <form id="changelist-form" method="post"{% if cl.formset and cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %} novalidate>{% csrf_token %}
  55. {% if cl.formset %}
  56. <div>{{ cl.formset.management_form }}</div>
  57. {% endif %}
  58. {% block result_list %}
  59. {% if action_form and actions_on_top and cl.show_admin_actions %}{% admin_actions %}{% endif %}
  60. {% comment %}
  61. Table grid
  62. {% result_list cl %}
  63. {% endcomment %}
  64. {% snapshots_grid cl %}
  65. {% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %}
  66. {% endblock %}
  67. {% block pagination %}{% pagination cl %}{% endblock %}
  68. </form>
  69. </div>
  70. {% block filters %}
  71. {% if cl.has_filters %}
  72. <div id="changelist-filter">
  73. <h2>{% translate 'Filter' %}</h2>
  74. {% if cl.has_active_filters %}<h3 id="changelist-filter-clear">
  75. <a href="{{ cl.clear_all_filters_qs }}">&#10006; {% translate "Clear all filters" %}</a>
  76. </h3>{% endif %}
  77. {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
  78. </div>
  79. {% endif %}
  80. {% endblock %}
  81. </div>
  82. </div>
  83. {% endblock %}