home · contact · privacy
6817cb9fb5c037ba08d0bc2798ca105dc8fd4781
[plomtask] / templates / todo.html
1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
3
4
5
6 {% block content %}
7 <h3>Todo: {{todo.process.title.newest|e}}</h3>
8 <form action="todo?id={{todo.id_}}" method="POST">
9 <table>
10
11 <tr>
12 <th>day</th>
13 <td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
14 </tr>
15
16 <tr>
17 <th>process</th>
18 <td><a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a></td>
19 </tr>
20
21 <tr>
22 <th>done</th>
23 <td><input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br /></td>
24 </tr>
25
26 <tr>
27 <th>effort</th>
28 <td><input type="number" name="effort" step=0.1 size=5 placeholder={{todo.process.effort.newest }} value={{ todo.effort }} /><br /></td>
29 </tr>
30
31 <tr>
32 <th>comment</th>
33 <td><input name="comment" value="{{todo.comment|e}}"/></td>
34 </tr>
35
36 <tr>
37 <th>conditions</th>
38 <td>{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }}</td>
39 </tr>
40
41 <tr>
42 <th>enables</th>
43 <td>{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}</td>
44 </tr>
45
46 <tr>
47 <th>disables</th>
48 <td>{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}</td>
49 </tr>
50
51 <tr>
52 <th>parents</th>
53 <td>
54 {% for parent in todo.parents %}
55 <a href="todo?id={{parent.id_}}">{{parent.process.title.newest|e}}</a><br />
56 {% endfor %}
57 </td>
58 </tr>
59
60 <tr>
61 <th>children</th>
62 <td>{{ macros.simple_checkbox_table("adopt", todo.children, "adopt", "todo_candidates", "adopt") }}</td>
63 </tr>
64
65 </table>
66 {{ macros.edit_buttons() }}
67 </form>
68
69 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
70 {{ macros.datalist_of_titles("todo_candidates", todo_candidates) }}
71 {% endblock %}