mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Fix up fieldset templates. Closes #2039
This commit is contained in:
parent
4e2627736f
commit
02844a1507
|
@ -6,6 +6,8 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% for nested_field in field %}
|
||||
{% render_field nested_field template_pack=template_pack renderer=renderer %}
|
||||
{% if not nested_field.read_only %}
|
||||
{% render_field nested_field style=style %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{% load rest_framework %}
|
||||
{% for nested_field in field %}
|
||||
{% render_field nested_field template_pack=template_pack renderer=renderer %}
|
||||
{% if not nested_field.read_only %}
|
||||
{% render_field nested_field style=style %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
<fieldset>
|
||||
{% if field.label %}<legend {% if style.hide_label %}class="sr-only"{% endif %}>{{ field.label }}</legend>{% endif %}
|
||||
{% for nested_field in field %}
|
||||
{% render_field nested_field template_pack=template_pack renderer=renderer %}
|
||||
{% if not nested_field.read_only %}
|
||||
{% render_field nested_field style=style %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
|
|
Loading…
Reference in New Issue
Block a user