File tree 2 files changed +24
-9
lines changed
static/rest_framework/css
templates/rest_framework/horizontal 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
3
- This CSS file contains some tweaks specific to the included Bootstrap theme.
3
+ This CSS file contains some tweaks specific to the included Bootstrap theme.
4
4
It's separate from `style.css` so that it can be easily overridden by replacing
5
5
a single block in the template.
6
6
@@ -213,3 +213,17 @@ body a:hover {
213
213
.request-info {
214
214
clear : both;
215
215
}
216
+
217
+ .horizontal-checkbox label {
218
+ padding-top : 0 ;
219
+ }
220
+
221
+ .horizontal-checkbox label {
222
+ padding-top : 0 !important ;
223
+ }
224
+
225
+ .horizontal-checkbox input {
226
+ float : left;
227
+ width : 20px ;
228
+ margin-top : 3px ;
229
+ }
Original file line number Diff line number Diff line change 1
- < div class ="form-group {% if field.errors %}has-error{% endif %} ">
2
- < div class ="col-sm-offset-2 col-sm-10 ">
3
- < div class ="checkbox ">
4
- < label >
5
- < input type ="checkbox " name ="{{ field.name }} " value ="true " {% if field.value %}checked{% endif %} >
6
- {% if field.label %}{{ field.label }}{% endif %}
7
- </ label >
8
- </ div >
1
+ < div class ="form-group horizontal-checkbox {% if field.errors %}has-error{% endif %} ">
2
+ {% if field.label %}
3
+ < label class ="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %} ">
4
+ {{ field.label }}
5
+ </ label >
6
+ {% endif %}
7
+
8
+ < div class ="col-sm-10 ">
9
+ < input type ="checkbox " name ="{{ field.name }} " value ="true " {% if field.value %}checked{% endif %} >
9
10
10
11
{% if field.errors %}
11
12
{% for error in field.errors %}
You can’t perform that action at this time.
0 commit comments