Skip to content

Commit a88275b

Browse files
committed
2 parents fba6b5b + 5518ac1 commit a88275b

File tree

1 file changed

+15
-8
lines changed
  • bootstrapform/templates/bootstrapform

1 file changed

+15
-8
lines changed

bootstrapform/templates/bootstrapform/form.html

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,34 @@
1515
<label>
1616
{{ field }} <span>{{ field.label }}</span>
1717
</label>
18-
<span class="help-block">
19-
{{ field.help_text }}
20-
</span>
18+
2119
{% for error in field.errors %}
2220
<span class="help-inline">{{ error }}</span>
2321
{% endfor %}
22+
23+
{% if field.help_text %}
24+
<span class="help-block">
25+
{{ field.help_text }}
26+
</span>
27+
{% endif %}
2428
</div>
2529
</li>
2630
</ul>
2731
{% else %}
2832
{{ field.label_tag }}
2933
<div class="input">
3034
{{ field }}
35+
36+
{% for error in field.errors %}
37+
<span class="help-inline">{{ error }}</span>
38+
{% endfor %}
39+
40+
{% if field.help_text %}
3141
<span class="help-block">
32-
{{ field.help_text }}
42+
{{ field.help_text }}
3343
</span>
34-
{% if field.errors %}
35-
{% for error in field.errors %}
36-
<span class="help-inline">{{ error }}</span>
37-
{% endfor %}
3844
{% endif %}
45+
3946
</div>
4047
{% endif %}
4148
</div>

0 commit comments

Comments
 (0)