Sha256: 5476647297fe7dd2ac02ff5bdfca89f13e970a935fb701f72b2da70220de3ac2
Contents?: true
Size: 1.65 KB
Versions: 20
Compression:
Stored size: 1.65 KB
Contents
<% filter_name = zuo_parameterize(table_filter["name"]) %> <% prompt = table_filter.fetch("prompt", "") %> <div class="table-filter zuo-flex zuo-flex-center"> <% if table_filter["type"] == "checkbox" %> <anj-dropdown> <anj-button slot="dropdown-toggle" context="secondary"><%= prompt %><anj-icon slot="end">arrow_drop_down</anj-icon></anj-button> <div id="zc_<%= table_name %>_<%= filter_name %>" class="m-3"> <% table_filter["values"].each do |type| %> <div class="checkbox"> <input type="checkbox" name='<%= filter_name %>[]' value="<%= type %>"> <label for="<%= filter_name %>"><%= type %></label> </div> <% end %> </div> </anj-dropdown> <% elsif ["select", "group-select"].include?(table_filter["type"]) %> <% option_tags = table_filter["type"] == "select" ? options_for_select(table_filter["values"]) : grouped_options_for_select(table_filter["values"]) %> <%= select_tag(filter_name, option_tags, options = {:prompt => prompt}) %> <% content_for :scripts do %> $('#<%= table_name %>_content select[name="<%= filter_name %>"]').select2({ minimumResultsForSearch: <%= table_filter.key?("searchable") && table_filter["searchable"] ? 0 : -1 %>, width: '<%= table_filter.fetch('width', '100%') %>', placeholder: '<%= table_filter.fetch('placeholder', '') %>', allowClear: <%= table_filter.fetch('allow-clear', true) %> }); <% end %> <% elsif table_filter["type"] == "boolean" %> <input type="checkbox" value="true" name="<%= filter_name %>"> <label for="<%= filter_name %>"><%= table_filter["name"] %></label> <% end %> </div>
Version data entries
20 entries across 20 versions & 1 rubygems