hackatime/app/views/shared/_multi_select.html.erb

20 lines
798 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="filter">
<label class="filter-label">▼ <%= label %></label>
<div class="custom-select" id="<%= param %>-select" data-param="<%= param %>">
<div class="select-header-container">
<div class="select-header">Filter by <%= label.downcase %>...</div>
<button class="clear-button">×</button>
</div>
<div class="options-container">
<input type="text" class="search-input" placeholder="Search <%= label.downcase %>...">
<div class="options-list">
<% values.reject(&:blank?).each do |value| %>
<label class="option">
<input type="checkbox" value="<%= value %>" <%= 'checked' if selected&.include?(value) %>>
<span><%= value %></span>
</label>
<% end %>
</div>
</div>
</div>
</div>