PageRenderTime 254ms CodeModel.GetById 160ms app.highlight 3ms RepoModel.GetById 88ms 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
  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
 22{% block extrahead %}
 23{{ block.super }}
 24{{ media.js }}
 25{% if action_form %}{% if actions_on_top or actions_on_bottom %}
 26<script type="text/javascript">
 27(function($) {
 28    $(document).ready(function($) {
 29        $("tr input.action-select").actions();
 30    });
 31})(django.jQuery);
 32</script>
 33{% endif %}{% endif %}
 34{% endblock %}
 35
 36{% block bodyclass %}change-list{% endblock %}
 37
 38{% if not is_popup %}
 39  {% block breadcrumbs %}
 40    <div class="breadcrumbs">
 41      <a href="../../">
 42        {% trans "Home" %}
 43      </a>
 44       &rsaquo;
 45       <a href="../">
 46         {{ app_label|capfirst }}
 47      </a>
 48      &rsaquo;
 49      {{ cl.opts.verbose_name_plural|capfirst }}
 50    </div>
 51  {% endblock %}
 52{% endif %}
 53
 54{% block coltype %}flex{% endblock %}
 55
 56{% block content %}
 57  <div id="content-main">
 58    {% block object-tools %}
 59      {% if has_add_permission %}
 60        <ul class="object-tools">
 61          {% block object-tools-items %}
 62            <li>
 63              <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
 64                {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
 65              </a>
 66            </li>
 67          {% endblock %}
 68        </ul>
 69      {% endif %}
 70    {% endblock %}
 71    {% if cl.formset.errors %}
 72        <p class="errornote">
 73        {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
 74        </p>
 75        {{ cl.formset.non_form_errors }}
 76    {% endif %}
 77    <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
 78      {% block search %}{% search_form cl %}{% endblock %}
 79      {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
 80
 81      {% block filters %}
 82        {% if cl.has_filters %}
 83          <div id="changelist-filter">
 84            <h2>{% trans 'Filter' %}</h2>
 85            {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
 86          </div>
 87        {% endif %}
 88      {% endblock %}
 89
 90      <form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %}
 91      {% if cl.formset %}
 92        <div>{{ cl.formset.management_form }}</div>
 93      {% endif %}
 94
 95      {% block result_list %}
 96          {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %}
 97          {% result_list cl %}
 98          {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %}
 99      {% endblock %}
100      {% block pagination %}{% pagination cl %}{% endblock %}
101      </form>
102    </div>
103  </div>
104{% endblock %}