1 {% extends basetemplate %}
7 <script type="text/javascript">
9 var $form = $('#changelist-search');
11 $('.node-type-link').click(function() {
12 $form.find('#id_state_type').val('any');
13 $form.find('#id_node_type').val($(this).attr('href').substring(1));
17 $('.state-type-link').click(function() {
18 $form.find('#id_state_type').val($(this).attr('href').substring(1));
25 list-style-type: none;
33 {% trans "Node manager" %}
35 {% block description %}
36 {% trans "Nodes bulk management" %}
39 {% block admincontent %}
40 <div id="changelist" class="module filtered">
42 <form method="get" action="" id="changelist-search">
44 <label for="searchbar"><img alt="Search" src="{{ settings.ADMIN_MEDIA_PREFIX }}img/admin/icon_searchbox.png"></label>
45 {{ filter_form.text }}
46 {{ filter_form.node_type }}
47 {{ filter_form.state_type }}
48 <input type="submit" value="Search"><br />
49 {{ filter_form.text_in }}
53 <div id="changelist-filter">
54 <h2>{% trans "Filter" %}</h2>
55 <h3>{% trans "By type" %}</h3>
57 {% for type, name in node_types %}
58 <li{% ifequal filter_form.node_type.data type %} class="selected"{% endifequal %}>
59 <a class="node-type-link" href="#{{ type }}">{{ name }}</a>
63 <h3>{% trans "By state" %}</h3>
65 <li{% ifequal filter_form.state_type.data "any" %} class="selected"{% endifequal %}><a class="state-type-link" href="#any">{% trans "any" %}</a></li>
66 {% for state_type in state_types %}
67 <li{% ifequal filter_form.state_type.data state_type %} class="selected"{% endifequal %}>
68 <a class="state-type-link" href="#{{ state_type }}">{{ state_type }}</a>
73 <form id="changelist-form" method="POST" action="">
74 <div class="action"></div>
75 <table id="result_list" cellspacing="0">
78 <th class="action-checkbox-column">
79 <input type="checkbox" id="action-toggle" style="display: inline;" />
81 {% ifequal filter_form.node_type.data "all" %}
82 <th>{% trans "Type" %}</th>
84 <th>{% trans "Title" %}</th>
85 <th>{% trans "Author" %}</th>
89 {% for node in nodes.paginator.page %}
90 <tr class="{% cycle 'row1' 'row2' %}">
91 <td><input type="checkbox" name="_selected_action" value="{{ node.id }}" class="action-select"></td>
92 {% ifequal filter_form.node_type.data "all" %}
93 <th>{{ node.friendly_name }}</th>
95 <td><a href="{{ node.get_absolute_url }}" target="_blank">{{ node.headline }}</a></td>
96 <td><a href="{{ node.author.get_absolute_url }}">{{ node.author.username }}</a></td>
101 {{ nodes.paginator.page_numbers }}