Skip to content

Commit b61806e

Browse files
HoangYelllovelydinosaur
authored andcommitted
add "js-tooltip" class to "POST" button (#6344)
the tool tip of "POST" button is different from other buttons, since it loses the "js-tooltip" class.
1 parent 5a54f89 commit b61806e

File tree

1 file changed

+2
-2
lines changed
  • rest_framework/templates/rest_framework

1 file changed

+2
-2
lines changed

rest_framework/templates/rest_framework/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h1>{{ name }}</h1>
201201
{% csrf_token %}
202202
{{ post_form }}
203203
<div class="form-actions">
204-
<button class="btn btn-primary" title="Make a POST request on the {{ name }} resource">POST</button>
204+
<button class="btn btn-primary js-tooltip" title="Make a POST request on the {{ name }} resource">POST</button>
205205
</div>
206206
</fieldset>
207207
</form>
@@ -215,7 +215,7 @@ <h1>{{ name }}</h1>
215215
<fieldset>
216216
{% include "rest_framework/raw_data_form.html" %}
217217
<div class="form-actions">
218-
<button class="btn btn-primary" title="Make a POST request on the {{ name }} resource">POST</button>
218+
<button class="btn btn-primary js-tooltip" title="Make a POST request on the {{ name }} resource">POST</button>
219219
</div>
220220
</fieldset>
221221
</form>

0 commit comments

Comments
 (0)