{% macro tagselection(submit_name, selected_tags, all_tags) %} {% for selected_tag in selected_tags | sort %} {% for tag in all_tags | sort %}{{tag|e}} {% endfor %} {% endfor %} {% for tag in all_tags %}{{tag}} {% endfor %} {% endmacro %} {% macro sort_head(sort, name_internal, display_name, sort_key="sort") %}