From 67951f8984da11f13df902eb6a5a98b0b77c391a Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 9 Nov 2016 18:22:17 +0100 Subject: [PATCH] Improve sendmail preview template --- .../pretixplugins/sendmail/send_form.html | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/pretix/plugins/sendmail/templates/pretixplugins/sendmail/send_form.html b/src/pretix/plugins/sendmail/templates/pretixplugins/sendmail/send_form.html index 1d0f9fae0..bd66f0867 100644 --- a/src/pretix/plugins/sendmail/templates/pretixplugins/sendmail/send_form.html +++ b/src/pretix/plugins/sendmail/templates/pretixplugins/sendmail/send_form.html @@ -13,19 +13,22 @@ {% if request.method == "POST" %}
{% trans "E-mail preview" %} - -
- {% for locale, segments in output.items %} -

- {% blocktrans %}For locale: {{ locale }}{% endblocktrans %} -

- {% for value in segments %} -

- {{ value|linebreaksbr }} -

- {% endfor %} - {% endfor %} -
+ {% for locale, segments in output.items %} +
+
+

+ {% blocktrans %}For locale: {{ locale }}{% endblocktrans %} +

+
+
+ {% for value in segments %} +

+ {{ value|linebreaksbr }} +

+ {% endfor %} +
+
+ {% endfor %}
{% endif %}