diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index cee9724d5..2d4232151 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -24,146 +24,160 @@ {% endblock %} + {% block body %} + - +
-
- - {% block navbar %} - - {% endblock %} - - {% block breadcrumbs %} - - {% endblock %} - - -
- - {% if 'GET' in allowed_methods %} -
-
-
- GET - - -
-
-
- {% endif %} - - {% if options_form %} -
- {% csrf_token %} - - -
- {% endif %} - - {% if delete_form %} -
- {% csrf_token %} - - -
- {% endif %} - -
-
- {% block description %} - {{ description }} - {% endblock %} -
-
{{ request.method }} {{ request.get_full_path }}
-
-
-
HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %}
-{% for key, val in response_headers.items %}{{ key }}: {{ val|break_long_headers|urlize_quoted_links }}
-{% endfor %}
-{{ content|urlize_quoted_links }}
{% endautoescape %} -
-
+ {% endblock %} - {% if display_edit_forms %} - - {% if post_form or raw_data_post_form %} -
- {% if post_form %} - - {% endif %} -
+ {% block breadcrumbs %} + + {% endblock %} + + +
+ + {% if 'GET' in allowed_methods %} +
+
+
+ GET + + + +
+
+
+ {% endif %} + + {% if options_form %} +
+ {% csrf_token %} + + +
+ {% endif %} + + {% if delete_form %} +
+ {% csrf_token %} + + +
+ {% endif %} + +
+ + {% block description %} + {{ description }} + {% endblock %} +
+
{{ request.method }} {{ request.get_full_path }}
+
+
+
HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %}
+                                {% for key, val in response_headers.items %}{{ key }}: {{ val|break_long_headers|urlize_quoted_links }}
+                                {% endfor %}
+                            {{ content|urlize_quoted_links }}
{% endautoescape %} +
+
+ + {% if display_edit_forms %} + + {% if post_form or raw_data_post_form %} +
{% if post_form %} -
- {% with form=post_form %} -
+ + {% endif %} +
+ {% if post_form %} +
+ {% with form=post_form %} + +
+ {{ post_form }} +
+ +
+
+ + {% endwith %} +
+ {% endif %} +
+ {% with form=raw_data_post_form %} +
- {{ post_form }} + {% include "rest_framework/raw_data_form.html" %}
@@ -172,93 +186,80 @@ {% endwith %}
- {% endif %} -
- {% with form=raw_data_post_form %} -
-
- {% include "rest_framework/raw_data_form.html" %} -
- -
-
-
- {% endwith %}
-
- {% endif %} - - {% if put_form or raw_data_put_form or raw_data_patch_form %} -
- {% if put_form %} - - {% endif %} -
+ {% endif %} + + {% if put_form or raw_data_put_form or raw_data_patch_form %} +
{% if put_form %} -
-
-
- {{ put_form }} -
- -
-
-
-
+ {% endif %} -
- {% with form=raw_data_put_or_patch_form %} -
-
- {% include "rest_framework/raw_data_form.html" %} -
- {% if raw_data_put_form %} +
+ {% if put_form %} +
+ +
+ {{ put_form }} +
- {% endif %} - {% if raw_data_patch_form %} - - {% endif %} -
-
- - {% endwith %} +
+
+ +
+ {% endif %} +
+ {% with form=raw_data_put_or_patch_form %} +
+
+ {% include "rest_framework/raw_data_form.html" %} +
+ {% if raw_data_put_form %} + + {% endif %} + {% if raw_data_patch_form %} + + {% endif %} +
+
+
+ {% endwith %} +
-
+ {% endif %} {% endif %} - {% endif %} -
- - -
- {% block footer %} -

Sponsored by DabApps.

- {% endblock %} -
+
+ -
+
+ {% block footer %} +

Sponsored by DabApps.

+ {% endblock %} +
- {% block script %} - - - - - {% endblock %} - +
+ + {% block script %} + + + + + {% endblock %} + + {% endblock %}