Sha256: 12f4a61d30e75632b2bfffda6ae91c70b1f8ef9c634f2ae769c4fc3d24a37e17

Contents?: true

Size: 679 Bytes

Versions: 24

Compression:

Stored size: 679 Bytes

Contents

<%= define_grid(@tasks_grid, hide_submit_button: true, hide_reset_button: true) do |g|

  g.column name:  'ID', attribute: 'id', detach_with_id: :id_filter

  g.column name:  'Title', attribute: 'title', detach_with_id: :title_filter

  g.column  name:  'Description', attribute: 'description', detach_with_id: :description_filter

  g.column  name:  'Archived', attribute: 'archived', detach_with_id: :archived_filter do |task|
    task.archived? ? 'Yes' : 'No'
  end


  g.column name:  'Due Date', attribute: 'due_date', detach_with_id: :due_date do |task|
    task.due_date.to_s(:short)
  end


  g.column   do |task|
    link_to('Edit', edit_task_path(task))
  end

end -%>

Version data entries

24 entries across 12 versions & 2 rubygems

Version Path
pwice_grid-5.0.0 spec/support/test_app/app/views/detached_filters/_grid.html.erb
pwice_grid-5.0.0 spec/support/test_app/app/views/csv_and_detached_filters/_grid.html.erb
wice_grid-4.1.0 spec/support/test_app/app/views/csv_and_detached_filters/_grid.html.erb
wice_grid-4.1.0 spec/support/test_app/app/views/detached_filters/_grid.html.erb