Sha256: 313bb083b28bda8313d60f640c21fc011948638e726eac375e93a9b9b411978d

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

<%= form_tag(request.path, method: 'get', class: 'form-inline') do %>
  <div class='form-group'>
    <%= link_to(t('kadmin.components.finder.create'), url_for(action: :new), class: 'btn btn-primary') %>
    <% finder.filters.each do |name, filter| %>
      <%= text_field_tag("filter_#{name}", filter&.value, class: 'form-control', placeholder: "Filter by #{name}...") %>
    <% end %>
    <%= submit_tag(t('kadmin.components.finder.filter'), class: 'btn btn-default form-control') %>
    <%= link_to(t('kadmin.components.finder.clear'), request.path, class: 'btn btn-danger form-control') %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kadmin-0.3.1 app/views/kadmin/components/finder/_form.erb
kadmin-0.3.0 app/views/kadmin/components/finder/_form.erb
kadmin-0.2.8 app/views/kadmin/components/finder/_form.erb
kadmin-0.2.7 app/views/kadmin/components/finder/_form.erb
kadmin-0.2.6 app/views/kadmin/components/finder/_form.erb