Sha256: c25fc085b8909126a8538ad485263451317bf70e95f17fdedf5bf94c96be686a

Contents?: true

Size: 615 Bytes

Versions: 12

Compression:

Stored size: 615 Bytes

Contents

.well
  %h2= current_page_title
  %p
    In addition to including
    %a{href:  action_column_index_path}a grid into a form
    it is possible to dump the state of filters into another form as a set of hidden parameters with helper
    %code dump_filter_parameters_as_hidden_fields(grid_object)
    \.

= show_code

= form_tag(integration_with_forms_path, method:  :get) do
  = dump_filter_parameters_as_hidden_fields(@tasks_grid)

  %p= select_tag 'archived', options_for_select([['View active tasks', 0], ['View archived tasks', 1]], @archived ? 1 : 0), class: 'reload-on-change form-control'


= render   'grid'

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
wice_grid-6.1.3 spec/support/test_app/app/views/integration_with_forms/index.html.haml
wice_grid-6.1.2 spec/support/test_app/app/views/integration_with_forms/index.html.haml
wice_grid-6.1.1 spec/support/test_app/app/views/integration_with_forms/index.html.haml
wice_grid-6.1.0 spec/support/test_app/app/views/integration_with_forms/index.html.haml
pwice_grid-7.0.0 spec/support/test_app/app/views/integration_with_forms/index.html.haml
pwice_grid-6.1.2 spec/support/test_app/app/views/integration_with_forms/index.html.haml
pwice_grid-6.1.1 spec/support/test_app/app/views/integration_with_forms/index.html.haml
pwice_grid-6.1.0 spec/support/test_app/app/views/integration_with_forms/index.html.haml
pwice_grid-5.0.2 spec/support/test_app/app/views/integration_with_forms/index.html.haml
pwice_grid-5.0.1 spec/support/test_app/app/views/integration_with_forms/index.html.haml
pwice_grid-5.0.0 spec/support/test_app/app/views/integration_with_forms/index.html.haml
wice_grid-4.1.0 spec/support/test_app/app/views/integration_with_forms/index.html.haml