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
5f580cad
Commit
5f580cad
authored
Nov 17, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove class='form-control' for file inputs. Closes #2065.
parent
4e035184
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
rest_framework/templates/rest_framework/horizontal/input.html
+1
-1
rest_framework/templates/rest_framework/inline/input.html
+1
-1
rest_framework/templates/rest_framework/vertical/input.html
+1
-1
No files found.
rest_framework/templates/rest_framework/horizontal/input.html
View file @
5f580cad
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<label
class=
"col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
<label
class=
"col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}"
>
{{ field.label }}
</label>
{% endif %}
{% endif %}
<div
class=
"col-sm-10"
>
<div
class=
"col-sm-10"
>
<input
name=
"{{ field.name }}"
class=
"form-control"
type=
"{{ style.input_type }}"
{%
if
style
.
placeholder
%}
placeholder=
"{{ style.placeholder }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
<input
name=
"{{ field.name }}"
{%
if
style
.
input_type
!=
"
file
"
%}
class=
"form-control"
{%
endif
%}
type=
"{{ style.input_type }}"
{%
if
style
.
placeholder
%}
placeholder=
"{{ style.placeholder }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
{% if field.errors %}
{% if field.errors %}
{% for error in field.errors %}
<span
class=
"help-block"
>
{{ error }}
</span>
{% endfor %}
{% for error in field.errors %}
<span
class=
"help-block"
>
{{ error }}
</span>
{% endfor %}
{% endif %}
{% endif %}
...
...
rest_framework/templates/rest_framework/inline/input.html
View file @
5f580cad
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
{% if field.label %}
{% if field.label %}
<label
class=
"sr-only"
>
{{ field.label }}
</label>
<label
class=
"sr-only"
>
{{ field.label }}
</label>
{% endif %}
{% endif %}
<input
name=
"{{ field.name }}"
class=
"form-control"
type=
"{{ style.input_type }}"
{%
if
style
.
placeholder
%}
placeholder=
"{{ style.placeholder }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
<input
name=
"{{ field.name }}"
{%
if
style
.
input_type
!=
"
file
"
%}
class=
"form-control"
{%
endif
%}
type=
"{{ style.input_type }}"
{%
if
style
.
placeholder
%}
placeholder=
"{{ style.placeholder }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
</div>
</div>
rest_framework/templates/rest_framework/vertical/input.html
View file @
5f580cad
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
{% if field.label %}
{% if field.label %}
<label
{%
if
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
<label
{%
if
style
.
hide_label
%}
class=
"sr-only"
{%
endif
%}
>
{{ field.label }}
</label>
{% endif %}
{% endif %}
<input
name=
"{{ field.name }}"
class=
"form-control"
type=
"{{ style.input_type }}"
{%
if
style
.
placeholder
%}
placeholder=
"{{ style.placeholder }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
<input
name=
"{{ field.name }}"
{%
if
style
.
input_type
!=
"
file
"
%}
class=
"form-control"
{%
endif
%}
type=
"{{ style.input_type }}"
{%
if
style
.
placeholder
%}
placeholder=
"{{ style.placeholder }}"
{%
endif
%}
{%
if
field
.
value
%}
value=
"{{ field.value }}"
{%
endif
%}
>
{% if field.errors %}
{% if field.errors %}
{% for error in field.errors %}
<span
class=
"help-block"
>
{{ error }}
</span>
{% endfor %}
{% for error in field.errors %}
<span
class=
"help-block"
>
{{ error }}
</span>
{% endfor %}
{% endif %}
{% endif %}
...
...
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