home · contact · privacy
Add Process.children and improve Params/Postvars parsing and testing.
[plomtask] / templates / process.html
index 1743936f2eb3bca793ff70faf1e0edfd898146f2..f2ef5aa95e12cd78b901afe73ba3fd88c050d8e5 100644 (file)
@@ -6,6 +6,24 @@
 title: <input name="title" value="{{process.title.newest|e}}" />
 description: <input name="description" value="{{process.description.newest|e}}" />
 default effort: <input name="effort" type="number" step=0.1 value={{process.effort.newest}} />
+<table>
+{% for child in children %}
+<tr>
+<td>
+<input type="checkbox" name="children" value="{{child.id_}}" checked />
+</td>
+<td>
+<a href="process?id={{child.id_}}">{{child.title.newest|e}}</a>
+</td>
+</tr>
+{% endfor %}
+</table>
+add child: <input name="children" list="candidates" autocomplete="off" />
+<datalist id="candidates">
+{% for candidate in candidates %}
+<option value="{{candidate.id_}}">{{candidate.title.newest|e}}</option>
+{% endfor %}
+</datalist>
 <input type="submit" value="OK" />
 </form>
 {% endblock %}