{% load i18n %} {% comment %} One button per template when the event has several; templates the attendee is not eligible for (not checked in on the template's list) stay visible but disabled, so no certificate is issued by accident. {% endcomment %} {% for o in options %} {% if o.applicable %} {% if options|length > 1 %}{{ o.layout.name }}{% else %}{% trans "Certificate of attendance" %}{% endif %} {% else %} {% if options|length > 1 %}{{ o.layout.name }}{% else %}{% trans "Certificate of attendance" %}{% endif %} {% endif %} {% endfor %} {% if position.attendee_email or order.email %} {% for o in options %}
{% csrf_token %}
{% endfor %} {% endif %}