~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to django/contrib/admin/templates/admin/change_list.html

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2009-07-29 11:26:28 UTC
  • mfrom: (1.1.8 upstream) (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090729112628-pg09ino8sz0sj21t
Tags: 1.1-1
* New upstream release.
* Merge from experimental:
  - Ship FastCGI initscript and /etc/default file in python-django's examples
    directory (Closes: #538863)
  - Drop "05_10539-sphinx06-compatibility.diff"; it has been applied
    upstream.
  - Bump Standards-Version to 3.8.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% extends "admin/base_site.html" %}
2
2
{% load adminmedia admin_list i18n %}
3
3
 
4
 
{% block stylesheet %}{% admin_media_prefix %}css/changelists.css{% endblock %}
 
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
    <script type="text/javascript" src="../../jsi18n/"></script>
 
10
  {% endif %}
 
11
  {{ media }}
 
12
  {% if not actions_on_top and not actions_on_bottom %}
 
13
    <style>
 
14
      #changelist table thead th:first-child {width: inherit}
 
15
    </style>
 
16
  {% endif %}
 
17
{% endblock %}
5
18
 
6
19
{% block bodyclass %}change-list{% endblock %}
7
20
 
8
 
{% if not is_popup %}{% block breadcrumbs %}<div class="breadcrumbs"><a href="../../">{% trans "Home" %}</a> &rsaquo; <a href="../">{{ app_label|capfirst }}</a> &rsaquo; {{ cl.opts.verbose_name_plural|capfirst }}</div>{% endblock %}{% endif %}
 
21
{% if not is_popup %}
 
22
  {% block breadcrumbs %}
 
23
    <div class="breadcrumbs">
 
24
      <a href="../../">
 
25
        {% trans "Home" %}
 
26
      </a>
 
27
       &rsaquo; 
 
28
       <a href="../">
 
29
         {{ app_label|capfirst }}
 
30
      </a>
 
31
      &rsaquo; 
 
32
      {{ cl.opts.verbose_name_plural|capfirst }}
 
33
    </div>
 
34
  {% endblock %}
 
35
{% endif %}
9
36
 
10
37
{% block coltype %}flex{% endblock %}
11
38
 
12
39
{% block content %}
13
 
<div id="content-main">
14
 
{% block object-tools %}
15
 
{% if has_add_permission %}
16
 
<ul class="object-tools"><li><a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}</a></li></ul>
17
 
{% endif %}
18
 
{% endblock %}
19
 
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
20
 
{% block search %}{% search_form cl %}{% endblock %}
21
 
{% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
22
 
 
23
 
{% block filters %}
24
 
{% if cl.has_filters %}
25
 
<div id="changelist-filter">
26
 
<h2>{% trans 'Filter' %}</h2>
27
 
{% for spec in cl.filter_specs %}
28
 
   {% admin_list_filter cl spec %}
29
 
{% endfor %}
30
 
</div>
31
 
{% endif %}
32
 
{% endblock %}
33
 
 
34
 
{% block result_list %}{% result_list cl %}{% endblock %}
35
 
{% block pagination %}{% pagination cl %}{% endblock %}
36
 
</div>
37
 
</div>
 
40
  <div id="content-main">
 
41
    {% block object-tools %}
 
42
      {% if has_add_permission %}
 
43
        <ul class="object-tools">
 
44
          <li>
 
45
            <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
 
46
              {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
 
47
            </a>
 
48
          </li>
 
49
        </ul>
 
50
      {% endif %}
 
51
    {% endblock %}
 
52
    {% if cl.formset.errors %}
 
53
        <p class="errornote">
 
54
        {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
 
55
        </p>
 
56
        <ul class="errorlist">{% for error in cl.formset.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>
 
57
    {% endif %}
 
58
    <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
 
59
      {% block search %}{% search_form cl %}{% endblock %}
 
60
      {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
 
61
 
 
62
      {% block filters %}
 
63
        {% if cl.has_filters %}
 
64
          <div id="changelist-filter">
 
65
            <h2>{% trans 'Filter' %}</h2>
 
66
            {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
 
67
          </div>
 
68
        {% endif %}
 
69
      {% endblock %}
 
70
      
 
71
      <form action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>
 
72
      {% if cl.formset %}
 
73
        {{ cl.formset.management_form }}
 
74
      {% endif %}
 
75
 
 
76
      {% block result_list %}
 
77
          {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %}
 
78
          {% result_list cl %}
 
79
          {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %}
 
80
      {% endblock %}
 
81
      {% block pagination %}{% pagination cl %}{% endblock %}
 
82
      </form>
 
83
    </div>
 
84
  </div>
38
85
{% endblock %}