mirror of https://github.com/snachodog/mybuddy.git
Use .custom-select for select fields.
This commit is contained in:
parent
a3fe999660
commit
18583d8cb6
|
@ -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" }}
|
||||||
|
|
Loading…
Reference in New Issue