Skip to content

Commit ca33133

Browse files
committed
Fixes for bootstrap4/admin/lib.html
Boostrap 4 renamed .control-label to .col-form-label. https://getbootstrap.com/docs/4.0/migration/#forms-1
1 parent 5f884cc commit ca33133

File tree

1 file changed

+2
-2
lines changed
  • flask_admin/templates/bootstrap4/admin

1 file changed

+2
-2
lines changed

flask_admin/templates/bootstrap4/admin/lib.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
{% set prepend = kwargs.pop('prepend', None) %}
121121
{% set append = kwargs.pop('append', None) %}
122122
<div class="form-group {{ kwargs.get('column_class', '') }}">
123-
<label for="{{ field.id }}" class="control-label {% if field.widget.input_type == 'checkbox' %}d-block mb-0{% endif %}">{{ field.label.text }}
123+
<label for="{{ field.id }}" class="col-form-label {% if field.widget.input_type == 'checkbox' %}d-block mb-0{% endif %}">{{ field.label.text }}
124124
{% if h.is_required_form_field(field) %}
125-
<strong class="text-danger"">&#42;</strong>
125+
<strong class="text-danger">&#42;</strong>
126126
{%- else -%}
127127
&nbsp;
128128
{%- endif %}

0 commit comments

Comments
 (0)