Sha256: 09ffdfefb8616f30cdbfcc9e9585f4c2e71bf6da85548fbad587ebf839506047

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

page.grid do |grid|
  grid.id "grid-<%= plural_name %>"
  grid.title "List all <%= model_instance.class.human_name %>"
  grid.base_path "/backend/<%= plural_name %>"
  grid.forgery_protection_token request_forgery_protection_token
  grid.authenticity_token form_authenticity_token
  grid.tbar  :default
  grid.sm :checkbox
  grid.store do |store|
    store.url "/backend/<%= plural_name %>.json"
    store.fields @column_store.store_fields
  end
  grid.columns do |columns|
    columns.fields @column_store.column_fields
  end
  grid.bbar  :store => grid.get_store, :pageSize => params[:limit], :displayInfo => true
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lipsiadmin-3.4.1 lipsiadmin_generators/backend_page/templates/view_index.rjs.erb
lipsiadmin-3.4.2 lipsiadmin_generators/backend_page/templates/view_index.rjs.erb
lipsiadmin-4.0.0 lipsiadmin_generators/backend_page/templates/view_index.rjs.erb