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