def rent
      @page = Pwb::Page.find_by_slug "rent"
      @page_title = @current_agency.company_name
      # @content_to_show = []
      if @page.present?
        @page_title = @page.page_title + ' - ' + @current_agency.company_name
        # TODO: - allow addition of custom content
        # @page.ordered_visible_page_contents.each do |page_content|
        #   @content_to_show.push page_content.content.raw
        # end
      end
      # @page_title = I18n.t("searchForProperties")
      # in erb template for this action, I have js that will render search_results template
      # for properties - like search_ajax action does
      @operation_type = "for_rent"
      # above used to decide if link to result should be to buy or rent path

      @properties = Prop.visible.for_rent.limit 45
      # .order('price_rental_monthly_current_cents ASC').limit 35

      @prices_from_collection = @current_website.rent_price_options_from
      @prices_till_collection = @current_website.rent_price_options_till
      # @prices_collection = %W(#{''}
      #                         150 250 500 1,000 1,500 2,000 2,500 3,000 4,000 5,000 10,000)

      set_common_search_inputs
      set_select_picker_texts
      apply_search_filter filtering_params(params)
      set_map_markers
      @search_defaults = params[:search].present? ? params[:search] : {}

      js 'Main/Search#sort' # trigger client-side paloma script
      render "/pwb/search/rent"
    end
def rent
      @page = Pwb::Page.find_by_slug "rent"
      @page_title = @current_agency.company_name
      # @content_to_show = []
      if @page.present?
        @page_title = @page.page_title + ' - ' + @current_agency.company_name
        # TODO: - allow addition of custom content
        # @page.ordered_visible_page_contents.each do |page_content|
        #   @content_to_show.push page_content.content.raw
        # end
      end
      # @page_title = I18n.t("searchForProperties")
      # in erb template for this action, I have js that will render search_results template
      # for properties - like search_ajax action does
      @operation_type = "for_rent"
      # above used to decide if link to result should be to buy or rent path

      @properties = Prop.visible.for_rent.limit 45
      # .order('price_rental_monthly_current_cents ASC').limit 35

      @prices_from_collection = @current_website.rent_price_options_from
      @prices_till_collection = @current_website.rent_price_options_till
      # @prices_collection = %W(#{''}
      #                         150 250 500 1,000 1,500 2,000 2,500 3,000 4,000 5,000 10,000)

      set_common_search_inputs
      set_select_picker_texts
      apply_search_filter filtering_params(params)
      set_map_markers
      @search_defaults = params[:search].present? ? params[:search] : {}

      js 'Main/Search#sort' # trigger client-side paloma script
      render "/pwb/search/rent"
    end
TODO: - avoid duplication b/n rent and buy