Sha256: 62267662fed799b7328bb8f43dbab09834224c2dc11fc3015681c45c1118e78e
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
<div class="dropdown"> <%= hidden_field_tag("#{filter_prefixes[:main]}#{filter_prefixes[:exact]}#{filter[:field]}", request.params["#{filter_prefixes[:main]}#{filter_prefixes[:exact]}#{filter[:field]}"]) %> <% button_text = "<span>#{filter[:label]}</span>" %> <% filter[:items].each do |item| if request.params["#{filter_prefixes[:main]}#{filter_prefixes[:exact]}#{filter[:field]}"] == item[:code] button_text = "<span class=\"label label-#{item[:color]}\">#{item[:name]}</span>" break end end %> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownFilterButton-<%= filter[:field] %>" data-toggle="dropdown"><%= button_text.html_safe %> <span class="caret"></span></button> <ul class="dropdown-menu dropdown-filter" aria-labelledby="dropdownFilterButton-<%= filter[:field] %>"> <% filter[:items].each do |item| %> <li role="presentation"><a role="menuitem" tabindex="-1" data-target="<%= item[:code] %>"><span class="label label-<%= item[:color]%>"><%= item[:name] %></span></a></li> <% end %> </ul> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
easy_filter-0.1.1 | app/views/easy_filter/_field_array.html.erb |
easy_filter-0.1.0 | app/views/easy_filter/_field_array.html.erb |