Sha256: d5b1bd87f9157aecee98eb222027b246c67d51e8808c00c1814e74dbb90660bd
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
<%= form_with model: grid, html: {class: 'datagrid-form'}, scope: grid.param_name, method: :get, **options do |f| %> <% grid.filters.each do |filter| %> <div class="datagrid-filter" data-filter="<%= filter.name %>" data-type="<%= filter.type %>"> <%= f.datagrid_label filter %> <%= f.datagrid_filter filter %> </div> <% end %> <div class="datagrid-actions"> <%= f.submit I18n.t("datagrid.form.search"), class: "datagrid-submit" %> <%= link_to I18n.t('datagrid.form.reset'), url_for(grid.to_param => {}), class: "datagrid-reset" %> </div> <% end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datagrid-2.0.0 | app/views/datagrid/_form.html.erb |
datagrid-2.0.0.pre.alpha | app/views/datagrid/_form.html.erb |