Improve sendmail preview template

This commit is contained in:
Raphael Michel
2016-11-09 18:22:17 +01:00
parent e059b14d1c
commit 67951f8984

View File

@@ -13,19 +13,22 @@
{% if request.method == "POST" %} {% if request.method == "POST" %}
<fieldset> <fieldset>
<legend>{% trans "E-mail preview" %}</legend> <legend>{% trans "E-mail preview" %}</legend>
{% for locale, segments in output.items %}
<div class="panel-body"> <div class="panel panel-default">
{% for locale, segments in output.items %} <div class="panel-heading">
<p> <h4 class="panel-title">
<strong>{% blocktrans %}For locale: {{ locale }}{% endblocktrans %}</strong> <strong>{% blocktrans %}For locale: {{ locale }}{% endblocktrans %}</strong>
</p> </h4>
{% for value in segments %} </div>
<p> <div class="panel-body">
{{ value|linebreaksbr }} {% for value in segments %}
</p> <p>
{% endfor %} {{ value|linebreaksbr }}
{% endfor %} </p>
</div> {% endfor %}
</div>
</div>
{% endfor %}
</fieldset> </fieldset>
{% endif %} {% endif %}
<div class="form-group submit-group"> <div class="form-group submit-group">