Sha256: 10566ca82cb8338a4cca93a662f20e2543c7ae665601c4684ee354a31888849d

Contents?: true

Size: 1.07 KB

Versions: 32

Compression:

Stored size: 1.07 KB

Contents

# ПОДкатегории строительных материалов
ActiveAdmin.register C80Estate::Atype, :as => 'Atype' do

  menu :label => "Типы", :parent => "Настройки", :if => proc { current_admin_user.can_view_settings? }

  permit_params :title,
                :slug,
                :prop_name_ids => []

  config.sort_order = 'id_asc'

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

  before_filter :skip_sidebar!, :only => :index

  # filter :title

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

  index do
    selectable_column
    id_column
    column :title
    actions
  end

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

    f.inputs "Свойства" do
      f.input :title
    end

    f.inputs "Характеристики, которыми описываются объекты недвижимости и площади этого типа", :class => 'collapsed' do
      f.input :prop_names, :as => :check_boxes
    end

    f.actions
  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
c80_estate-0.1.0.39 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.38 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.37 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.36 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.35 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.34 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.33 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.32 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.31 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.30 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.29 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.28 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.27 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.26 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.25 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.24 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.23 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.22 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.21 app/admin/c80_estate/atypes.rb
c80_estate-0.1.0.20 app/admin/c80_estate/atypes.rb