admin: fix form error display

This commit is contained in:
Jens Langhammer 2018-12-10 15:27:01 +01:00
parent 111b0ec4fb
commit 4111ca96a7
1 changed files with 7 additions and 15 deletions

View File

@ -39,22 +39,14 @@
{{ field.help_text }} {{ field.help_text }}
</span> </span>
{% endif %} {% endif %}
</div>
{% endif %}
{% for error in field.errors %} {% for error in field.errors %}
{{error }} <hr>
<div class="alert alert-danger"> <div class="alert alert-danger">
<div class="alert-items"> <span class="pficon pficon-error-circle-o"></span>
<div class="alert-item"> <strong>{{ error }}</strong>
<div class="alert-icon-wrapper">
<clr-icon class="alert-icon" shape="exclamation-circle"></clr-icon>
</div>
<span class="alert-text">
{{ error }}
</span>
</div>
</div>
</div> </div>
{% endfor %} {% endfor %}
</div>
{% endif %}
</div> </div>
{% endfor %} {% endfor %}