Skip to content

Commit

Permalink
Fixes for bootstrap4/admin/lib.html
Browse files Browse the repository at this point in the history
Boostrap 4 renamed .control-label to .col-form-label.
https://getbootstrap.com/docs/4.0/migration/#forms-1
  • Loading branch information
cjmayo committed Oct 2, 2024
1 parent 5f884cc commit 821a8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_admin/templates/bootstrap4/admin/lib.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@
{% set prepend = kwargs.pop('prepend', None) %}
{% set append = kwargs.pop('append', None) %}
<div class="form-group {{ kwargs.get('column_class', '') }}">
<label for="{{ field.id }}" class="control-label {% if field.widget.input_type == 'checkbox' %}d-block mb-0{% endif %}">{{ field.label.text }}
<label for="{{ field.id }}" class="col-form-label {% if field.widget.input_type == 'checkbox' %}d-block mb-0{% endif %}">{{ field.label.text }}
{% if h.is_required_form_field(field) %}
<strong class="text-danger"">&#42;</strong>
<strong class="text-danger">&#42;</strong>
{%- else -%}
&nbsp;
{%- endif %}
Expand Down

0 comments on commit 821a8e1

Please sign in to comment.