diff options
| author | Carlton Gibson | 2014-10-02 10:38:12 +0200 | 
|---|---|---|
| committer | Carlton Gibson | 2014-10-02 10:38:12 +0200 | 
| commit | ad1497898b30c299e4e6fe0fbe3872b6e1ed27b8 (patch) | |
| tree | e380a78d01ea9b3305694ff42e401b0f38b1ad3e | |
| parent | a8622adcd9f940131b63e91d53d2c49fcb89ee6a (diff) | |
| parent | 802913d5e4d40ee17054415bded02981055b651d (diff) | |
| download | django-rest-framework-ad1497898b30c299e4e6fe0fbe3872b6e1ed27b8.tar.bz2 | |
Merge pull request #1905 from ya-mouse/master
[templates/rest_framework/base.html] Separate IDs for POST and PUT forms
| -rw-r--r-- | rest_framework/templates/rest_framework/base.html | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index a84ccf26..3628daa0 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -142,16 +142,16 @@                              {% if post_form %}                                  <ul class="nav nav-tabs form-switcher">                                      <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> -                                        <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>                                  </ul>                              {% endif %}                              <div class="well tab-content">                                  {% if post_form %} -                                    <div class="tab-pane" id="object-form"> +                                    <div class="tab-pane" id="post-object-form">                                          {% with form=post_form %}                                              <form action="{{ request.get_full_path }}"                                                    method="POST" enctype="multipart/form-data" class="form-horizontal"> @@ -166,7 +166,7 @@                                          {% endwith %}                                      </div>                                  {% 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 %}                                          <form action="{{ request.get_full_path }}" method="POST" class="form-horizontal">                                              <fieldset> @@ -188,16 +188,16 @@                              {% if put_form %}                                  <ul class="nav nav-tabs form-switcher">                                      <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> -                                        <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>                                  </ul>                              {% endif %}                              <div class="well tab-content">                                  {% if put_form %} -                                    <div class="tab-pane" id="object-form"> +                                    <div class="tab-pane" id="put-object-form">                                          <form action="{{ request.get_full_path }}"                                                method="POST" enctype="multipart/form-data" class="form-horizontal">                                              <fieldset> @@ -211,7 +211,7 @@                                          </form>                                      </div>                                  {% 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 %}                                          <form action="{{ request.get_full_path }}" method="POST" class="form-horizontal">                                              <fieldset> | 
