home · contact · privacy
Add GET /todo and Todo retrieval by ID.
[plomtask] / templates / day.html
index 7a34e58544f1c93a871bc316962d2bf60040b5d2..44fd90d17f884050bd90b8231a9041d4dd3571a4 100644 (file)
@@ -7,7 +7,18 @@
 </p>
 <form action="day?date={{day.date}}" method="POST">
 comment: <input name="comment" value="{{day.comment|e}}" />
-<input type="submit" value="OK" />
+<input type="submit" value="OK" /><br />
+add todo: <input name="new_todo" list="processes" autocomplete="off" />
+<datalist id="processes">
+{% for process in processes %}
+<option value="{{process.id_}}">{{process.title.newest|e}}</option>
+{% endfor %}
+</datalist>
 </form>
+<ul>
+{% for todo in todos %}
+<li><a href="todo?id={{todo.id_}}">{{todo.process.title.newest|e}}</a>
+{% endfor %}
+</ul>
 {% endblock %}