33
44{% block extrastyle %}
55 {{ block.super }}
6+ {% comment %}
67 {% if suit %}
7- < link rel ="stylesheet " type ="text/css " href ="/static/suit/css/suit.css " media ="all ">
8+ < link rel ="stylesheet " type ="text/css " href ="/static/suit/css/suit.css " media ="all ">
9+ {% endif %}
10+ {% endcomment %}
11+ {% if not suit %}
12+ < link rel ="stylesheet " type ="text/css " href ="{% static "admin /css/changelists.css" %}" />
813 {% endif %}
9- < link rel ="stylesheet " type ="text/css " href ="{% static "admin /css/changelists.css" %}" />
1014 {% if has_filters %}
1115 < link rel ="stylesheet " type ="text/css " href ="{% static "admin /css/forms.css" %}" />
1216 < script type ="text/javascript " src ="{% url 'admin:jsi18n' %} "> </ script >
@@ -51,9 +55,10 @@ <h3 style="padding:0px;">{{ title }}</h3>
5155
5256 < p > </ p >
5357
54- < div class ="toolbar-content {% if suit %}clearfix{% endif %} ">
55- {% block search %}
56- < div {% if suit %}id ="toolbar " class ="clearfix "{% else %} id ="changelist " class ="module filtered "{% endif %} >
58+ < div id ="changelist " class ="{% if suit %}module-filtered{% else %}toolbar-content module{% endif %} ">
59+
60+ < div id ="toolbar " {% if suit %}class ="clearfix "{% endif %} >
61+ {% block search %}
5762 < form id ="report-search " action ="" method ="get " class ="form-inline ">
5863 {% if has_filters %}
5964 < div >
@@ -63,69 +68,69 @@ <h3 style="padding:0px;">{{ title }}</h3>
6368 </ span >
6469 {% endspaceless %}
6570 < input type ="submit " value ="{% trans 'Search' %} " class ="btn btn-info "/>
71+ < a href ="{{ export_path }} " class ="btn "> {% trans 'Export' %}</ a >
6672 < span class ="small quiet result-count ">
67- < a href ="{{ export_path }} " class ="btn "> {% trans 'Export' %}</ a >
68- {{ rl.full_result_count }} {% trans 'results' %}
73+ {{ rl.get_result_count }} {% trans 'results' %}
6974 < a href ="? "> {% trans 'Clear query' %}</ a >
7075 </ span >
7176 </ div >
7277 {% endif %}
73- < div class ="results ">
74- {% block result %}
75- < table id ="result_list " {% if suit %}class ="table table-striped table-bordered table-hover table-condensed "{% endif %} >
76- < thead >
77- < tr >
78- {% for header in rl.headers %}
79- < th scope ="col " {{ header.class_attrib }} >
80- {% if header.sortable %}
81- {% if header.sort_priority > 0 %}
82- {% if suit %}< div class ="relative-wrapper "> {% endif %}
83- < div class ="sortoptions ">
84-
85- {% if rl.num_sorted_fields > 1 %}< span class ="sortpriority " title ="{% blocktrans with priority_number=header.sort_priority %}Sorting priority: {{ priority_number }}{% endblocktrans %} "> {{ header.sort_priority }}</ span > {% endif %}
86-
87- < a href ="{{ header.url_toggle }} " class ="toggle {% if header.ascending %}ascending{% else %}descending{% endif %} " title ="{% trans "Toggle sorting " %}"> </ a >
88- < a class ="sortremove " href ="{{ header.url_remove }} " title ="{% trans "Remove from sorting " %}"> </ a >
89- {% if suit %}</ div > {% endif %}
90- </ div >
91- {% endif %}
92- {% endif %}
93- < div class ="text "> {% if header.sortable %}< a href ="{{ header.url_primary }} "> {{ header.label|capfirst }}</ a > {% else %}< span > {{ header.label|capfirst }}</ span > {% endif %}</ div >
94- < div class ="clear "> </ div >
95- </ th >
96- {% endfor %}
97- </ tr >
98- </ thead >
99-
100- {% if totals and totals_on_top %}
101- {% include "admin/report_totals.html" %}
102- {% endif %}
103-
104- < tbody >
105- {% for result in rl.results %}
106- < tr class ="{% cycle 'row1' 'row2' %} ">
107- {% for alignment, item in result %}
108- < td class ="{{ alignment }} "> {{ item }}</ td >
109- {% endfor %}
110- </ tr >
111- {% endfor %}
112- </ tbody >
113-
114- {% if totals and not totals_on_top %}
115- {% include "admin/report_totals.html" %}
116- {% endif %}
117-
118- </ table >
119- {% endblock %}
120- </ div >
121-
122- {% block pagination %}{% pagination rl %}{% endblock %}
123-
12478 </ form >
125- </ div >
126- {% endblock %}
79+ {% endblock %}
80+ </ div >
81+
82+ < div class ="results ">
83+ {% block result %}
84+ < table id ="result_list " {% if suit %}class ="table table-striped table-bordered table-hover table-condensed "{% endif %} >
85+ < thead >
86+ < tr >
87+ {% for header in rl.headers %}
88+ < th scope ="col " {{ header.class_attrib }} >
89+ {% if header.sortable %}
90+ {% if header.sort_priority > 0 %}
91+ {% if suit %}< div class ="relative-wrapper "> {% endif %}
92+ < div class ="sortoptions ">
93+
94+ {% if rl.num_sorted_fields > 1 %}< span class ="sortpriority " title ="{% blocktrans with priority_number=header.sort_priority %}Sorting priority: {{ priority_number }}{% endblocktrans %} "> {{ header.sort_priority }}</ span > {% endif %}
95+
96+ < a href ="{{ header.url_toggle }} " class ="toggle {% if header.ascending %}ascending{% else %}descending{% endif %} " title ="{% trans "Toggle sorting " %}"> </ a >
97+ < a class ="sortremove " href ="{{ header.url_remove }} " title ="{% trans "Remove from sorting " %}"> </ a >
98+ {% if suit %}</ div > {% endif %}
99+ </ div >
100+ {% endif %}
101+ {% endif %}
102+ < div class ="text "> {% if header.sortable %}< a href ="{{ header.url_primary }} "> {{ header.label|capfirst }}</ a > {% else %}< span > {{ header.label|capfirst }}</ span > {% endif %}</ div >
103+ < div class ="clear "> </ div >
104+ </ th >
105+ {% endfor %}
106+ </ tr >
107+ </ thead >
108+
109+ {% if totals and totals_on_top %}
110+ {% include "admin/report_totals.html" %}
111+ {% endif %}
112+
113+ < tbody >
114+ {% for result in rl.results %}
115+ < tr class ="{% cycle 'row1' 'row2' %} ">
116+ {% for alignment, item in result %}
117+ < td class ="{{ alignment }} "> {{ item }}</ td >
118+ {% endfor %}
119+ </ tr >
120+ {% endfor %}
121+ </ tbody >
122+
123+ {% if totals and not totals_on_top %}
124+ {% include "admin/report_totals.html" %}
125+ {% endif %}
126+
127+ </ table >
128+ {% endblock %}
129+ </ div >
130+
131+ {% block pagination %}{% pagination rl %}{% endblock %}
132+
127133 </ div >
128134 </ div >
129135 </ div >
130-
131136{% endblock %}
0 commit comments