<aclass="btn btn-primary js-tooltip"href='{{ request.get_full_path }}'rel="nofollow"title="Do a GET request on the {{ name }} resource">GET</a>
<aclass="btn btn-primary js-tooltip"href='{{ request.get_full_path }}'rel="nofollow"title="Make a GET request on the {{ name }} resource">GET</a>
<buttonclass="btn btn-primary dropdown-toggle js-tooltip"data-toggle="dropdown"title="Specify a format for the GET request">
<buttonclass="btn btn-primary dropdown-toggle js-tooltip"data-toggle="dropdown"title="Specify a format for the GET request">
<spanclass="caret"></span>
<spanclass="caret"></span>
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<ulclass="dropdown-menu">
<ulclass="dropdown-menu">
{% for format in available_formats %}
{% for format in available_formats %}
<li>
<li>
<aclass="js-tooltip format-option"href='{% add_query_param request api_settings.URL_FORMAT_OVERRIDE format %}'rel="nofollow"title="Do a GET request on the {{ name }} resource with the format set to `{{ format }}`">{{ format }}</a>
<aclass="js-tooltip format-option"href='{% add_query_param request api_settings.URL_FORMAT_OVERRIDE format %}'rel="nofollow"title="Make a GET request on the {{ name }} resource with the format set to `{{ format }}`">{{ format }}</a>
</li>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
...
@@ -89,14 +89,19 @@
...
@@ -89,14 +89,19 @@
</form>
</form>
{% endif %}
{% endif %}
{% if api_settings.FORM_METHOD_OVERRIDE %}
{% if 'OPTIONS' in allowed_methods and api_settings.FORM_METHOD_OVERRIDE %}
<buttonclass="btn btn-info js-tooltip"{%if'OPTIONS'inallowed_methods%}title="Do an OPTIONS request on the {{ name }} resource"{%else%}disabled{%endif%}>OPTIONS</button>
<buttonclass="btn btn-info js-tooltip"title="Make an OPTIONS request on the {{ name }} resource">OPTIONS</button>
{% if not 'OPTIONS' in allowed_methods %}
</form>
<divclass="js-tooltip disabled-tooltip-shield"title="OPTIONS request not allowed for resource {{ name }}"></div>
{% endif %}
{% endif %}
{% if 'DELETE' in allowed_methods and api_settings.FORM_METHOD_OVERRIDE %}