More tweaks

This commit is contained in:
2020-09-19 13:46:55 +01:00
parent 1ea8090668
commit 77c82efce6
2 changed files with 5 additions and 7 deletions

View File

@@ -2,15 +2,13 @@
{% if form.errors %}
<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<dl class="dl-horizontal">
<dl class="row">
{% with form|nice_errors as qq %}
{% for error_name,desc in qq.items %}
<span>
<dt>{{error_name}}</dt>
<dd>{{desc}}</dd>
</span>
<dt class="col-4">{{error_name}}</dt>
<dd class="col-8">{{desc}}</dd>
{% endfor %}
{% endwith %}
</dl>
</div>
{% endif %}
{% endif %}