home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve Process editing template layout.
[plomtask]
/
templates
/
_macros.html
diff --git
a/templates/_macros.html
b/templates/_macros.html
index b1f0104e134363bc9b8dcd24f6d6066d08996f00..14395914052efd6511eddc6cc82bbe947dda62c4 100644
(file)
--- a/
templates/_macros.html
+++ b/
templates/_macros.html
@@
-18,6
+18,7
@@
{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add", historical=false) %}
{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add", historical=false) %}
+{% if items|length > 0 %}
<table>
{% for item in items %}
<tr>
<table>
{% for item in items %}
<tr>
@@
-25,12
+26,13
@@
<input type="checkbox" name="{{title}}" value="{{item.id_}}" checked />
</td>
<td>
<input type="checkbox" name="{{title}}" value="{{item.id_}}" checked />
</td>
<td>
-<a href="{{type_name}}?id={{item.id_}}">{% if historical %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %}</a>
+<a href="{{type_name}}?id={{item.id_}}">{% if historical
is true
%}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %}</a>
</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endfor %}
</table>
-{{add_string}}: <input name="{{title}}" list="{{list_name}}" autocomplete="off" />
+{% endif %}
+{{add_string}}: <input name="{{title}}" type="text" list="{{list_name}}" autocomplete="off" />
{% endmacro %}
{% endmacro %}