Sha256: f5a066e3fddbbe013b4bf6af5c3f74b8968fbc35c27d088382b133840634bc93
Contents?: true
Size: 959 Bytes
Versions: 6
Compression:
Stored size: 959 Bytes
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 : Time.now.utc.to_i %> <% name = local_assigns.has_key?(:name) ? name : nil %> <% label = local_assigns.has_key?(:label) ? label : nil %> <% value = local_assigns.has_key?(:value) ? value : nil %> <div class="h-filter me-1 my-1" data-filter-name="<%= name %>"> <button type="button" class="h-filter-button btn h-btn-outline-transparent" 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}" do %> <%= yield if block_given? %> <% end %> </div>
Version data entries
6 entries across 6 versions & 1 rubygems