Sha256: a4580b6a4f1cc89464fa90d7aea43df14b2a7afe2e90d6cc1a9c77351092b5a9
Contents?: true
Size: 1.03 KB
Versions: 7
Compression:
Stored size: 1.03 KB
Contents
<%# headmin/filters/filter/button accepts block: yes parameters: name: (string) Name of the parameter label: (string) Display name value: (string) Value of the parameter %> <% id = local_assigns.has_key?(:id) ? id : SecureRandom.hex %> <% name = local_assigns.has_key?(:name) ? name.to_sym : nil %> <% label = local_assigns.has_key?(:label) ? label : name.to_s.humanize %> <% value = local_assigns.has_key?(:value) ? value : nil %> <div class="h-filter me-1 my-1" data-controller="filter" data-filter-name="<%= name %>"> <button type="button" class="h-filter-button btn h-btn-outline-transparent" data-filter-target="button" data-popup-target="button" data-popup-id="<%= id %>" data-action="click->popup#open" > <%= "#{label}: #{value || t('.all')}" %> <span class="h-filter-remove" data-action="click->filters#remove"><%= bootstrap_icon('x-lg') %></span> </button> <%= render 'headmin/popup', id: "#{id}", data: {'filter-target': 'popup'} do %> <%= yield %> <% end %> </div>
Version data entries
7 entries across 7 versions & 1 rubygems