home · contact · privacy
Improve multiple template layouts and refactor CSS.
[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
10 <table class="edit_table">
11 <tr>
12 <th>day</th>
13 <td><a href="day?date={{todo.date}}">{{todo.date}}</a></td>
14 </tr>
15 <tr>
16 <th>process</th>
17 <td><a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a></td>
18 </tr>
19 <tr>
20 <th>done</th>
21 <td><input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br /></td>
22 </tr>
23 <tr>
24 <th>effort</th>
25 <td><input type="number" name="effort" step=0.1 size=5 placeholder={{todo.effort_then}} value={{todo.effort}} /><br /></td>
26 </tr>
27 <tr>
28 <th>comment</th>
29 <td><input name="comment" type="text" value="{{todo.comment|e}}"/></td>
30 </tr>
31 <tr>
32 <th>calendarize</th>
33 <td><input type="checkbox" name="calendarize" {% if todo.calendarize %}checked {% endif %}</td>
34 </tr>
35 <tr>
36 <th>conditions</th>
37 <td>{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }}</td>
38 </tr>
39 <tr>
40 <th>blockers</th>
41 <td>{{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates") }}</td>
42 </tr>
43 <tr>
44 <th>enables</th>
45 <td>{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}</td>
46 </tr>
47 <tr>
48 <th>disables</th>
49 <td>{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}</td>
50 </tr>
51 <tr>
52 <th>parents</th>
53 <td>
54 {% for parent in todo.parents %}
55 <a href="todo?id={{parent.id_}}">{{parent.title_then|e}}</a><br />
56 {% endfor %}
57 </td>
58 </tr>
59 <tr>
60 <th>children</th>
61 <td>{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}<br />
62 make: <input type="text" name="make" list="process_candidates" autocomplete="off" /></td>
63 </tr>
64 </table>
65
66 {{ macros.edit_buttons() }}
67 </form>
68 {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }}
69 {{ macros.datalist_of_titles("process_candidates", process_candidates) }}
70 <datalist id="todo_candidates">
71 {% for candidate in todo_candidates %}
72 <option value="{{candidate.id_}}">{{candidate.title.newest|e}} {{candidate.comment|e}}</option>
73 {% endfor %}
74 </datalist>
75 {% endblock %}