Sha256: 3ff95ce2aafc9334ba9d020c8d9205b46efc7673e5572a8d109c0fdabd95bd1f

Contents?: true

Size: 492 Bytes

Versions: 5

Compression:

Stored size: 492 Bytes

Contents

<%= grid(@projects_grid, show_filters: :always, hide_csv_button: true) do |g|
  g.column name: 'ID', attribute: 'id', filter: false
  g.column name: 'Project Name', attribute: 'name'
  g.column  name: 'Customer company', assoc: :customer, attribute: 'name' do |task|
    task.customer.name if task.customer
  end
  g.column  name: 'Supplier company',
      assoc: :supplier, attribute: 'name', table_alias: 'suppliers_projects' do |task|
    task.supplier.name if task.supplier
  end
end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wice_grid-7.1.4 spec/support/test_app/app/views/csv_export/_projects_grid.html.erb
wice_grid-7.1.3 spec/support/test_app/app/views/csv_export/_projects_grid.html.erb
wice_grid-7.1.2 spec/support/test_app/app/views/csv_export/_projects_grid.html.erb
wice_grid-7.1.1 spec/support/test_app/app/views/csv_export/_projects_grid.html.erb
wice_grid-7.1.0 spec/support/test_app/app/views/csv_export/_projects_grid.html.erb