home · contact · privacy
Improve visual/textual calendar structuring.
[plomtask] / templates / todo.html
1 {% extends 'base.html' %}
2
3
4
5 {% block content %}
6 <h3>Todo: {{todo.process.title.newest|e}}</h3>
7 <form action="todo?id={{todo.id_}}" method="POST">
8 <p>
9 id: {{todo.id_}}<br />
10 day: <a href="day?date={{todo.date}}">{{todo.date}}</a><br />
11 process: <a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a><br />
12 done: <input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br /> 
13 comment: <input name="comment" value="{{todo.comment|e}}"/>
14 </p>
15 <h4>conditions</h4>
16 <table>
17 {% for condition in todo.conditions %}
18 <tr>
19 <td>
20 <input type="checkbox" name="condition" value="{{condition.id_}}" checked />
21 </td>
22 <td>
23 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
24 </td>
25 </tr>
26 {% endfor %}
27 </table>
28 add condition: <input name="condition" list="condition_candidates" autocomplete="off" />
29 <datalist id="condition_candidates">
30 {% for condition_candidate in condition_candidates %}
31 <option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
32 {% endfor %}
33 </datalist>
34 <h4>enables</h4>
35 <table>
36 {% for condition in todo.enables %}
37 <tr>
38 <td>
39 <input type="checkbox" name="enables" value="{{condition.id_}}" checked />
40 </td>
41 <td>
42 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
43 </td>
44 </tr>
45 {% endfor %}
46 </table>
47 add enables: <input name="enables" list="condition_candidates" autocomplete="off" />
48 <h4>disables</h4>
49 <table>
50 {% for condition in todo.disables%}
51 <tr>
52 <td>
53 <input type="checkbox" name="disables" value="{{condition.id_}}" checked />
54 </td>
55 <td>
56 <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
57 </td>
58 </tr>
59 {% endfor %}
60 </table>
61 add disables: <input name="disables" list="condition_candidates" autocomplete="off" />
62 <h4>parents</h4>
63 <ul>
64 {% for parent in todo.parents %}
65 <li><a href="todo?id={{parent.id_}}">{{parent.process.title.newest|e}}</a>
66 {% endfor %}
67 </ul>
68 <h4>children</h4>
69 <ul>
70 {% for child in todo.children %}
71 <li><input type="checkbox" name="adopt" value="{{child.id_}}" checked />
72 <a href="todo?id={{child.id_}}">{{child.process.title.newest|e}}</a>
73 {% endfor %}
74 </ul>
75 adopt: <input name="adopt" list="todo_candidates" autocomplete="off" />
76 <datalist id="todo_candidates">
77 {% for candidate in todo_candidates %}
78 <option value="{{candidate.id_}}">{{candidate.process.title.newest|e}} ({{candidate.id_}})</option>
79 {% endfor %}
80 </datalist>
81
82 <input class="btn-harmless" type="submit" name="update" value="update" />
83 <div class="btn-to-right">
84 <input class="btn-dangerous" type="submit" name="delete" value="delete" />
85 </div>
86
87 </form
88 {% endblock %}