mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Set up authentication system
This commit is contained in:
14
templates/form_errors.html
Normal file
14
templates/form_errors.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% load nice_errors from filters %}
|
||||
{% if form.errors %}
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<dl class="dl-horizontal">
|
||||
{% with form|nice_errors as qq %}
|
||||
{% for error_name,desc in qq.items %}
|
||||
<dt>{{error_name}}</dt>
|
||||
<dd>{{desc}}</dd>
|
||||
{% endfor %}
|
||||
{% endwith %}
|
||||
</dl>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user