Sha256: 0ced2c5a886ef44a130de73059eccf04f73027e283b41c776e1e6f5538839d7b
Contents?: true
Size: 953 Bytes
Versions: 1
Compression:
Stored size: 953 Bytes
Contents
ActiveAdmin.register C80Estate::Property, as: 'Property' do # scope_to :current_admin_user, association_method: :sites_list menu :label => "Объекты недвижимости" permit_params :title, :desc, :address, :latitude, :longitude, :atype_id, :owner_id, :owner_type config.sort_order = 'id_asc' index do column :title column :atype do |prop| prop.atype.title end actions end form(:html => {:multipart => true}) do |f| f.inputs 'Свойства' do f.input :title f.input :atype, :input_html => { :class => 'selectpicker', 'data-size' => "5", 'data-width' => '300px'} f.input :owner_id, :input_html => { :value => current_admin_user.id }, as: :hidden f.input :owner_type, :input_html => { :value => "AdminUser" }, as: :hidden 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/properties.rb |