Skip to content

Commit

Permalink
Use Bootstrap custom select for entry list filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Mar 14, 2018
1 parent cdaef44 commit 742c21d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion babybuddy/templates/babybuddy/filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
{{ field.label }}
</label>
<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>
{% endfor %}
<div class="col-xs-12 col-sm-auto mt-3 mt-sm-0">
Expand Down

0 comments on commit 742c21d

Please sign in to comment.