Sha256: 1d17311232ce4f7436881dbe0db4d5749a021b05248253023ddee44ee18bf56a

Contents?: true

Size: 767 Bytes

Versions: 4

Compression:

Stored size: 767 Bytes

Contents

<% if @resource_service.filter_map.present? %>
  <div id="filters" class="panel panel-default">
    <div class="panel-body">
      <%= filter_form do |f| %>
        <%= f.hidden_field :scope, value: params[:scope] %>
        <%= f.hidden_field :order, value: params[:order] %>

        <% @resource_service.filter_map.each do |name, options| %>
          <%= partial_override "filters/#{name}", f: f, name: name, options: options do %>
            <%= f.filter_field(name, options) %>
          <% end %>
        <% end %>

        <div class="form-group pull-right">
          <label class="control-label">&nbsp;</label><br>
          <%= f.apply_filters_button %>
          <%= f.clear_filters_button %>
        </div>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
godmin-0.12.0 app/views/godmin/resource/_filters.html.erb
godmin-0.11.2 app/views/godmin/resource/_filters.html.erb
godmin-0.11.1 app/views/godmin/resource/_filters.html.erb
godmin-0.11.0 app/views/godmin/resource/_filters.html.erb