File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
rest_framework/templates/rest_framework Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
< label class ="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %} "> {{ field.label }}</ label >
4
4
{% endif %}
5
5
< div class ="col-sm-10 ">
6
- < 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 %} >
6
+ < 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 %} >
7
7
{% if field.errors %}
8
8
{% for error in field.errors %}< span class ="help-block "> {{ error }}</ span > {% endfor %}
9
9
{% endif %}
Original file line number Diff line number Diff line change 2
2
{% if field.label %}
3
3
< label class ="sr-only "> {{ field.label }}</ label >
4
4
{% endif %}
5
- < 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 %} >
5
+ < 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 %} >
6
6
</ div >
Original file line number Diff line number Diff line change 2
2
{% if field.label %}
3
3
< label {% if style.hide_label %}class ="sr-only "{% endif %} > {{ field.label }}</ label >
4
4
{% endif %}
5
- < 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 %} >
5
+ < 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 %} >
6
6
{% if field.errors %}
7
7
{% for error in field.errors %}< span class ="help-block "> {{ error }}</ span > {% endfor %}
8
8
{% endif %}
You can’t perform that action at this time.
0 commit comments