home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Template layout and code improvements.
[plomtask]
/
templates
/
todo.html
diff --git
a/templates/todo.html
b/templates/todo.html
index 05e5b62c8aebfd0224ca3655b40e5dae906e3984..f62b0d1e1d3bba3e982533e3466a1eb5a16acb4e 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
placeholder={{todo.effort_then}} value={{todo.effort}}
/></td>
</tr>
<tr>
<th>comment</th>
</tr>
<tr>
<th>comment</th>