Sha256: 1f6ca3dd8d684f8c66c6b8c30d008656f977d934a0684003b1a5af6389d6d91e

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

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

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

  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

1 entries across 1 versions & 1 rubygems

Version Path
c80_estate-0.1.0 app/admin/c80_estate/uoms.rb