diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html b/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html index 871939dbef..7ce797f8dc 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_cart.html @@ -51,49 +51,47 @@
- {% if line.attendee_name %}{{ line.attendee_name }}{% else %}{% trans "not answered" %}{% endif %} + {% if line.attendee_name %}{{ line.attendee_name }}{% else %}{% trans "No attendee name provided" %}{% endif %}
{% endif %} - {% if line.item.admission and event.settings.attendee_emails_asked %} + {% if line.item.admission and event.settings.attendee_emails_asked and line.attendee_email %}
{% trans "Attendee email" %}
- {% if line.attendee_email %}{{ line.attendee_email }}{% else %}{% trans "not answered" %}{% endif %} + {{ line.attendee_email }}
{% endif %} {% if line.item.admission and event.settings.attendee_addresses_asked %}
{% endif %} - {% if line.item.admission and event.settings.attendee_company_asked %} + {% if line.item.admission and event.settings.attendee_company_asked and line.company %}
{% trans "Attendee company" %}
- {% if line.company %}{{ line.company }}{% else %}{% trans "not answered" %}{% endif %} + {{ line.company }}
{% endif %} {% if line.item.admission and event.settings.attendee_addresses_asked %} -
- {% trans "Attendee address" %} -
-
- - {% if line.street or line.zipcode or line.city or line.country %} + {% if line.street or line.zipcode or line.city %} +
+ {% trans "Attendee address" %} +
+
+ {{ line.street|default_if_none:""|linebreaksbr }}
{{ line.zipcode|default_if_none:"" }} {{ line.city|default_if_none:"" }}
{{ line.country.name|default_if_none:"" }} {% if line.state %}
{{ line.state }}{% endif %} - {% else %} - {% trans "not answered" %} - {% endif %} -
-
+ + + {% endif %} {% endif %} {% for q in line.questions %}
{{ q.question }}