home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor BaseModel.by_id (integrating ._by_id).
[plomtask]
/
templates
/
todo.html
diff --git
a/templates/todo.html
b/templates/todo.html
index 1fa2922c7c7912b67b1d77a42db6d816b9534ccc..41a9eb1c876bafb1d2b4f485653b80a5445a947e 100644
(file)
--- a/
templates/todo.html
+++ b/
templates/todo.html
@@
-28,12
+28,12
@@
add condition: <input name="condition" list="condition_candidates" autocomplete=
<option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
{% endfor %}
</datalist>
<option value="{{condition_candidate.id_}}">{{condition_candidate.title.newest|e}}</option>
{% endfor %}
</datalist>
-<h4>
fulfill
s</h4>
+<h4>
enable
s</h4>
<table>
<table>
-{% for condition in todo.
fulfill
s %}
+{% for condition in todo.
enable
s %}
<tr>
<td>
<tr>
<td>
-<input type="checkbox" name="
fulfill
s" value="{{condition.id_}}" checked />
+<input type="checkbox" name="
enable
s" value="{{condition.id_}}" checked />
</td>
<td>
<a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
</td>
<td>
<a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
@@
-41,13
+41,13
@@
add condition: <input name="condition" list="condition_candidates" autocomplete=
</tr>
{% endfor %}
</table>
</tr>
{% endfor %}
</table>
-add
fulfills: <input name="fulfill
s" list="condition_candidates" autocomplete="off" />
-<h4>
undo
es</h4>
+add
enables: <input name="enable
s" list="condition_candidates" autocomplete="off" />
+<h4>
disabl
es</h4>
<table>
<table>
-{% for condition in todo.
undo
es%}
+{% for condition in todo.
disabl
es%}
<tr>
<td>
<tr>
<td>
-<input type="checkbox" name="
undo
es" value="{{condition.id_}}" checked />
+<input type="checkbox" name="
disabl
es" value="{{condition.id_}}" checked />
</td>
<td>
<a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
</td>
<td>
<a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
@@
-55,7
+55,7
@@
add fulfills: <input name="fulfills" list="condition_candidates" autocomplete="o
</tr>
{% endfor %}
</table>
</tr>
{% endfor %}
</table>
-add
undoes: <input name="undo
es" list="condition_candidates" autocomplete="off" />
+add
disables: <input name="disabl
es" list="condition_candidates" autocomplete="off" />
<h4>parents</h4>
<ul>
{% for parent in todo.parents %}
<h4>parents</h4>
<ul>
{% for parent in todo.parents %}
@@
-65,7
+65,8
@@
add undoes: <input name="undoes" list="condition_candidates" autocomplete="off"
<h4>children</h4>
<ul>
{% for child in todo.children %}
<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" />
{% endfor %}
</ul>
adopt: <input name="adopt" list="todo_candidates" autocomplete="off" />
@@
-74,6
+75,11
@@
adopt: <input name="adopt" list="todo_candidates" autocomplete="off" />
<option value="{{candidate.id_}}">{{candidate.process.title.newest|e}} ({{candidate.id_}})</option>
{% endfor %}
</datalist>
<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 %}
</form
{% endblock %}