home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
For Processes and Conditions, in edit page title warn if creation NEW.
[plomtask]
/
templates
/
_macros.html
diff --git
a/templates/_macros.html
b/templates/_macros.html
index 25d94c58ce72a0a52f483c3251a30f9c3496ab51..cb1bb452d16f3671ab7108a159b1c581ec063890 100644
(file)
--- a/
templates/_macros.html
+++ b/
templates/_macros.html
@@
-17,7
+17,7
@@
-{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add") %}
+{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add"
, historical=false
) %}
<table>
{% for item in items %}
<tr>
<table>
{% for item in items %}
<tr>
@@
-25,7
+25,7
@@
<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_}}">{
{item.title.newest|e}
}</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 %}
</td>
</tr>
{% endfor %}