Sha256: 4caf903f695ec371cccdf9dbec05c0fbc591ccb0ce819232839936e8b51572b7

Contents?: true

Size: 923 Bytes

Versions: 14

Compression:

Stored size: 923 Bytes

Contents

<div id="filters" class="panel panel-default">
  <div class="panel-body">
    <%= form_tag params, method: :get, class: "form-inline" do %>

      <%= hidden_field_tag :scope, nil, value: params[:scope] %>
      <%= hidden_field_tag :order, nil, value: params[:order] %>

      <% filter_map.each do |name, options| %>
        <div class="filter form-group">
          <%= label_tag name, translate_scoped("filters.labels.#{name}", default: name.to_s.titleize) %><br>
          <%= filter_input_tag name, options %>
        </div>
      <% end %>

      <div class="pull-right">
        <label>&nbsp;</label><br>
        <%= button_tag translate_scoped("filters.buttons.apply"), class: "btn btn-default" %>
        <%= link_to translate_scoped("filters.buttons.clear"), polymorphic_path(@resource_class, scope: params[:scope], order: params[:order]), class: "btn btn-default" %>
      </div>

    <% end %>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
godmin-0.10.3 app/views/godmin/resource/_filters.html.erb
godmin-0.10.2 app/views/godmin/resource/_filters.html.erb
godmin-0.10.1 app/views/godmin/resource/_filters.html.erb
godmin-0.10.0 app/views/godmin/resource/_filters.html.erb
godmin-0.9.9 app/views/godmin/resource/_filters.html.erb
godmin-0.9.8 app/views/godmin/resource/_filters.html.erb
godmin-0.9.7 app/views/godmin/resource/_filters.html.erb
godmin-0.9.6 app/views/godmin/resource/_filters.html.erb
godmin-0.9.5 app/views/godmin/resource/_filters.html.erb
godmin-0.9.4 app/views/godmin/resource/_filters.html.erb
godmin-0.9.3 app/views/godmin/resource/_filters.html.erb
godmin-0.9.2 app/views/godmin/resource/_filters.html.erb
godmin-0.9.1 app/views/godmin/resource/_filters.html.erb
godmin-0.9.0 app/views/godmin/resource/_filters.html.erb