Fix errors being squashed

This commit is contained in:
2020-09-29 17:37:54 +01:00
parent 8424424d49
commit 70de16ed5c
3 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -96,6 +96,10 @@ ins {
transform: translateY(45px); /* TODO Remove absolute positioning */ transform: translateY(45px); /* TODO Remove absolute positioning */
} }
.errorlist > li {
list-style-type: none;
}
pre { pre {
page-break-inside: avoid; page-break-inside: avoid;
font-family: monospace; font-family: monospace;

View File

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