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

« 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: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  <link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" />
7
7
  {% if cl.formset %}
8
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 }}
 
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 }}
12
15
  {% if not actions_on_top and not actions_on_bottom %}
13
16
    <style>
14
17
      #changelist table thead th:first-child {width: inherit}
16
19
  {% endif %}
17
20
{% endblock %}
18
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
 
19
36
{% block bodyclass %}change-list{% endblock %}
20
37
 
21
38
{% if not is_popup %}
53
70
        <p class="errornote">
54
71
        {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
55
72
        </p>
56
 
        <ul class="errorlist">{% for error in cl.formset.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>
 
73
        {{ cl.formset.non_form_errors }}
57
74
    {% endif %}
58
75
    <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
59
76
      {% block search %}{% search_form cl %}{% endblock %}
68
85
        {% endif %}
69
86
      {% endblock %}
70
87
      
71
 
      <form action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>
 
88
      <form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %}
72
89
      {% if cl.formset %}
73
90
        {{ cl.formset.management_form }}
74
91
      {% endif %}