Sha256: d93f69e40c80441a6c113af455cd896eb68ece22efc9a1b6f7842cb6d18bd1fe

Contents?: true

Size: 705 Bytes

Versions: 4

Compression:

Stored size: 705 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
    field :pictures, :as => :uploader
    field :attachment_files, :as => :uploader, :file => true
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.2.3 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.2.2 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.2.1 spec/dummy/app/models/ab_admin/ab_admin_collection.rb
ab_admin-0.2.0 spec/dummy/app/models/ab_admin/ab_admin_collection.rb