Sha256: 8b76f867e08f88eb0dd0df2d98d22f2622be820491f11d6ebf44a1296290d7a5

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

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

  menu :label => 'Единицы измерения',
       :parent => 'x_c80_yax',
       :priority => 7

  permit_params :title, :comment, :is_number

  config.sort_order = 'title_desc'

  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

4 entries across 4 versions & 1 rubygems

Version Path
c80_yax-0.1.0.4 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.3 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.2 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.1 app/admin/c80_yax/uoms.rb