home · contact · privacy
Add GET /todo and Todo retrieval by ID.
[plomtask] / templates / day.html
index 5547f4534e94742600f0664aaece2b7cdc33afc3..44fd90d17f884050bd90b8231a9041d4dd3571a4 100644 (file)
@@ -2,6 +2,23 @@
 
 {% block content %}
 <h3>{{day.date}} / {{day.weekday}}</h3>
-comment: {{day.comment|e}}
+<p>
+<a href="day?date={{day.prev_date}}">prev</a> | <a href="day?date={{day.next_date}}">next</a>
+</p>
+<form action="day?date={{day.date}}" method="POST">
+comment: <input name="comment" value="{{day.comment|e}}" />
+<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 %}