Fix incorrect condition in template

This commit is contained in:
Raphael Michel
2019-09-10 11:58:02 +02:00
parent 586e544fce
commit 3bb20d943a

View File

@@ -316,8 +316,9 @@
{% if line.item.admission and event.settings.attendee_emails_asked %} {% if line.item.admission and event.settings.attendee_emails_asked %}
<dt>{% trans "Attendee email" %}</dt> <dt>{% trans "Attendee email" %}</dt>
<dd> <dd>
{% if line.attendee_email and not line.addon_to %} {% if line.attendee_email %}
{{ line.attendee_email }} {{ line.attendee_email }}
{% if not line.addon_to %}
<form class="form-inline helper-display-inline" method="post" <form class="form-inline helper-display-inline" method="post"
action="{% url "control:event.order.resendlink" event=request.event.slug organizer=request.event.organizer.slug code=order.code position=line.pk %}"> action="{% url "control:event.order.resendlink" event=request.event.slug organizer=request.event.organizer.slug code=order.code position=line.pk %}">
{% csrf_token %} {% csrf_token %}
@@ -325,6 +326,7 @@
{% trans "Resend link" %} {% trans "Resend link" %}
</button> </button>
</form> </form>
{% endif %}
{% else %} {% else %}
<em>{% trans "not answered" %}</em> <em>{% trans "not answered" %}</em>
{% endif %} {% endif %}