summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks/bs_field_snippet.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/blocks/bs_field_snippet.html')
-rw-r--r--ishtar_common/templates/blocks/bs_field_snippet.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/ishtar_common/templates/blocks/bs_field_snippet.html b/ishtar_common/templates/blocks/bs_field_snippet.html
index c157461b7..f9cdeb68e 100644
--- a/ishtar_common/templates/blocks/bs_field_snippet.html
+++ b/ishtar_common/templates/blocks/bs_field_snippet.html
@@ -1,5 +1,5 @@
{% load i18n %}
- <div class="form-group col-lg-6{% if field.field.required %} required{% endif %}">
+ <div class="form-group col-lg-6{% if field.errors %} is-invalid{% endif %}{% if field.field.required %} required{% endif %}">
{{ field.label_tag }}
{% if field.help_text %}
<div class="input-group">
@@ -13,6 +13,9 @@
<i class="fa fa-question-circle" aria-hidden="true"></i>
</a>
</span>
+ {% if field.errors %}<div class="invalid">
+ {{ field.errors }}
+ </div>{% endif %}
</div>
<div class="collapse" id="{{field.auto_id}}_help">
<div class="card card-body">
@@ -20,7 +23,8 @@
</div>
</div>
{% endif %}
- {% if field.errors %}<div class="invalid-feedback">
+ {% if field.errors and not field.help_text %}
+ <div class="invalid">
{{ field.errors }}
</div>{% endif %}
</div>