diff --git a/rest_framework/templates/rest_framework/inline/checkbox.html b/rest_framework/templates/rest_framework/inline/checkbox.html index e145dee69..2bf32e52f 100644 --- a/rest_framework/templates/rest_framework/inline/checkbox.html +++ b/rest_framework/templates/rest_framework/inline/checkbox.html @@ -1,7 +1,7 @@ -
-
+
+
diff --git a/rest_framework/templates/rest_framework/inline/checkbox_multiple.html b/rest_framework/templates/rest_framework/inline/checkbox_multiple.html index 6c8d88408..a2db168f5 100644 --- a/rest_framework/templates/rest_framework/inline/checkbox_multiple.html +++ b/rest_framework/templates/rest_framework/inline/checkbox_multiple.html @@ -1,16 +1,14 @@ {% load rest_framework %} -
+
{% if field.label %} {% endif %} {% for key, text in field.choices|items %} -
- +
+ +
{% endfor %}
diff --git a/rest_framework/templates/rest_framework/inline/dict_field.html b/rest_framework/templates/rest_framework/inline/dict_field.html index 96853ae3e..423df2589 100644 --- a/rest_framework/templates/rest_framework/inline/dict_field.html +++ b/rest_framework/templates/rest_framework/inline/dict_field.html @@ -1,9 +1,9 @@ -
+
{% if field.label %} {% endif %} -

Dictionaries are not currently supported in HTML input.

+

Dictionaries are not currently supported in HTML input.

diff --git a/rest_framework/templates/rest_framework/inline/form.html b/rest_framework/templates/rest_framework/inline/form.html index 13fc807eb..ba397034e 100644 --- a/rest_framework/templates/rest_framework/inline/form.html +++ b/rest_framework/templates/rest_framework/inline/form.html @@ -1,6 +1,8 @@ {% load rest_framework %} +
{% for field in form %} {% if not field.read_only %} {% render_field field style=style %} {% endif %} {% endfor %} +
\ No newline at end of file diff --git a/rest_framework/templates/rest_framework/inline/input.html b/rest_framework/templates/rest_framework/inline/input.html index bdbcff160..b87d49d28 100644 --- a/rest_framework/templates/rest_framework/inline/input.html +++ b/rest_framework/templates/rest_framework/inline/input.html @@ -1,9 +1,9 @@ -
+
{% if field.label %} {% endif %} - +
diff --git a/rest_framework/templates/rest_framework/inline/list_field.html b/rest_framework/templates/rest_framework/inline/list_field.html index a49b5bcf6..d038a4586 100644 --- a/rest_framework/templates/rest_framework/inline/list_field.html +++ b/rest_framework/templates/rest_framework/inline/list_field.html @@ -1,9 +1,9 @@ -
+
{% if field.label %} {% endif %} -

Lists are not currently supported in HTML input.

+

Lists are not currently supported in HTML input.

diff --git a/rest_framework/templates/rest_framework/inline/list_fieldset.html b/rest_framework/templates/rest_framework/inline/list_fieldset.html index 2ae56d7cd..4a4d3aa38 100644 --- a/rest_framework/templates/rest_framework/inline/list_fieldset.html +++ b/rest_framework/templates/rest_framework/inline/list_fieldset.html @@ -1 +1,3 @@ -Lists are not currently supported in HTML input. +
+Lists are not currently supported in HTML input. +
\ No newline at end of file diff --git a/rest_framework/templates/rest_framework/inline/radio.html b/rest_framework/templates/rest_framework/inline/radio.html index d1ea5fd0e..8530f8b56 100644 --- a/rest_framework/templates/rest_framework/inline/radio.html +++ b/rest_framework/templates/rest_framework/inline/radio.html @@ -2,7 +2,7 @@ {% load rest_framework %} {% trans "None" as none_choice %} -
+
{% if field.label %}