home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify and improve previous bugfix.
[plomtask]
/
templates
/
todo.html
diff --git
a/templates/todo.html
b/templates/todo.html
index 05e5b62c8aebfd0224ca3655b40e5dae906e3984..fd16680badfb894775a7e568f4fc31f1a21dfd82 100644
(file)
--- a/
templates/todo.html
+++ b/
templates/todo.html
@@
-18,11
+18,13
@@
</tr>
<tr>
<th>done</th>
</tr>
<tr>
<th>done</th>
-<td><input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/><br /></td>
+<td><input type="checkbox" name="done" {% if todo.is_done %}checked {% endif %} {% if not todo.is_doable %}disabled {% endif %}/>
+{% if not todo.is_doable and todo.is_done %}<input type="hidden" name="done" value="1" />{% endif %}
+</td>
</tr>
<tr>
<th>effort</th>
</tr>
<tr>
<th>effort</th>
-<td><input type="number" name="effort" step=0.1 size=5 placeholder={{todo.effort_then}} value={{todo.effort}} /><
br /><
/td>
+<td><input type="number" name="effort" step=0.1 size=5 placeholder={{todo.effort_then}} value={{todo.effort}} /></td>
</tr>
<tr>
<th>comment</th>
</tr>
<tr>
<th>comment</th>