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
e558f806
Commit
e558f806
authored
Oct 15, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop template includes
parent
faa5bd9f
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
62 additions
and
30 deletions
+62
-30
rest_framework/templates/rest_framework/fields/attrs.html
+0
-1
rest_framework/templates/rest_framework/fields/horizontal/input.html
+4
-2
rest_framework/templates/rest_framework/fields/horizontal/label.html
+0
-1
rest_framework/templates/rest_framework/fields/horizontal/select.html
+5
-3
rest_framework/templates/rest_framework/fields/horizontal/select_checkbox.html
+3
-1
rest_framework/templates/rest_framework/fields/horizontal/select_multiple.html
+3
-1
rest_framework/templates/rest_framework/fields/horizontal/select_radio.html
+3
-1
rest_framework/templates/rest_framework/fields/horizontal/textarea.html
+4
-2
rest_framework/templates/rest_framework/fields/inline/input.html
+4
-2
rest_framework/templates/rest_framework/fields/inline/label.html
+0
-1
rest_framework/templates/rest_framework/fields/inline/select.html
+3
-1
rest_framework/templates/rest_framework/fields/inline/select_checkbox.html
+3
-1
rest_framework/templates/rest_framework/fields/inline/select_multiple.html
+3
-1
rest_framework/templates/rest_framework/fields/inline/select_radio.html
+3
-1
rest_framework/templates/rest_framework/fields/inline/textarea.html
+4
-2
rest_framework/templates/rest_framework/fields/vertical/input.html
+4
-2
rest_framework/templates/rest_framework/fields/vertical/label.html
+0
-1
rest_framework/templates/rest_framework/fields/vertical/select.html
+3
-1
rest_framework/templates/rest_framework/fields/vertical/select_checkbox.html
+3
-1
rest_framework/templates/rest_framework/fields/vertical/select_multiple.html
+3
-1
rest_framework/templates/rest_framework/fields/vertical/select_radio.html
+3
-1
rest_framework/templates/rest_framework/fields/vertical/textarea.html
+4
-2
No files found.
rest_framework/templates/rest_framework/fields/attrs.html
deleted
100644 → 0
View file @
faa5bd9f
name="{{ field.name }}" {% if field.style.placeholder %}placeholder="{{ field.style.placeholder }}"{% endif %} {% if field.style.rows %}rows="{{ field.style.rows }}"{% endif %}
rest_framework/templates/rest_framework/fields/horizontal/input.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/horizontal/label.html" %}
{% if field.label %}
<label
class=
"col-sm-2 control-label {% if field.style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
{% endif %}
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<input
type=
"{{ input_type }}"
class=
"form-control"
{%
include
"
rest_framework
/
fields
/
attrs
.
html
"
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
<input
name=
"{{ field.name }}"
type=
"{{ input_type }}"
class=
"form-control"
{%
if
field
.
style
.
placeholder
%}
placeholder=
"{{ field.style.placeholder }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
{% if field.help_text %}
<p
class=
"help-block"
>
{{ field.help_text }}
</p>
{% endif %}
{% if field.help_text %}
<p
class=
"help-block"
>
{{ field.help_text }}
</p>
{% endif %}
</div>
</div>
</div>
</div>
rest_framework/templates/rest_framework/fields/horizontal/label.html
deleted
100644 → 0
View file @
faa5bd9f
{% if field.label %}
<label
class=
"col-sm-2 control-label {% if field.style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
{% endif %}
rest_framework/templates/rest_framework/fields/horizontal/select.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/horizontal/label.html" %}
{% if field.label %}
<label
class=
"col-sm-2 control-label {% if field.style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
{% endif %}
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<select
class=
"form-control"
name=
"{{ field.name }}"
>
<select
class=
"form-control"
name=
"{{ field.name }}"
>
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
<option
value=
"{{ key }}"
{%
if
key =
=
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
<option
value=
"{{ key }}"
{%
if
key =
=
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
{% endfor %}
{% endfor %}
</select>
</select>
</div>
</div>
</div>
</div>
rest_framework/templates/rest_framework/fields/horizontal/select_checkbox.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/horizontal/label.html" %}
{% if field.label %}
<label
class=
"col-sm-2 control-label {% if field.style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
{% endif %}
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
{% if field.style.inline %}
{% if field.style.inline %}
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
...
...
rest_framework/templates/rest_framework/fields/horizontal/select_multiple.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/horizontal/label.html" %}
{% if field.label %}
<label
class=
"col-sm-2 control-label {% if field.style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
{% endif %}
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<select
multiple
class=
"form-control"
name=
"{{ field.name }}"
>
<select
multiple
class=
"form-control"
name=
"{{ field.name }}"
>
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
...
...
rest_framework/templates/rest_framework/fields/horizontal/select_radio.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/horizontal/label.html" %}
{% if field.label %}
<label
class=
"col-sm-2 control-label {% if field.style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
{% endif %}
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
{% if field.style.inline %}
{% if field.style.inline %}
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
...
...
rest_framework/templates/rest_framework/fields/horizontal/textarea.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/horizontal/label.html" %}
{% if field.label %}
<label
class=
"col-sm-2 control-label {% if field.style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
{% endif %}
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<textarea
class=
"form-control"
{%
include
"
rest_framework
/
fields
/
attrs
.
html
"
%}
>
{% if field.value %}{{ field.value }}{% endif %}
</textarea>
<textarea
name=
"{{ field.name }}"
class=
"form-control"
{%
if
field
.
style
.
placeholder
%}
placeholder=
"{{ field.style.placeholder }}"
{%
endif
%}
{%
if
field
.
style
.
rows
%}
rows=
"{{ field.style.rows }}"
{%
endif
%}
>
{% if field.value %}{{ field.value }}{% endif %}
</textarea>
{% if field.help_text %}
<p
class=
"help-block"
>
{{ field.help_text }}
</p>
{% endif %}
{% if field.help_text %}
<p
class=
"help-block"
>
{{ field.help_text }}
</p>
{% endif %}
</div>
</div>
</div>
</div>
rest_framework/templates/rest_framework/fields/inline/input.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/inline/label.html" %}
{% if field.label %}
<input
type=
"{{ input_type }}"
class=
"form-control"
{%
include
"
rest_framework
/
fields
/
attrs
.
html
"
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
<label
class=
"sr-only"
>
{{ field.label }}
</label>
{% endif %}
<input
name=
"{{ field.name }}"
type=
"{{ input_type }}"
class=
"form-control"
{%
if
field
.
style
.
placeholder
%}
placeholder=
"{{ field.style.placeholder }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
</div>
</div>
rest_framework/templates/rest_framework/fields/inline/label.html
deleted
100644 → 0
View file @
faa5bd9f
{% if field.label %}
<label
class=
"sr-only"
>
{{ field.label }}
</label>
{% endif %}
rest_framework/templates/rest_framework/fields/inline/select.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/inline/label.html" %}
{% if field.label %}
<label
class=
"sr-only"
>
{{ field.label }}
</label>
{% endif %}
<select
class=
"form-control"
name=
"{{ field.name }}"
>
<select
class=
"form-control"
name=
"{{ field.name }}"
>
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
<option
value=
"{{ key }}"
{%
if
key =
=
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
<option
value=
"{{ key }}"
{%
if
key =
=
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
...
...
rest_framework/templates/rest_framework/fields/inline/select_checkbox.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/inline/label.html" %}
{% if field.label %}
<label
class=
"sr-only"
>
{{ field.label }}
</label>
{% endif %}
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
<div
class=
"checkbox"
>
<div
class=
"checkbox"
>
<label>
<label>
...
...
rest_framework/templates/rest_framework/fields/inline/select_multiple.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/inline/label.html" %}
{% if field.label %}
<label
class=
"sr-only"
>
{{ field.label }}
</label>
{% endif %}
<select
multiple
class=
"form-control"
name=
"{{ field.name }}"
>
<select
multiple
class=
"form-control"
name=
"{{ field.name }}"
>
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
<option
value=
"{{ key }}"
{%
if
key
in
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
<option
value=
"{{ key }}"
{%
if
key
in
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
...
...
rest_framework/templates/rest_framework/fields/inline/select_radio.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/inline/label.html" %}
{% if field.label %}
<label
class=
"sr-only"
>
{{ field.label }}
</label>
{% endif %}
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
<div
class=
"radio"
>
<div
class=
"radio"
>
<label>
<label>
...
...
rest_framework/templates/rest_framework/fields/inline/textarea.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/inline/label.html" %}
{% if field.label %}
<textarea
class=
"form-control"
{%
include
"
rest_framework
/
fields
/
attrs
.
html
"
%}
>
{% if field.value %}{{ field.value }}{% endif %}
</textarea>
<label
class=
"sr-only"
>
{{ field.label }}
</label>
{% endif %}
<textarea
name=
"{{ field.name }}"
class=
"form-control"
{%
if
field
.
style
.
placeholder
%}
placeholder=
"{{ field.style.placeholder }}"
{%
endif
%}
{%
if
field
.
style
.
rows
%}
rows=
"{{ field.style.rows }}"
{%
endif
%}
>
{% if field.value %}{{ field.value }}{% endif %}
</textarea>
</div>
</div>
rest_framework/templates/rest_framework/fields/vertical/input.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/vertical/label.html" %}
{% if field.label %}
<input
type=
"{{ input_type }}"
class=
"form-control"
{%
include
"
rest_framework
/
fields
/
attrs
.
html
"
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
<label
{%
if
field
.
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
{% endif %}
<input
name=
"{{ field.name }}"
type=
"{{ input_type }}"
class=
"form-control"
{%
if
field
.
style
.
placeholder
%}
placeholder=
"{{ field.style.placeholder }}"
{%
endif
%}
{%
if
field
.
style
.
rows
%}
rows=
"{{ field.style.rows }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
{% if field.help_text %}
<p
class=
"help-block"
>
{{ field.help_text }}
</p>
{% endif %}
{% if field.help_text %}
<p
class=
"help-block"
>
{{ field.help_text }}
</p>
{% endif %}
</div>
</div>
rest_framework/templates/rest_framework/fields/vertical/label.html
deleted
100644 → 0
View file @
faa5bd9f
{% if field.label %}
<label
{%
if
field
.
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
{% endif %}
rest_framework/templates/rest_framework/fields/vertical/select.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/vertical/label.html" %}
{% if field.label %}
<label
{%
if
field
.
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
{% endif %}
<select
class=
"form-control"
name=
"{{ field.name }}"
>
<select
class=
"form-control"
name=
"{{ field.name }}"
>
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
<option
value=
"{{ key }}"
{%
if
key =
=
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
<option
value=
"{{ key }}"
{%
if
key =
=
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
...
...
rest_framework/templates/rest_framework/fields/vertical/select_checkbox.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/vertical/label.html" %}
{% if field.label %}
<label
{%
if
field
.
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
{% endif %}
{% if field.style.inline %}
{% if field.style.inline %}
<div>
<div>
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
...
...
rest_framework/templates/rest_framework/fields/vertical/select_multiple.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/vertical/label.html" %}
{% if field.label %}
<label
{%
if
field
.
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
{% endif %}
<select
multiple
class=
"form-control"
name=
"{{ field.name }}"
>
<select
multiple
class=
"form-control"
name=
"{{ field.name }}"
>
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
<option
value=
"{{ key }}"
{%
if
key
in
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
<option
value=
"{{ key }}"
{%
if
key
in
field
.
value
%}
selected
{%
endif
%}
>
{{ text }}
</option>
...
...
rest_framework/templates/rest_framework/fields/vertical/select_radio.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/vertical/label.html" %}
{% if field.label %}
<label
{%
if
field
.
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
{% endif %}
{% if field.style.inline %}
{% if field.style.inline %}
<div>
<div>
{% for key, text in field.choices.items %}
{% for key, text in field.choices.items %}
...
...
rest_framework/templates/rest_framework/fields/vertical/textarea.html
View file @
e558f806
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{% include "rest_framework/fields/vertical/label.html" %}
{% if field.label %}
<textarea
class=
"form-control"
{%
include
"
rest_framework
/
fields
/
attrs
.
html
"
%}
>
{% if field.value %}{{ field.value }}{% endif %}
</textarea>
<label
{%
if
field
.
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
{% endif %}
<textarea
name=
"{{ field.name }}"
class=
"form-control"
{%
if
field
.
style
.
placeholder
%}
placeholder=
"{{ field.style.placeholder }}"
{%
endif
%}
{%
if
field
.
style
.
rows
%}
rows=
"{{ field.style.rows }}"
{%
endif
%}
>
{% if field.value %}{{ field.value }}{% endif %}
</textarea>
{% if field.help_text %}
<p
class=
"help-block"
>
{{ field.help_text }}
</p>
{% endif %}
{% if field.help_text %}
<p
class=
"help-block"
>
{{ field.help_text }}
</p>
{% endif %}
</div>
</div>
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