mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 22:59:30 +00:00
Fix issues with no errors showing
This commit is contained in:
6
app/formtools/templates/formtools/formerror.html
Normal file
6
app/formtools/templates/formtools/formerror.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% if form.non_field_errors %}
|
||||
<div class="alert-message block-message error">
|
||||
<p>Oops! Something went wrong, check the following and try again.</p>
|
||||
{{ form.non_field_errors }}
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -1,9 +1,13 @@
|
||||
{% load add_class %}
|
||||
|
||||
<div class="clearfix">
|
||||
<div class="clearfix{% if field.errors %}error{% endif %}">
|
||||
{{ field.label_tag }}
|
||||
<div class="input">
|
||||
{% if class %}{{ field|add_class:class }}{% else %}{{ field }}{% endif %}
|
||||
{% if field.errors %}
|
||||
{% if class %}{{ field|add_class:class|add_class:"error" }}{% else %}{{ field|add_class:"error" }}{% endif %}
|
||||
{% else %}
|
||||
{% if class %}{{ field|add_class:class }}{% else %}{{ field}}{% endif %}
|
||||
{% endif %}
|
||||
{% if field.help_text %}
|
||||
<span class="help-block">{{ field.help_text }}</span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user