app/admin/c80_estate/areas.rb in c80_estate-0.1.0.28 vs app/admin/c80_estate/areas.rb in c80_estate-0.1.0.29
- old
+ new
@@ -190,10 +190,10 @@
f.inputs 'Свойства' do
f.input :title
f.input :atype, :input_html => {:class => 'selectpicker', 'data-size' => "10", 'data-width' => '400px'}
f.input :property,
:input_html => {:class => 'selectpicker', 'data-size' => "10", 'data-width' => '400px'},
- :collection => C80Estate::Property.where(:assigned_person_id => current_admin_user.id).map { |p| ["#{p.title}", p.id] }
+ :collection => C80Estate::Property.where_assig_user(current_admin_user).map { |p| ["#{p.title}", p.id] }
# f.input :assigned_person,
# :input_html => {:class => 'selectpicker', 'data-size' => "10", 'data-width' => '400px'},
# :collection => AdminUser.all.map { |u| ["#{u.email}", u.id] }
# f.input :assigned_person_type, :input_html => {:value => "AdminUser"}, as: :hidden
f.input :astatuses,
\ No newline at end of file