Skip to content

Commit

Permalink
Fixed active issue on ada filter buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
GPrimola committed Oct 13, 2020
1 parent d32dae9 commit 8e797ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/restrooms/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
.col-xs-12.headroom
#filters.clearfix
.btn-group{:data => {:toggle => "buttons"}}
%label#ada_filter.filter.btn.btn-light-purple.linkbutton{:title => t("restroom.accessible"), :class => ("active" if @filters.keys.include?('accessible'))}
%button#ada_filter.filter.btn.btn-light-purple.linkbutton{:title => t("restroom.accessible"), :class => ("active" if @filters.keys.include?('accessible'))}
%input{:type => "checkbox", :checked => @filters.keys.include?('accessible')}
%i.fa.fa-wheelchair
%label#unisex_filter.filter.btn-light-purple.btn.linkbutton{:title => t("restroom.type.unisex"), :class => ("active" if @filters.keys.include?('unisex'))}
%button#unisex_filter.filter.btn-light-purple.btn.linkbutton{:title => t("restroom.type.unisex"), :class => ("active" if @filters.keys.include?('unisex'))}
%input{:type => "checkbox", :checked => @filters.keys.include?('unisex')}
%i.fa.fa-transgender-alt
%label#changing_table_filter.filter.btn-light-purple.btn.linkbutton{:title => t("restroom.changing_table"), :class => ("active" if @filters.keys.include?('changing_table'))}
%button#changing_table_filter.filter.btn-light-purple.btn.linkbutton{:title => t("restroom.changing_table"), :class => ("active" if @filters.keys.include?('changing_table'))}
%input{:type => "checkbox", :checked => @filters.keys.include?('changing_table')}
%i.fa.fa-child

Expand Down

0 comments on commit 8e797ce

Please sign in to comment.