Commit 92b091ea by Tom Christie

Tweak styling of browseable API

parent a366d6e6
...@@ -122,6 +122,7 @@ ...@@ -122,6 +122,7 @@
{% if response.status_code != 403 %} {% if response.status_code != 403 %}
{% if post_form %} {% 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"> <form action="{{ request.get_full_path }}" method="POST" {% if post_form.is_multipart %}enctype="multipart/form-data"{% endif %} class="form-horizontal">
<fieldset> <fieldset>
<h2>POST: {{ name }}</h2> <h2>POST: {{ name }}</h2>
...@@ -131,7 +132,7 @@ ...@@ -131,7 +132,7 @@
<div class="control-group {% if field.errors %}error{% endif %}"> <div class="control-group {% if field.errors %}error{% endif %}">
{{ field.label_tag|add_class:"control-label" }} {{ field.label_tag|add_class:"control-label" }}
<div class="controls"> <div class="controls">
{{ field }} {{ field|add_class:"input-xxlarge" }}
<span class="help-inline">{{ field.help_text }}</span> <span class="help-inline">{{ field.help_text }}</span>
{{ field.errors|add_class:"help-block" }} {{ field.errors|add_class:"help-block" }}
</div> </div>
...@@ -142,9 +143,11 @@ ...@@ -142,9 +143,11 @@
</div> </div>
</fieldset> </fieldset>
</form> </form>
</div>
{% endif %} {% endif %}
{% if put_form %} {% 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"> <form action="{{ request.get_full_path }}" method="POST" {% if put_form.is_multipart %}enctype="multipart/form-data"{% endif %} class="form-horizontal">
<fieldset> <fieldset>
<h2>PUT: {{ name }}</h2> <h2>PUT: {{ name }}</h2>
...@@ -155,7 +158,7 @@ ...@@ -155,7 +158,7 @@
<div class="control-group {% if field.errors %}error{% endif %}"> <div class="control-group {% if field.errors %}error{% endif %}">
{{ field.label_tag|add_class:"control-label" }} {{ field.label_tag|add_class:"control-label" }}
<div class="controls"> <div class="controls">
{{ field }} {{ field|add_class:"input-xxlarge" }}
<span class='help-inline'>{{ field.help_text }}</span> <span class='help-inline'>{{ field.help_text }}</span>
{{ field.errors|add_class:"help-block" }} {{ field.errors|add_class:"help-block" }}
</div> </div>
...@@ -167,6 +170,7 @@ ...@@ -167,6 +170,7 @@
</fieldset> </fieldset>
</form> </form>
</div>
{% endif %} {% endif %}
{% endif %} {% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment