Sha256: 9c0891ca20ba3b1ba4a577dd66743b259fb26f72d7272ae0858e577d2fd82614

Contents?: true

Size: 870 Bytes

Versions: 30

Compression:

Stored size: 870 Bytes

Contents

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

  menu :label => "Настройки", :priority => 3#, :if => :foo
  menu :label => "Статусы", :parent => "Настройки", :if => proc { current_admin_user.can_view_settings? }

  permit_params :title

  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.actions
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

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