Skip to content

Commit

Permalink
Update form_field.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat-Raj authored Oct 2, 2021
1 parent 407d208 commit 8e020c4
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions django_common/templates/common/fragments/form_field.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
<label class="control-label" for="id_{{ form_field.html_name }}">
{{ form_field.label }}{% if form_field.field.required %} <span class="req">*</span>{% endif %}
</label>
<div class="controls">
{{ form_field }}
{% if form_field.help_text %}
<span class="help-inline">{{ form_field.help_text|safe }}</span>
{% endif %}
{% if form_field.errors %}
<span class="help-block">{{ form_field.errors|safe }}</span>
{% endif %}
</div>
<center>
<div class="controls">
{{ form_field }}
{% if form_field.help_text %}
<span class="help-inline">{{ form_field.help_text|safe }}</span>
{% endif %}
{% if form_field.errors %}
<span class="help-block">{{ form_field.errors|safe }}</span>
{% endif %}
</div>
</center>
</div>

0 comments on commit 8e020c4

Please sign in to comment.