@@ -182,40 +182,40 @@ <h1 class="align-text-top">{{ name }}</h1>
182
182
{% if post_form or raw_data_post_form %}
183
183
< div {% if post_form %}class ="tabbable "{% endif %} >
184
184
{% if post_form %}
185
- < ul class ="nav nav-tabs form-switcher ">
186
- < li >
187
- < a name ='html-tab ' href ="#post-object-form " data-toggle ="tab "> HTML form</ a >
185
+ < ul class ="nav nav-tabs justify-content-end " role =" tablist ">
186
+ < li class =" nav-item " role =" presentation " >
187
+ < a class =" nav-link active " name ='html-tab ' href ="#post-object-form " data-toggle =" tab " role ="tab "> HTML form</ a >
188
188
</ li >
189
- < li >
190
- < a name ='raw-tab ' href ="#post-generic-content-form " data-toggle ="tab "> Raw data</ a >
189
+ < li class =" nav-item " role =" presentation " >
190
+ < a class =" nav-link " name ='raw-tab ' href ="#post-generic-content-form " data-toggle =" tab " role ="tab "> Raw data</ a >
191
191
</ li >
192
192
</ ul >
193
193
{% endif %}
194
194
195
- < div class ="well tab-content ">
195
+ < div class ="tab-content p-4 bg-light border ">
196
196
{% if post_form %}
197
- < div class ="tab-pane " id ="post-object-form ">
197
+ < div class ="tab-pane active " id ="post-object-form " role =" tabpanel ">
198
198
{% with form=post_form %}
199
- < form action ="{{ request.get_full_path }} " method ="POST " enctype ="multipart/form-data " class =" form-horizontal " novalidate >
199
+ < form action ="{{ request.get_full_path }} " method ="POST " enctype ="multipart/form-data " novalidate >
200
200
< fieldset >
201
201
{% csrf_token %}
202
202
{{ post_form }}
203
203
< div class ="form-actions ">
204
- < button class ="btn btn-primary js- tooltip " title ="Make a POST request on the {{ name }} resource "> POST</ button >
204
+ < button class ="btn btn-primary " data-toggle =" tooltip " title ="Make a POST request on the {{ name }} resource "> POST</ button >
205
205
</ div >
206
206
</ fieldset >
207
207
</ form >
208
208
{% endwith %}
209
209
</ div >
210
210
{% endif %}
211
211
212
- < div {% if post_form %}class ="tab-pane "{% endif %} id ="post-generic-content-form ">
212
+ < div {% if post_form %}class ="tab-pane "{% endif %} id ="post-generic-content-form " role =" tabpanel " >
213
213
{% with form=raw_data_post_form %}
214
- < form action ="{{ request.get_full_path }} " method ="POST " class =" form-horizontal " >
214
+ < form action ="{{ request.get_full_path }} " method ="POST ">
215
215
< fieldset >
216
216
{% include "rest_framework/raw_data_form.html" %}
217
217
< div class ="form-actions ">
218
- < button class ="btn btn-primary js- tooltip " title ="Make a POST request on the {{ name }} resource "> POST</ button >
218
+ < button class ="btn btn-primary " data-toggle =" tooltip " title ="Make a POST request on the {{ name }} resource "> POST</ button >
219
219
</ div >
220
220
</ fieldset >
221
221
</ form >
@@ -228,41 +228,41 @@ <h1 class="align-text-top">{{ name }}</h1>
228
228
{% if put_form or raw_data_put_form or raw_data_patch_form %}
229
229
< div {% if put_form %}class ="tabbable "{% endif %} >
230
230
{% if put_form %}
231
- < ul class ="nav nav-tabs form-switcher ">
232
- < li >
233
- < a name ='html-tab ' href ="#put-object-form " data-toggle ="tab "> HTML form</ a >
231
+ < ul class ="nav nav-tabs justify-content-end " role =" tablist ">
232
+ < li class =" nav-item " role =" presentation " >
233
+ < a class =" nav-link active " name ='html-tab ' href ="#put-object-form " data-toggle =" tab " role ="tab "> HTML form</ a >
234
234
</ li >
235
- < li >
236
- < a name ='raw-tab ' href ="#put-generic-content-form " data-toggle ="tab "> Raw data</ a >
235
+ < li class =" nav-item " role =" presentation " >
236
+ < a class =" nav-link " name ='raw-tab ' href ="#put-generic-content-form " data-toggle =" tab " role ="tab "> Raw data</ a >
237
237
</ li >
238
238
</ ul >
239
239
{% endif %}
240
240
241
- < div class ="well tab-content ">
241
+ < div class ="tab-content p-4 bg-light border ">
242
242
{% if put_form %}
243
- < div class ="tab-pane " id ="put-object-form ">
244
- < form action ="{{ request.get_full_path }} " data-method ="PUT " enctype ="multipart/form-data " class =" form-horizontal " novalidate >
243
+ < div class ="tab-pane active " id ="put-object-form " role =" tabpanel ">
244
+ < form action ="{{ request.get_full_path }} " data-method ="PUT " enctype ="multipart/form-data " novalidate >
245
245
< fieldset >
246
246
{{ put_form }}
247
247
< div class ="form-actions ">
248
- < button class ="btn btn-primary js- tooltip " title ="Make a PUT request on the {{ name }} resource "> PUT</ button >
248
+ < button class ="btn btn-primary " data-toggle =" tooltip " title ="Make a PUT request on the {{ name }} resource "> PUT</ button >
249
249
</ div >
250
250
</ fieldset >
251
251
</ form >
252
252
</ div >
253
253
{% endif %}
254
254
255
- < div {% if put_form %}class ="tab-pane "{% endif %} id ="put-generic-content-form ">
255
+ < div {% if put_form %}class ="tab-pane "{% endif %} id ="put-generic-content-form " role =" tabpanel " >
256
256
{% with form=raw_data_put_or_patch_form %}
257
- < form action ="{{ request.get_full_path }} " data-method ="PUT " class =" form-horizontal " >
257
+ < form action ="{{ request.get_full_path }} " data-method ="PUT ">
258
258
< fieldset >
259
259
{% include "rest_framework/raw_data_form.html" %}
260
260
< div class ="form-actions ">
261
261
{% if raw_data_put_form %}
262
- < button class ="btn btn-primary js- tooltip " title ="Make a PUT request on the {{ name }} resource "> PUT</ button >
262
+ < button class ="btn btn-primary " data-toggle =" tooltip " title ="Make a PUT request on the {{ name }} resource "> PUT</ button >
263
263
{% endif %}
264
264
{% if raw_data_patch_form %}
265
- < button data-method ="PATCH " class ="btn btn-primary js- tooltip " title ="Make a PATCH request on the {{ name }} resource "> PATCH</ button >
265
+ < button data-method ="PATCH " class ="btn btn-primary " data-toggle =" tooltip " title ="Make a PATCH request on the {{ name }} resource "> PATCH</ button >
266
266
{% endif %}
267
267
</ div >
268
268
</ fieldset >
0 commit comments