home · contact · privacy
f2ef5aa95e12cd78b901afe73ba3fd88c050d8e5
[plomtask] / templates / process.html
1 {% extends 'base.html' %}
2
3 {% block content %}
4 <h3>Process</h3>
5 <form action="process?id={{process.id_ or ''}}" method="POST">
6 title: <input name="title" value="{{process.title.newest|e}}" />
7 description: <input name="description" value="{{process.description.newest|e}}" />
8 default effort: <input name="effort" type="number" step=0.1 value={{process.effort.newest}} />
9 <table>
10 {% for child in children %}
11 <tr>
12 <td>
13 <input type="checkbox" name="children" value="{{child.id_}}" checked />
14 </td>
15 <td>
16 <a href="process?id={{child.id_}}">{{child.title.newest|e}}</a>
17 </td>
18 </tr>
19 {% endfor %}
20 </table>
21 add child: <input name="children" list="candidates" autocomplete="off" />
22 <datalist id="candidates">
23 {% for candidate in candidates %}
24 <option value="{{candidate.id_}}">{{candidate.title.newest|e}}</option>
25 {% endfor %}
26 </datalist>
27 <input type="submit" value="OK" />
28 </form>
29 {% endblock %}
30
31