{% extends 'base.html' %}
+
+
{% block content %}
<h3>Todo: {{todo.process.title.newest|e}}</h3>
<form action="todo?id={{todo.id_}}" method="POST">
day: <a href="day?date={{todo.date}}">{{todo.date}}</a><br />
process: <a href="process?id={{todo.process.id_}}">{{todo.process.title.newest|e}}</a><br />
done: <input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br />
+comment: <input name="comment" value="{{todo.comment|e}}"/>
</p>
<h4>conditions</h4>
<table>
<h4>children</h4>
<ul>
{% for child in todo.children %}
-<li><a href="todo?id={{child.id_}}">{{child.process.title.newest|e}}</a>
+<li><input type="checkbox" name="adopt" value="{{child.id_}}" checked />
+<a href="todo?id={{child.id_}}">{{child.process.title.newest|e}}</a>
{% endfor %}
</ul>
adopt: <input name="adopt" list="todo_candidates" autocomplete="off" />
<option value="{{candidate.id_}}">{{candidate.process.title.newest|e}} ({{candidate.id_}})</option>
{% endfor %}
</datalist>
-<input type="submit" value="OK" />
+
+<input class="btn-harmless" type="submit" name="update" value="update" />
+<div class="btn-to-right">
+<input class="btn-dangerous" type="submit" name="delete" value="delete" />
+</div>
+
</form
{% endblock %}