Use .custom-select for select fields.

This commit is contained in:
Christopher Charbonneau Wells 2018-02-04 19:56:04 -05:00
parent a3fe999660
commit 18583d8cb6
1 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,12 @@
{{ field|add_class:"form-control" }} {{ field|add_class:"form-control" }}
{% endif %} {% endif %}
</div> </div>
{% elif 'choice' in field|field_type %}
{% if field.errors %}
{{ field|add_class:"custom-select is-invalid" }}
{% else %}
{{ field|add_class:"custom-select" }}
{% endif %}
{% else %} {% else %}
{% if field.errors %} {% if field.errors %}
{{ field|add_class:"form-control is-invalid" }} {{ field|add_class:"form-control is-invalid" }}