{% macro edit_buttons() %}
{% endmacro %} {% macro datalist_of_titles(title, candidates, historical=false, with_comments=false) %} {% for candidate in candidates %} {% endfor %} {% endmacro %} {% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add", historical=false) %} {% if items|length > 0 %} {% for item in items %} {% endfor %}
{% if historical is true %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %}
{% endif %} {{add_string}}: {% endmacro %} {% macro history_page(item_name, item, attribute_name, attribute, as_pre=false) %}

{{item_name}} {{attribute_name}} history

{% for date in attribute.history.keys() | sort(reverse=True) %} {% endfor %}
{{item_name}} {{item.title.newest|e}}
{% if as_pre %}
{% endif %}{{attribute.history[date]}}{% if as_pre %}
{% endif %}
{% endmacro %}