diff options
| author | Tom Christie | 2014-11-17 18:17:44 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-11-17 18:17:44 +0000 | 
| commit | 5f580cad523a4133e9805a7dfac4bf239d295a1e (patch) | |
| tree | a58bf7ca7cc171ba9cc0e15e23ee904002a244cd | |
| parent | 4e035184384db8ed1227fdcb1dad2ea6ddb1cf68 (diff) | |
| download | django-rest-framework-5f580cad523a4133e9805a7dfac4bf239d295a1e.tar.bz2 | |
Remove class='form-control' for file inputs. Closes #2065.
3 files changed, 3 insertions, 3 deletions
| diff --git a/rest_framework/templates/rest_framework/horizontal/input.html b/rest_framework/templates/rest_framework/horizontal/input.html index df4aa40f..c41cd523 100644 --- a/rest_framework/templates/rest_framework/horizontal/input.html +++ b/rest_framework/templates/rest_framework/horizontal/input.html @@ -3,7 +3,7 @@          <label class="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %}">{{ field.label }}</label>      {% endif %}      <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 %}              {% for error in field.errors %}<span class="help-block">{{ error }}</span>{% endfor %}          {% endif %} diff --git a/rest_framework/templates/rest_framework/inline/input.html b/rest_framework/templates/rest_framework/inline/input.html index f8ec4faf..de85ba48 100644 --- a/rest_framework/templates/rest_framework/inline/input.html +++ b/rest_framework/templates/rest_framework/inline/input.html @@ -2,5 +2,5 @@      {% if field.label %}          <label class="sr-only">{{ field.label }}</label>      {% 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> diff --git a/rest_framework/templates/rest_framework/vertical/input.html b/rest_framework/templates/rest_framework/vertical/input.html index e1e21ca1..43cccd3e 100644 --- a/rest_framework/templates/rest_framework/vertical/input.html +++ b/rest_framework/templates/rest_framework/vertical/input.html @@ -2,7 +2,7 @@      {% if field.label %}          <label {% if style.hide_label %}class="sr-only"{% endif %}>{{ field.label }}</label>      {% 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 %}          {% for error in field.errors %}<span class="help-block">{{ error }}</span>{% endfor %}      {% endif %} | 
