home · contact · privacy
21333f6d6b98940994ef77876209cf0fbc74ce95
[misc] / todo_templates / tagfilters.html
1 need:
2 {% for and_filter in filter_and %}
3 <select name="t_and">
4 <option></option>
5 {% for tag in tags | sort %}
6 <option value="{{tag|e}}" {% if and_filter == tag %}selected{% endif %}>{{tag|e}}</option>
7 {% endfor %}
8 </select>
9 {% endfor %}
10 <select name="t_and">
11 <option></option>
12 {% for tag in tags | sort %}
13 <option value="{{tag|e}}">{{tag|e}}</option>
14 {% endfor %}
15 </select>
16 <br />
17 hide:
18 {% for not_filter in filter_not %}
19 <select name="t_not">
20 <option></option>
21 {% for tag in tags | sort %}
22 <option value="{{tag|e}}" {% if not_filter == tag %}selected{% endif %}>{{tag|e}}</option>
23 {% endfor %}
24 </select>
25 {% endfor %}
26 <select name="t_not">
27 <option></option>
28 {% for tag in tags | sort %}
29 <option value="{{tag|e}}">{{tag|e}}</option>
30 {% endfor %}
31 </select>
32