Sha256: 577cc63eb513b2e9dfd46c9b96ee45e2b9a2cc5b334c1ecdb0e6b3854dcbc2ce

Contents?: true

Size: 697 Bytes

Versions: 32

Compression:

Stored size: 697 Bytes

Contents

# единицы измерения
ActiveAdmin.register C80Estate::Uom, :as => 'Uom' do

  menu :label => "Единицы измерения", :parent => "Настройки", :if => proc { current_admin_user.can_view_settings? }

  permit_params :title, :comment, :is_number

  config.sort_order = 'title_desc'

  before_filter :skip_sidebar!, :only => :index
  # filter :title

  index do
    # selectable_column
    # id_column

    column :title
    column :comment
    column :is_number

    # actions
  end

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

    f.inputs "Свойства" do
      f.input :title
      f.input :comment
      f.input :is_number
    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/uoms.rb
c80_estate-0.1.0.38 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.37 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.36 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.35 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.34 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.33 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.32 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.31 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.30 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.29 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.28 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.27 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.26 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.25 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.24 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.23 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.22 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.21 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.20 app/admin/c80_estate/uoms.rb