Sha256: d10dc00360c560da2dbcaec04dcaddd4f310859394f0ce37b1d1220c8f1cdf5d

Contents?: true

Size: 731 Bytes

Versions: 23

Compression:

Stored size: 731 Bytes

Contents

ActiveAdmin.register C80Yax::Vendor, as: 'Vendor' do

  menu :label => 'Производители',
       :parent => 'x_c80_yax',
       :priority => 0

  permit_params :title,
                :short,
                :content,
                :as_is

  # controller do
  #   cache_sweeper :vendor_sweeper, :only => [:update,:destroy]
  # end

  index do
    selectable_column
    # id_column

    column :title
    column :short

    actions
  end

  form(:html => {:multipart => true}) do |f|

    f.inputs 'Свойства' do

      f.input :title
      f.input :as_is
      f.input :short, :input_html => {:style => 'height:80px', :maxlength => 250}
      f.input :content, :as => :ckeditor

    end
    f.actions
  end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
c80_yax-0.1.0.25 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.24 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.23 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.22 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.21 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.20 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.18 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.17 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.16 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.15 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.14 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.13 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.12 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.11 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.10 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.9 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.8 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.7 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.6 app/admin/c80_yax/vendors.rb
c80_yax-0.1.0.5 app/admin/c80_yax/vendors.rb