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>
<div class="panel-body">
{% for locale, segments in output.items %} {% for locale, segments in output.items %}
<p> <div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<strong>{% blocktrans %}For locale: {{ locale }}{% endblocktrans %}</strong> <strong>{% blocktrans %}For locale: {{ locale }}{% endblocktrans %}</strong>
</p> </h4>
</div>
<div class="panel-body">
{% for value in segments %} {% for value in segments %}
<p> <p>
{{ value|linebreaksbr }} {{ value|linebreaksbr }}
</p> </p>
{% endfor %} {% endfor %}
{% endfor %}
</div> </div>
</div>
{% endfor %}
</fieldset> </fieldset>
{% endif %} {% endif %}
<div class="form-group submit-group"> <div class="form-group submit-group">