home · contact · privacy
Improve todo accounting.
[misc] / todo_templates / tagfilters.html
diff --git a/todo_templates/tagfilters.html b/todo_templates/tagfilters.html
new file mode 100644 (file)
index 0000000..3f784ea
--- /dev/null
@@ -0,0 +1,37 @@
+<p style="float: left; margin-right: 1em;">
+<input type="submit" value="filter">
+</p>
+<p>
+mandatory tags:
+{% for and_filter in db.t_filter_and %}
+<select name="t_and">
+<option></option>
+{% for tag in db.t_tags | sort %}
+<option value="{{tag|e}}" {% if and_filter == tag %}selected{% endif %}>{{tag|e}}</option>
+{% endfor %}
+</select>
+{% endfor %}
+<select name="t_and">
+<option></option>
+{% for tag in db.t_tags | sort %}
+<option value="{{tag|e}}">{{tag|e}}</option>
+{% endfor %}
+</select>
+<br />
+forbidden tags:
+{% for not_filter in db.t_filter_not %}
+<select name="t_not">
+<option></option>
+{% for tag in db.t_tags | sort %}
+<option value="{{tag|e}}" {% if not_filter == tag %}selected{% endif %}>{{tag|e}}</option>
+{% endfor %}
+</select>
+{% endfor %}
+<select name="t_not">
+<option></option>
+{% for tag in db.t_tags | sort %}
+<option value="{{tag|e}}">{{tag|e}}</option>
+{% endfor %}
+</select>
+</p>
+