home · contact · privacy
Overhaul Todo view to underline difference to ProcessSteps.
[plomtask] / templates / _macros.html
index 23dfbe9fb75d53a0fe866c1228eeee7e51a0a6da..55ab626b1fe6bbb7f49b3ab41c9dbb24bf56d792 100644 (file)
@@ -9,10 +9,19 @@
 
 
 
-{% macro datalist_of_titles(title, candidates) %}
+{% macro datalist_of_titles(title, candidates, historical=false, with_comments=false) %}
 <datalist id="{{title}}">
 {% for candidate in candidates %}
-<option value="{{candidate.id_}}">{{candidate.title.newest|e}}</option>
+<option value="{{candidate.id_}}">
+{% if historical is true %}
+{{candidate.title_then|e}}
+{% else %}
+{{candidate.title.newest|e}}
+{% endif %}
+{% if with_comments and candidate.comment %}
+/ {{candidate.comment}}
+{% endif %}
+</option>
 {% endfor %}
 </datalist>
 {% endmacro %}