1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{% extends "base.html" %}
{% block title %}{{ model.name }} — rustango admin{% endblock title %}
{% block body %}
{{ admin_title }}
{{ model.name }}
{{ model.name }}
Table: {{ model.table }}
{% if count_skipped %}
— row count hidden (large table)
{% else %}
— {{ total }} row{{ plural }}
{% endif %}
{% if read_only %}
· read-only
{% else %}
· + new {{ model.name }}
{% endif %}
{% if has_searchable %}
Go
{% for f in active_filters %}
{% endfor %}
{% endif %}
{% if q or active_filters | length > 0 %}
filtered by:
{% if q %}q={{ q }} {% endif %}
{% for f in active_filters %}{{ f.key }}={{ f.value }} {% endfor %}
· clear
{% endif %}
{% if rows | length == 0 %}
No rows on this page.
{% else %}
{% if actions and actions | length > 0 and not read_only %}
Action:
— Select —
{% for a in actions %}
{{ a.label }}
{% endfor %}
Go
{% endif %}
{% if actions and actions | length > 0 and not read_only %}
{% endif %}
{% for col in columns %}
{{ col.label | safe }}
{% endfor %}
{% for row in rows %}
{% if actions and actions | length > 0 and not read_only %}
{% if row.pk %}{% endif %}
{% endif %}
{% for cell in row.cells %}{{ cell | safe }}{% endfor %}
{% if row.pk %}View{% endif %}
{% endfor %}
{% endif %}
{% if count_skipped %}
{% if page > 1 %}
← prev
{% else %}
← prev
{% endif %}
· Page {{ page }} ·
{% if has_next %}
next →
{% else %}
next →
{% endif %}
{% elif last_page > 1 %}
{% if page > 1 %}
← prev
{% else %}
← prev
{% endif %}
· Page {{ page }} of {{ last_page }} ·
{% if page < last_page %}
next →
{% else %}
next →
{% endif %}
{% endif %}
{# /list-main #}
{% if facets and facets | length > 0 %}
{% for facet in facets %}
By {{ facet.field }}
{% if facet.is_fk %}
{# FK facets: dropdown so the operator picks from named options #}
— all —
{% for v in facet.values %}
{{ v.display | safe }} ({{ v.count }})
{% endfor %}
{% else %}
{# Non-FK facets: link list (original behaviour) #}
{% for v in facet.values %}
{{ v.display | safe }}
({{ v.count }})
{% endfor %}
{% if facet.more_count and facet.more_count > 0 %}
+{{ facet.more_count }} more…
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{# /list-shell #}
{% endblock body %}