File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
bootstrapform/templates/bootstrapform Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change 15
15
< label >
16
16
{{ field }} < span > {{ field.label }}</ span >
17
17
</ label >
18
- < span class ="help-block ">
19
- {{ field.help_text }}
20
- </ span >
18
+
21
19
{% for error in field.errors %}
22
20
< span class ="help-inline "> {{ error }}</ span >
23
21
{% endfor %}
22
+
23
+ {% if field.help_text %}
24
+ < span class ="help-block ">
25
+ {{ field.help_text }}
26
+ </ span >
27
+ {% endif %}
24
28
</ div >
25
29
</ li >
26
30
</ ul >
27
31
{% else %}
28
32
{{ field.label_tag }}
29
33
< div class ="input ">
30
34
{{ field }}
35
+
36
+ {% for error in field.errors %}
37
+ < span class ="help-inline "> {{ error }}</ span >
38
+ {% endfor %}
39
+
40
+ {% if field.help_text %}
31
41
< span class ="help-block ">
32
- {{ field.help_text }}
42
+ {{ field.help_text }}
33
43
</ span >
34
- {% if field.errors %}
35
- {% for error in field.errors %}
36
- < span class ="help-inline "> {{ error }}</ span >
37
- {% endfor %}
38
44
{% endif %}
45
+
39
46
</ div >
40
47
{% endif %}
41
48
</ div >
You can’t perform that action at this time.
0 commit comments