Unify design of the different mail previews

This commit is contained in:
Raphael Michel
2017-04-14 11:51:27 +02:00
parent bc6b84f900
commit f5b871f8f5
5 changed files with 33 additions and 20 deletions

View File

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