home · contact · privacy
Improve Process editing template layout.
[plomtask] / templates / _macros.html
index cb1bb452d16f3671ab7108a159b1c581ec063890..14395914052efd6511eddc6cc82bbe947dda62c4 100644 (file)
@@ -18,6 +18,7 @@
 
 
 {% 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>
@@ -30,7 +31,8 @@
 </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 %}