diff options
| author | Tom Christie | 2012-10-03 16:19:07 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-10-03 16:19:07 +0100 |
| commit | 92b091ea16e4d75a6641b1164855230dea0dae75 (patch) | |
| tree | f1dd299e18b0181d11e0d001b2caccdde13b4f30 | |
| parent | a366d6e61261b9050c85a76d26ccf1544f165486 (diff) | |
| download | django-rest-framework-92b091ea16e4d75a6641b1164855230dea0dae75.tar.bz2 | |
Tweak styling of browseable API
| -rw-r--r-- | rest_framework/templates/rest_framework/base.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index 867051e6..bc6c2e4a 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -122,6 +122,7 @@ {% if response.status_code != 403 %} {% if post_form %} + <div class="well"> <form action="{{ request.get_full_path }}" method="POST" {% if post_form.is_multipart %}enctype="multipart/form-data"{% endif %} class="form-horizontal"> <fieldset> <h2>POST: {{ name }}</h2> @@ -131,7 +132,7 @@ <div class="control-group {% if field.errors %}error{% endif %}"> {{ field.label_tag|add_class:"control-label" }} <div class="controls"> - {{ field }} + {{ field|add_class:"input-xxlarge" }} <span class="help-inline">{{ field.help_text }}</span> {{ field.errors|add_class:"help-block" }} </div> @@ -142,9 +143,11 @@ </div> </fieldset> </form> + </div> {% endif %} {% if put_form %} + <div class="well"> <form action="{{ request.get_full_path }}" method="POST" {% if put_form.is_multipart %}enctype="multipart/form-data"{% endif %} class="form-horizontal"> <fieldset> <h2>PUT: {{ name }}</h2> @@ -155,7 +158,7 @@ <div class="control-group {% if field.errors %}error{% endif %}"> {{ field.label_tag|add_class:"control-label" }} <div class="controls"> - {{ field }} + {{ field|add_class:"input-xxlarge" }} <span class='help-inline'>{{ field.help_text }}</span> {{ field.errors|add_class:"help-block" }} </div> @@ -167,6 +170,7 @@ </fieldset> </form> + </div> {% endif %} {% endif %} |
