app/admin/c80_estate/areas.rb in c80_estate-0.1.0.6 vs app/admin/c80_estate/areas.rb in c80_estate-0.1.0.7

- old
+ new

@@ -27,16 +27,40 @@ :label => 'Объект недвижимости', :as => :select, :collection => -> {C80Estate::Property.all.map { |p| ["#{p.title}", p.id]}}, :input_html => { :class => 'selectpicker', 'data-size' => "10", 'data-width' => '100%'} + # filter :item_prop_square_val_in, + # :as => :string, + # :label => 'Площадь (м.кв.)' + filter :item_prop_square_val_in, :as => :string, - :label => 'Площадь (м.кв.)' + :label => 'Площадь (м.кв.)', + :input_html => { data: { + provide: 'slider', + slider_ticks: C80Estate::ItemProp.all_uniq_values(9).to_json, #'[0, 1, 2, 3]', + slider_labels: C80Estate::ItemProp.all_uniq_values(9).to_json, #'["none", short", "medium","long"]', + slider_min: C80Estate::ItemProp.all_uniq_values(9).last, + slider_max: C80Estate::ItemProp.all_uniq_values(9).first, + slider_step: 1, + slider_value: 0, + slider_range: true + }} filter :item_prop_price_val_in, :as => :string, - :label => 'Цена' + :label => 'Цена (руб/м.кв в месяц)', + :input_html => { data: { + provide: 'slider', + slider_ticks: C80Estate::ItemProp.all_uniq_values(1).to_json, #'[0, 1, 2, 3]', + slider_labels: C80Estate::ItemProp.all_uniq_values(1).to_json, #'["none", short", "medium","long"]', + slider_min: C80Estate::ItemProp.all_uniq_values(1).last, + slider_max: C80Estate::ItemProp.all_uniq_values(1).first, + slider_step: 1, + slider_value: 0, + slider_range: true + }} filter :item_prop_oenter_in, :as => :select, :collection => [['Есть',11],['Нет',10]], :label => 'Отдельный вход с улицы', \ No newline at end of file