Sha256: 0ad6e7aef6b2ce0d7e1cc75f5b729192c8416801baa6af3bd0cf98032761ca47

Contents?: true

Size: 696 Bytes

Versions: 7

Compression:

Stored size: 696 Bytes

Contents

class AbAdminCollection < AbAdmin::AbstractResource

  table do
    field :name, sortable: false
    field :description, sortable: false
    field :is_visible
    field :products_count
    field :created_at
  end

  search do
    field :name
    field :description
    field :id
    field :is_visible
    field :products_count
    field :created_at
    field :updated_at
  end

  form do
    group :base do
      field :is_visible
      field :products_count
    end
    locale_tabs do
      field :name
      field :description, as: :editor
    end
    field :picture, as: :uploader, crop: true
    field :pictures, as: :uploader
    field :attachment_files, as: :uploader, file: true
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.3.6 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.3.5 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.3.4 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.3.3 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.3.2 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.3.1 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.3.0 spec/dummy/app/models/ab_admin/ab_admin_collection.rb