mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
[templates/rest_framework/base.html] Separate object-form' and
generic-content-form' IDs for POST and PUT forms
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
This commit is contained in:
parent
411511622d
commit
802913d5e4
|
@ -142,16 +142,16 @@
|
||||||
{% if post_form %}
|
{% if post_form %}
|
||||||
<ul class="nav nav-tabs form-switcher">
|
<ul class="nav nav-tabs form-switcher">
|
||||||
<li>
|
<li>
|
||||||
<a name='html-tab' href="#object-form" data-toggle="tab">HTML form</a>
|
<a name='html-tab' href="#post-object-form" data-toggle="tab">HTML form</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a name='raw-tab' href="#generic-content-form" data-toggle="tab">Raw data</a>
|
<a name='raw-tab' href="#post-generic-content-form" data-toggle="tab">Raw data</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="well tab-content">
|
<div class="well tab-content">
|
||||||
{% if post_form %}
|
{% if post_form %}
|
||||||
<div class="tab-pane" id="object-form">
|
<div class="tab-pane" id="post-object-form">
|
||||||
{% with form=post_form %}
|
{% with form=post_form %}
|
||||||
<form action="{{ request.get_full_path }}"
|
<form action="{{ request.get_full_path }}"
|
||||||
method="POST" enctype="multipart/form-data" class="form-horizontal">
|
method="POST" enctype="multipart/form-data" class="form-horizontal">
|
||||||
|
@ -166,7 +166,7 @@
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div {% if post_form %}class="tab-pane"{% endif %} id="generic-content-form">
|
<div {% if post_form %}class="tab-pane"{% endif %} id="post-generic-content-form">
|
||||||
{% with form=raw_data_post_form %}
|
{% with form=raw_data_post_form %}
|
||||||
<form action="{{ request.get_full_path }}" method="POST" class="form-horizontal">
|
<form action="{{ request.get_full_path }}" method="POST" class="form-horizontal">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -188,16 +188,16 @@
|
||||||
{% if put_form %}
|
{% if put_form %}
|
||||||
<ul class="nav nav-tabs form-switcher">
|
<ul class="nav nav-tabs form-switcher">
|
||||||
<li>
|
<li>
|
||||||
<a name='html-tab' href="#object-form" data-toggle="tab">HTML form</a>
|
<a name='html-tab' href="#put-object-form" data-toggle="tab">HTML form</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a name='raw-tab' href="#generic-content-form" data-toggle="tab">Raw data</a>
|
<a name='raw-tab' href="#put-generic-content-form" data-toggle="tab">Raw data</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="well tab-content">
|
<div class="well tab-content">
|
||||||
{% if put_form %}
|
{% if put_form %}
|
||||||
<div class="tab-pane" id="object-form">
|
<div class="tab-pane" id="put-object-form">
|
||||||
<form action="{{ request.get_full_path }}"
|
<form action="{{ request.get_full_path }}"
|
||||||
method="POST" enctype="multipart/form-data" class="form-horizontal">
|
method="POST" enctype="multipart/form-data" class="form-horizontal">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div {% if put_form %}class="tab-pane"{% endif %} id="generic-content-form">
|
<div {% if put_form %}class="tab-pane"{% endif %} id="put-generic-content-form">
|
||||||
{% with form=raw_data_put_or_patch_form %}
|
{% with form=raw_data_put_or_patch_form %}
|
||||||
<form action="{{ request.get_full_path }}" method="POST" class="form-horizontal">
|
<form action="{{ request.get_full_path }}" method="POST" class="form-horizontal">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user