Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
02844a15
Commit
02844a15
authored
Nov 07, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up fieldset templates. Closes #2039
parent
4e262773
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
rest_framework/templates/rest_framework/horizontal/fieldset.html
+3
-1
rest_framework/templates/rest_framework/inline/fieldset.html
+3
-1
rest_framework/templates/rest_framework/vertical/fieldset.html
+3
-1
No files found.
rest_framework/templates/rest_framework/horizontal/fieldset.html
View file @
02844a15
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
</div>
</div>
{% endif %}
{% endif %}
{% for nested_field in field %}
{% 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 %}
{% endfor %}
</fieldset>
</fieldset>
rest_framework/templates/rest_framework/inline/fieldset.html
View file @
02844a15
{% load rest_framework %}
{% load rest_framework %}
{% for nested_field in field %}
{% 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 %}
{% endfor %}
rest_framework/templates/rest_framework/vertical/fieldset.html
View file @
02844a15
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
<fieldset>
<fieldset>
{% if field.label %}
<legend
{%
if
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</legend>
{% endif %}
{% if field.label %}
<legend
{%
if
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</legend>
{% endif %}
{% for nested_field in field %}
{% 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 %}
{% endfor %}
</fieldset>
</fieldset>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment