Sha256: c2b6f9556346c6d26e2ebaaf33bd949c9b6b2c3feaf27b57720af0dae40f5239

Contents?: true

Size: 642 Bytes

Versions: 7

Compression:

Stored size: 642 Bytes

Contents

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

  menu :label => "Единицы измерения", :parent => "Настройки"

  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

7 entries across 7 versions & 1 rubygems

Version Path
c80_estate-0.1.0.7 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.6 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.5 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.4 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.3 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.2 app/admin/c80_estate/uoms.rb
c80_estate-0.1.0.1 app/admin/c80_estate/uoms.rb