Sha256: 6a9b2a7caf6bc76cf8d43ab3363684b135d91df4cb7f4ee9cc4c9f1e62235d02

Contents?: true

Size: 634 Bytes

Versions: 20

Compression:

Stored size: 634 Bytes

Contents

<%= form_for grid, options do |f| -%>
  <% grid.filters.each do |filter| %>
    <div class="datagrid-filter filter">
      <%= f.datagrid_label filter %>
      <%= f.datagrid_filter filter %>
    </div>
  <% end %>
  <div class="datagrid-actions">
    <%= f.submit I18n.t("datagrid.form.search").html_safe, :class => "datagrid-submit" %>
    <%# https://github.com/rails/rails/pull/14949 -%>
    <% empty_parameter = Rails.version >= "4.1.0" && Rails.version <= '4.1.2' ? nil : {}-%>
    <%= link_to I18n.t('datagrid.form.reset').html_safe, url_for(grid.to_param => empty_parameter), :class => "datagrid-reset" %>
  </div>
<% end -%>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
datagrid-1.7.0 app/views/datagrid/_form.html.erb
datagrid-1.6.3 app/views/datagrid/_form.html.erb
datagrid-1.6.2 app/views/datagrid/_form.html.erb
datagrid-1.6.1 app/views/datagrid/_form.html.erb
datagrid-1.6.0 app/views/datagrid/_form.html.erb
datagrid-1.5.9 app/views/datagrid/_form.html.erb
datagrid-1.5.8 app/views/datagrid/_form.html.erb
datagrid-1.5.7 app/views/datagrid/_form.html.erb
datagrid-1.5.6 app/views/datagrid/_form.html.erb
datagrid-1.3.7 app/views/datagrid/_form.html.erb
datagrid-1.3.6 app/views/datagrid/_form.html.erb
datagrid-1.3.5 app/views/datagrid/_form.html.erb
datagrid-1.3.4 app/views/datagrid/_form.html.erb
datagrid-1.3.3 app/views/datagrid/_form.html.erb
datagrid-1.3.2 app/views/datagrid/_form.html.erb
datagrid-1.3.1 app/views/datagrid/_form.html.erb
datagrid-1.3.0 app/views/datagrid/_form.html.erb
datagrid-1.2.3 app/views/datagrid/_form.html.erb
datagrid-1.2.2 app/views/datagrid/_form.html.erb
datagrid-1.2.1 app/views/datagrid/_form.html.erb