@@ -182,40 +182,40 @@ <h1 class="align-text-top">{{ name }}</h1>
182182 {% if post_form or raw_data_post_form %}
183183 < div {% if post_form %}class ="tabbable "{% endif %} >
184184 {% 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 >
188188 </ 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 >
191191 </ li >
192192 </ ul >
193193 {% endif %}
194194
195- < div class ="well tab-content ">
195+ < div class ="tab-content p-4 bg-light border ">
196196 {% if post_form %}
197- < div class ="tab-pane " id ="post-object-form ">
197+ < div class ="tab-pane active " id ="post-object-form " role =" tabpanel ">
198198 {% 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 >
200200 < fieldset >
201201 {% csrf_token %}
202202 {{ post_form }}
203203 < 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 >
205205 </ div >
206206 </ fieldset >
207207 </ form >
208208 {% endwith %}
209209 </ div >
210210 {% endif %}
211211
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 " >
213213 {% 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 ">
215215 < fieldset >
216216 {% include "rest_framework/raw_data_form.html" %}
217217 < 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 >
219219 </ div >
220220 </ fieldset >
221221 </ form >
@@ -228,41 +228,41 @@ <h1 class="align-text-top">{{ name }}</h1>
228228 {% if put_form or raw_data_put_form or raw_data_patch_form %}
229229 < div {% if put_form %}class ="tabbable "{% endif %} >
230230 {% 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 >
234234 </ 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 >
237237 </ li >
238238 </ ul >
239239 {% endif %}
240240
241- < div class ="well tab-content ">
241+ < div class ="tab-content p-4 bg-light border ">
242242 {% 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 >
245245 < fieldset >
246246 {{ put_form }}
247247 < 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 >
249249 </ div >
250250 </ fieldset >
251251 </ form >
252252 </ div >
253253 {% endif %}
254254
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 " >
256256 {% 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 ">
258258 < fieldset >
259259 {% include "rest_framework/raw_data_form.html" %}
260260 < div class ="form-actions ">
261261 {% 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 >
263263 {% endif %}
264264 {% 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 >
266266 {% endif %}
267267 </ div >
268268 </ fieldset >
0 commit comments