Skip to content

Commit 06732f6

Browse files
committed
Changed form-group to mb-3
* form-group is deprecated in bootstrap 5 and is replaced by utility classes.
1 parent 24da323 commit 06732f6

32 files changed

+35
-35
lines changed

rest_framework/templates/rest_framework/filters/search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load i18n %}
22
<h2>{% trans "Search" %}</h2>
33
<form class="form-inline">
4-
<div class="form-group">
4+
<div class="mb-3">
55
<div class="input-group">
66
<input type="text" class="form-control" style="width: 350px" name="{{ param }}" value="{{ term }}">
77
<span class="input-group-btn">

rest_framework/templates/rest_framework/horizontal/checkbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="form-group horizontal-checkbox {% if field.errors %}has-error{% endif %}">
1+
<div class="mb-3 horizontal-checkbox {% if field.errors %}has-error{% endif %}">
22
{% if field.label %}
33
<label class="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}">
44
{{ field.label }}

rest_framework/templates/rest_framework/horizontal/checkbox_multiple.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load rest_framework %}
22

3-
<div class="form-group">
3+
<div class="mb-3">
44
{% if field.label %}
55
<label class="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}">
66
{{ field.label }}

rest_framework/templates/rest_framework/horizontal/dict_field.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="form-group">
1+
<div class="mb-3">
22
{% if field.label %}
33
<label class="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}">
44
{{ field.label }}

rest_framework/templates/rest_framework/horizontal/fieldset.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load rest_framework %}
22
<fieldset>
33
{% if field.label %}
4-
<div class="form-group" style="border-bottom: 1px solid #e5e5e5">
4+
<div class="mb-3" style="border-bottom: 1px solid #e5e5e5">
55
<legend class="control-label col-sm-2 {% if style.hide_label %}sr-only{% endif %}" style="border-bottom: 0">
66
{{ field.label }}
77
</legend>

rest_framework/templates/rest_framework/horizontal/input.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="form-group {% if field.errors %}has-error{% endif %}">
1+
<div class="mb-3 {% if field.errors %}has-error{% endif %}">
22
{% if field.label %}
33
<label class="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}">
44
{{ field.label }}

rest_framework/templates/rest_framework/horizontal/list_field.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="form-group">
1+
<div class="mb-3">
22
{% if field.label %}
33
<label class="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}">
44
{{ field.label }}

rest_framework/templates/rest_framework/horizontal/list_fieldset.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<fieldset>
44
{% if field.label %}
5-
<div class="form-group" style="border-bottom: 1px solid #e5e5e5">
5+
<div class="mb-3" style="border-bottom: 1px solid #e5e5e5">
66
<legend class="control-label col-sm-2 {% if style.hide_label %}sr-only{% endif %}" style="border-bottom: 0">
77
{{ field.label }}
88
</legend>

rest_framework/templates/rest_framework/horizontal/radio.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% trans "None" as none_choice %}
55

6-
<div class="form-group">
6+
<div class="mb-3">
77
{% if field.label %}
88
<label class="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}">
99
{{ field.label }}

rest_framework/templates/rest_framework/horizontal/select.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load rest_framework %}
22

3-
<div class="form-group">
3+
<div class="mb-3">
44
{% if field.label %}
55
<label class="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}">
66
{{ field.label }}

0 commit comments

Comments
 (0)