<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>
<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 }}`">
<buttonclass="btn btn-primary js-tooltip"name="{{ api_settings.FORM_METHOD_OVERRIDE }}"value="PUT"title="Make a PUT request on the {{ name }} resource">PUT</button>
<buttonclass="btn btn-primary js-tooltip"
name="{{ api_settings.FORM_METHOD_OVERRIDE }}"
value="PUT"title="Make a PUT request on the {{ name }} resource">
PUT
</button>
</div>
</div>
</fieldset>
</fieldset>
</form>
</form>
...
@@ -193,10 +236,18 @@
...
@@ -193,10 +236,18 @@
{% include "rest_framework/raw_data_form.html" %}
{% include "rest_framework/raw_data_form.html" %}
<divclass="form-actions">
<divclass="form-actions">
{% if raw_data_put_form %}
{% if raw_data_put_form %}
<buttonclass="btn btn-primary js-tooltip"name="{{ api_settings.FORM_METHOD_OVERRIDE }}"value="PUT"title="Make a PUT request on the {{ name }} resource">PUT</button>
<buttonclass="btn btn-primary js-tooltip"
name="{{ api_settings.FORM_METHOD_OVERRIDE }}"
value="PUT"title="Make a PUT request on the {{ name }} resource">
PUT
</button>
{% endif %}
{% endif %}
{% if raw_data_patch_form %}
{% if raw_data_patch_form %}
<buttonclass="btn btn-primary js-tooltip"name="{{ api_settings.FORM_METHOD_OVERRIDE }}"value="PATCH"title="Make a PATCH request on the {{ name }} resource">PATCH</button>
<buttonclass="btn btn-primary js-tooltip"
name="{{ api_settings.FORM_METHOD_OVERRIDE }}"
value="PATCH"title="Make a PATCH request on the {{ name }} resource">
PATCH
</button>
{% endif %}
{% endif %}
</div>
</div>
</fieldset>
</fieldset>
...
@@ -207,21 +258,16 @@
...
@@ -207,21 +258,16 @@
</div>
</div>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>
<!-- END content-main -->
</div>
</div>
<!-- END Content -->
<!-- END Content -->
<divid="push"></div>
<footer>
</div>
</div><!-- ./wrapper -->
{% block footer %}
{% block footer %}
<p>Sponsored by <ahref="http://dabapps.com/">DabApps</a>.</p>