Geen omschrijving

change_list.html 3.2KB

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