home · contact · privacy
In Calendar view, highlight today's date.
[plomtask] / templates / todo.html
1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
3
4
5
6 {% block content %}
7 <h3>Todo: {{todo.title_then|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.effort_then}} 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>calendarize</th>
38 <td><input type="checkbox" name="calendarize" {% if todo.calendarize %}checked {% endif %}</td>
39 </tr>
40
41 <tr>
42 <th>conditions</th>
43 <td>{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates", historical=true) }}</td>
44 </tr>
45
46 <tr>
47 <th>blockers</th>
48 <td>{{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates", historical=true) }}</td>
49 </tr>
50
51 <tr>
52 <th>enables</th>
53 <td>{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates", historical=true) }}</td>
54 </tr>
55
56 <tr>
57 <th>disables</th>
58 <td>{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates", historical=true) }}</td>
59 </tr>
60
61 <tr>
62 <th>parents</th>
63 <td>
64 {% for parent in todo.parents %}
65 <a href="todo?id={{parent.id_}}">{{parent.title_then|e}}</a><br />
66 {% endfor %}
67 </td>
68 </tr>
69
70 <tr>
71 <th>children</th>
72 <td>{{ macros.simple_checkbox_table("adopt", todo.children, "adopt", "todo_candidates", "adopt", true) }}</td>
73 </tr>
74
75 </table>
76 {{ macros.edit_buttons() }}
77 </form>
78
79 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
80 {{ macros.datalist_of_titles("todo_candidates", todo_candidates) }}
81 {% endblock %}