<divclass="region"aria-label="{% trans "requestform"%}">
{% block request_forms %}
{% if 'GET' in allowed_methods %}
<formid="get-form"class="pull-right">
<fieldset>
{% if api_settings.URL_FORMAT_OVERRIDE %}
<divclass="btn-group format-selection">
<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">
<spanclass="caret"></span>
</button>
<ulclass="dropdown-menu">
{% for format in available_formats %}
<li>
<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>
{% endfor %}
</ul>
</div>
{% else %}
{% if 'GET' in allowed_methods %}
<formid="get-form"class="float-right">
<fieldset>
{% if api_settings.URL_FORMAT_OVERRIDE %}
<divclass="btn-group format-selection">
<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 js-tooltip"title="Make an OPTIONS request on the {{ name }} resource">OPTIONS</button>
</form>
{% endif %}
{% if delete_form %}
<buttonclass="btn btn-danger button-form js-tooltip"title="Make a DELETE request on the {{ name }} resource"data-toggle="modal"data-target="#deleteModal">DELETE</button>
<buttonclass="btn btn-primary dropdown-toggle js-tooltip"data-toggle="dropdown"title="Specify a format for the GET request">
<spanclass="caret"></span>
</button>
<ulclass="dropdown-menu">
{% for format in available_formats %}
<li>
<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>
{% endfor %}
</ul>
</div>
{% else %}
<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 js-tooltip"title="Make an OPTIONS request on the {{ name }} resource">OPTIONS</button>
</form>
{% endif %}
{% if delete_form %}
<buttonclass="btn btn-danger button-form js-tooltip"title="Make a DELETE request on the {{ name }} resource"data-toggle="modal"data-target="#deleteModal">DELETE</button>
<divclass="content-main"role="main"aria-label="{% trans "maincontent"%}">
...
...
@@ -184,10 +179,7 @@
</div>
<divclass="response-info"aria-label="{% trans "responseinfo"%}">
<preclass="prettyprint"><spanclass="meta nocode"><b>HTTP {{ response.status_code }} {{ response.status_text }}</b>{% for key, val in response_headers|items %}