{% from 'message_box.html' import message_box %} {% macro render_template_list(event) %} {% if event.paper_templates %} {# sort by (name,id) to keep consistent order if names are not unique #} {% for tpl in event.paper_templates|sort(attribute='id')|sort(attribute='name') %} {% endfor %}
{% trans %}Name{% endtrans %} {% trans %}Description{% endtrans %}
{{ tpl.name }} {{ tpl.description }}
{% else %} {%- call message_box('info') %} {%- trans %}There are no paper templates yet.{% endtrans %} {%- endcall %} {% endif %} {% endmacro %}