Skip to content

Commit

Permalink
Fix class for horizontal form label
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaoy1 committed May 16, 2021
1 parent 4867086 commit f9410c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_bootstrap/templates/bootstrap/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
{%- if form_type == "inline" %}
{{ field.label(class="sr-only")|safe }}
{% elif form_type == "horizontal" %}
{{ field.label(class="form-control-label " + (
{{ field.label(class="col-form-label " + (
" col-%s-%s" % horizontal_columns[0:2]))|safe }}
{%- else -%}
{{ field.label(class="form-control-label")|safe }}
Expand Down Expand Up @@ -156,7 +156,7 @@
{% endif %}
{% endif %}
{% elif form_type == "horizontal" %}
{{ field.label(class="form-control-label " + (" col-%s-%s" % horizontal_columns[0:2]))|safe }}
{{ field.label(class="col-form-label " + (" col-%s-%s" % horizontal_columns[0:2]))|safe }}
<div class=" col-{{ horizontal_columns[0] }}-{{ horizontal_columns[2] }}">
{% if field.type == 'FileField' %}
{% if field.errors %}
Expand Down

0 comments on commit f9410c1

Please sign in to comment.