~jaboing/canonical-identity-provider/new_tests

« back to all changes in this revision

Viewing changes to identityprovider/templates/nexus/admin/change_list.html

just trying to merge with latest...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "nexus/admin/base_site.html" %}
 
2
{% load staticfiles admin_list i18n %}
 
3
 
 
4
{% block head %}
 
5
  {{ block.super }}
 
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
    {% url 'admin:jsi18n' as jsi18nurl %}
 
11
    <script type="text/javascript" src="{{ jsi18nurl|default:'../../jsi18n/' }}"></script>
 
12
  {% endif %}
 
13
  {{ media.css }}
 
14
    {{ media.js }}
 
15
    {% if action_form %}{% if actions_on_top or actions_on_bottom %}
 
16
    <script type="text/javascript">
 
17
    (function($) {
 
18
        $(document).ready(function($) {
 
19
            $("tr input.action-select").actions();
 
20
        });
 
21
    })(django.jQuery);
 
22
    </script>
 
23
    {% endif %}{% endif %}
 
24
{% endblock %}
 
25
 
 
26
{% if not is_popup %}
 
27
    {% block breadcrumb_bits %}
 
28
        <li><a href="../../">{% trans "Model Admin" %}</a></li>
 
29
        <li><a href="../">{{ app_label|capfirst }}</a></li>
 
30
        <li><span>{{ cl.opts.verbose_name_plural|capfirst }}</span></li>
 
31
    {% endblock %}
 
32
{% endif %}
 
33
 
 
34
{% block content %}
 
35
    {% block object-tools %}
 
36
        {% if has_add_permission %}
 
37
            <ul class="object-tools">
 
38
                <li>
 
39
                    <a href="add/{% if is_popup %}?_popup=1{% endif %}" class="button small">
 
40
                        {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
 
41
                    </a>
 
42
                </li>
 
43
            </ul>
 
44
        {% endif %}
 
45
    {% endblock %}
 
46
    {% if cl.formset.errors %}
 
47
        <p class="errornote">
 
48
            {% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
 
49
        </p>
 
50
        {{ cl.formset.non_form_errors }}
 
51
    {% endif %}
 
52
    <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
 
53
        <div class="clearfix">
 
54
            {% block search %}{% search_form cl %}{% endblock %}
 
55
            {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %}
 
56
 
 
57
            {% block filters %}
 
58
                {% if cl.has_filters %}
 
59
                    <div id="changelist-filter">
 
60
                        <h2>{% trans 'Filter' %}</h2>
 
61
                        {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
 
62
                    </div>
 
63
                {% endif %}
 
64
            {% endblock %}
 
65
        
 
66
            <form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %}
 
67
            {% if cl.formset %}
 
68
                {{ cl.formset.management_form }}
 
69
            {% endif %}
 
70
 
 
71
            {% block result_list %}
 
72
                    <div id="toolbar-placeholder">
 
73
                        {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %}
 
74
                    </div>
 
75
                    {% result_list cl %}
 
76
                    {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %}
 
77
            {% endblock %}
 
78
            </form>
 
79
        </div>
 
80
        {% block pagination %}{% pagination cl %}{% endblock %}
 
81
    </div>
 
82
{% endblock %}