Use Bootstrap custom select for entry list filters.

This commit is contained in:
Christopher Charbonneau Wells 2018-03-13 19:55:54 -07:00
parent cdaef446a0
commit 742c21d003
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@
{{ field.label }} {{ field.label }}
</label> </label>
<div class="col-xs-10 col-sm-auto"> <div class="col-xs-10 col-sm-auto">
{{ field|add_class:"form-control form-control-sm" }} {% if 'choice' or 'boolean' in field|field_type %}
{{ field|add_class:"custom-select custom-select-sm" }}
{% else %}
{{ field|add_class:"form-control form-control-sm" }}
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
<div class="col-xs-12 col-sm-auto mt-3 mt-sm-0"> <div class="col-xs-12 col-sm-auto mt-3 mt-sm-0">