diff --git a/flask_bootstrap/templates/bootstrap/form.html b/flask_bootstrap/templates/bootstrap/form.html index c540dc59..43c9ff82 100644 --- a/flask_bootstrap/templates/bootstrap/form.html +++ b/flask_bootstrap/templates/bootstrap/form.html @@ -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 }} @@ -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 }}