File tree Expand file tree Collapse file tree 4 files changed +18
-7
lines changed
static/rest_framework_docs
templates/rest_framework_docs Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,10 @@ $( document ).ready(function() {
9898 var label = field . name . replace ( '_' , ' ' ) ;
9999 $ ( '#fields' ) . append ( "" +
100100 '<div class="form-group">' +
101- '<label for="field' + field . name + '">' + label + '</label>' +
101+ '<label for="field' + field . name + '" class="col-sm-4 control-label">' + label + '</label>' +
102+ '<div class="col-sm-8">' +
102103 '<input type="text" class="form-control input-sm" id="field' + field . name + '" placeholder="' + field . type + '">' +
104+ '</div>' +
103105 '</div>' +
104106 "" ) ;
105107 } ) ;
Original file line number Diff line number Diff line change @@ -170,6 +170,10 @@ body {
170170 margin-top : 0 ;
171171 }
172172
173+ .control-label {
174+ padding-top : 7px ;
175+ }
176+
173177 .request {
174178
175179 .section-title {
Original file line number Diff line number Diff line change @@ -99,18 +99,23 @@ <h4 class="modal-title">Live API Endpoints</h4>
9999 < div class ="row ">
100100 < div class ="col-md-6 request ">
101101 < h3 > Request</ h3 >
102- < form id ="requestForm ">
102+ < form class =" form-horizontal " id ="requestForm ">
103103 < div class ="form-group ">
104- < label for ="urlInput "> Endpoint</ label >
105- < input type ="text " class ="form-control input-sm " id ="urlInput " placeholder ="Url ">
104+ < label for ="urlInput " class ="col-sm-4 control-label "> Endpoint</ label >
105+ < div class ="col-sm-8 ">
106+ < input type ="text " class ="form-control input-sm " id ="urlInput " placeholder ="Url ">
107+ </ div >
106108 </ div >
107109
110+ < h5 class ="section-title "> < span > Method</ span > </ h5 >
108111 < div class ="btn-group methods " id ="methods " role ="group "> </ div >
109112
110113 < h5 class ="section-title "> < span > Headers</ span > </ h5 >
111114 < div class ="form-group ">
112- < label for ="exampleInputPassword1 "> Authorization</ label >
113- < input type ="text " class ="form-control input-sm " id ="exampleInputPassword1 " placeholder ="Token ">
115+ < label for ="exampleInputPassword1 " class ="col-sm-4 control-label "> Authorization</ label >
116+ < div class ="col-sm-8 ">
117+ < input type ="text " class ="form-control input-sm " id ="exampleInputPassword1 " placeholder ="Token ">
118+ </ div >
114119 </ div >
115120
116121 < h5 class ="section-title "> < span > Data</ span > </ h5 >
You can’t perform that action at this time.
0 commit comments