Put all TextNodes (method names) back to same line with parent element

This commit is contained in:
Cezar Pendarovski 2014-08-27 09:41:33 +02:00
parent 8c9b795296
commit e5d88a80a9

View File

@ -83,9 +83,7 @@
<fieldset> <fieldset>
<div class="btn-group format-selection"> <div class="btn-group format-selection">
<a class="btn btn-primary js-tooltip" href='{{ request.get_full_path }}' <a class="btn btn-primary js-tooltip" href='{{ request.get_full_path }}'
rel="nofollow" title="Make a GET request on the {{ name }} resource"> rel="nofollow" title="Make a GET request on the {{ name }} resource">GET</a>
GET
</a>
<button class="btn btn-primary dropdown-toggle js-tooltip" data-toggle="dropdown" <button class="btn btn-primary dropdown-toggle js-tooltip" data-toggle="dropdown"
title="Specify a format for the GET request"> title="Specify a format for the GET request">
@ -113,9 +111,7 @@
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="{{ api_settings.FORM_METHOD_OVERRIDE }}" value="OPTIONS" /> <input type="hidden" name="{{ api_settings.FORM_METHOD_OVERRIDE }}" value="OPTIONS" />
<button class="btn btn-primary js-tooltip" <button class="btn btn-primary js-tooltip"
title="Make an OPTIONS request on the {{ name }} resource"> title="Make an OPTIONS request on the {{ name }} resource">OPTIONS</button>
OPTIONS
</button>
</form> </form>
{% endif %} {% endif %}
@ -124,9 +120,7 @@
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="{{ api_settings.FORM_METHOD_OVERRIDE }}" value="DELETE" /> <input type="hidden" name="{{ api_settings.FORM_METHOD_OVERRIDE }}" value="DELETE" />
<button class="btn btn-danger js-tooltip" <button class="btn btn-danger js-tooltip"
title="Make a DELETE request on the {{ name }} resource"> title="Make a DELETE request on the {{ name }} resource">DELETE</button>
DELETE
</button>
</form> </form>
{% endif %} {% endif %}
@ -172,9 +166,7 @@
{{ post_form }} {{ post_form }}
<div class="form-actions"> <div class="form-actions">
<button class="btn btn-primary" <button class="btn btn-primary"
title="Make a POST request on the {{ name }} resource"> title="Make a POST request on the {{ name }} resource">POST</button>
POST
</button>
</div> </div>
</fieldset> </fieldset>
</form> </form>
@ -188,9 +180,7 @@
{% include "rest_framework/raw_data_form.html" %} {% include "rest_framework/raw_data_form.html" %}
<div class="form-actions"> <div class="form-actions">
<button class="btn btn-primary" <button class="btn btn-primary"
title="Make a POST request on the {{ name }} resource"> title="Make a POST request on the {{ name }} resource">POST</button>
POST
</button>
</div> </div>
</fieldset> </fieldset>
</form> </form>
@ -222,9 +212,7 @@
<div class="form-actions"> <div class="form-actions">
<button class="btn btn-primary js-tooltip" <button class="btn btn-primary js-tooltip"
name="{{ api_settings.FORM_METHOD_OVERRIDE }}" name="{{ api_settings.FORM_METHOD_OVERRIDE }}"
value="PUT" title="Make a PUT request on the {{ name }} resource"> value="PUT" title="Make a PUT request on the {{ name }} resource">PUT</button>
PUT
</button>
</div> </div>
</fieldset> </fieldset>
</form> </form>
@ -239,16 +227,12 @@
{% if raw_data_put_form %} {% if raw_data_put_form %}
<button class="btn btn-primary js-tooltip" <button class="btn btn-primary js-tooltip"
name="{{ api_settings.FORM_METHOD_OVERRIDE }}" name="{{ api_settings.FORM_METHOD_OVERRIDE }}"
value="PUT" title="Make a PUT request on the {{ name }} resource"> value="PUT" title="Make a PUT request on the {{ name }} resource">PUT</button>
PUT
</button>
{% endif %} {% endif %}
{% if raw_data_patch_form %} {% if raw_data_patch_form %}
<button class="btn btn-primary js-tooltip" <button class="btn btn-primary js-tooltip"
name="{{ api_settings.FORM_METHOD_OVERRIDE }}" name="{{ api_settings.FORM_METHOD_OVERRIDE }}"
value="PATCH" title="Make a PATCH request on the {{ name }} resource"> value="PATCH" title="Make a PATCH request on the {{ name }} resource">PATCH</button>
PATCH
</button>
{% endif %} {% endif %}
</div> </div>
</fieldset> </fieldset>