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 9be13a80c9be3f9446a91f31222994bbc4642d57..41a9eb1c876bafb1d2b4f485653b80a5445a947e 100644
(file)
--- a/
templates/todo.html
+++ b/
templates/todo.html
@@
-5,7
+5,7
@@
<form action="todo?id={{todo.id_}}" method="POST">
<p>
id: {{todo.id_}}<br />
<form action="todo?id={{todo.id_}}" method="POST">
<p>
id: {{todo.id_}}<br />
-day: <a href="day?date={{todo.da
y.date}}">{{todo.day
.date}}</a><br />
+day: <a href="day?date={{todo.da
te}}">{{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 />
</p>
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 />
</p>
@@
-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 %}