Sha256: 95b393757f1353833572d345d34bcfbb4311dbe1d14e1cd35c07415624b38c2d

Contents?: true

Size: 618 Bytes

Versions: 20

Compression:

Stored size: 618 Bytes

Contents

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

  menu :label => proc{ I18n.t('c80_yax.active_admin.menu.uom')},
       :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

20 entries across 20 versions & 1 rubygems

Version Path
c80_yax-0.1.0.25 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.24 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.23 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.22 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.21 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.20 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.18 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.17 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.16 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.15 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.14 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.13 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.12 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.11 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.10 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.9 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.8 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.7 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.6 app/admin/c80_yax/uoms.rb
c80_yax-0.1.0.5 app/admin/c80_yax/uoms.rb