summaryrefslogtreecommitdiff
path: root/app/lib/grappelli/templates/admin/change_list_results.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/grappelli/templates/admin/change_list_results.html')
-rw-r--r--app/lib/grappelli/templates/admin/change_list_results.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/lib/grappelli/templates/admin/change_list_results.html b/app/lib/grappelli/templates/admin/change_list_results.html
new file mode 100644
index 0000000..062b52e
--- /dev/null
+++ b/app/lib/grappelli/templates/admin/change_list_results.html
@@ -0,0 +1,29 @@
+{% if results %}
+
+ {% if result_hidden_fields %}
+ <div class="hiddenfields"> {# DIV for HTML validation #}
+ {% for item in result_hidden_fields %}{{ item }}{% endfor %}
+ </div>
+ {% endif %}
+
+ <div class="module changelist-results">
+ <table cellspacing="0">
+ <thead>
+ <tr>
+ {% for header in result_headers %}
+ <th class="{{ header.class_attrib|cut:'class='|cut:'"' }}{% if header.sortable %} sortable{% endif %}">
+ {% if header.sortable %}<a href="{{ header.url }}">{% endif %}
+ {{ header.text|capfirst }}
+ {% if header.sortable %}</a>{% endif %}
+ </th>
+ {% endfor %}
+ </tr>
+ </thead>
+ <tbody>
+ {% for result in results %}
+ <tr class="{% cycle 'row1' 'row2' %}">{% for item in result %}{{ item }}{% endfor %}</tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+{% endif %}