- @@url = request.original_url - @@contact_type = "rental" - @pag_title = t('title_index_accommodations') - @pag_description = t('description_index_accommodations') - @pag_keywords = t('keywords_index_accommodations') - @principal_bg = true - @locale = I18n.locale.to_s - @li = '· ' - @og_title = t('title_index_accommodations') - @og_type = t('real_estate') - @og_url = request.original_url - @og_image = "/assets/web/the-grand-selection-logo-og.jpg" - @og_description = t('description_index_accommodations') - @hreflang_en = "https://#{request.host}"+w_accommodations_en_path - @hreflang_es = "https://#{request.host}"+w_accommodations_es_path - @hreflang_ru = "https://#{request.host}"+(CGI.unescape(w_accommodations_ru_path)) - @hreflang_fr = "https://#{request.host}"+w_accommodations_fr_path #w_accommodations_jquery_start .bg-searcher .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.bg-searcher-transparency -if I18n.locale.to_s == 'en' .h2-welcome-text = "An unforgettable stay awaits" -if I18n.locale.to_s == 'es' .h2-welcome-text = "Una estancia inolvidable que les espera" -if I18n.locale.to_s == 'ru' .h2-welcome-text-ru = "Вас ожидает незабываемое проживание на курорте" -if I18n.locale.to_s == 'fr' .h2-welcome-text = "Un séjour inoubliable vous attend" .ex-search.back-search.font-search = form_tag w_accommodations_path, :method => 'get', :id => "form-search-in", :class => '' do .row .col-lg-2.col-md-2 .col-lg-8.col-md-8.col-sm-12.col-xs-12.ex-search .col-lg-2.col-md-2 .row .col-lg-3.col-md-3 .col-lg-2.col-md-2.col-sm-3.col-xs-6.ex-search .form-request-m = select_tag "accommodation", options_for_select([[t('apartment')+" ("+@allapartments.count.to_s+")","apartment"],[t('penthouse')+" ("+@allpenthouse.count.to_s+")","penthouse"],[t('villa')+" ("+@allvilla.count.to_s+")","villa"],[t('chalet')+" ("+@allchalet.count.to_s+")","chalet"],[t('room')+" ("+@allroom.count.to_s+")","room"],[t('local')+" ("+@alllocal.count.to_s+")","local"]], params[:accommodation]), :class => 'form-control padding-form', include_blank: t('all')+" ("+@accommodationsall.count.to_s+")" .col-lg-2.col-md-2.col-sm-3.col-xs-6.ex-search .form-request-m = select_tag "bedrooms", options_for_select([1,2,3,4,5,6,7,8,9,['10+',10]], params[:bedrooms]), :class => 'form-control padding-form', include_blank: t('bedrooms') .col-lg-2.col-md-2.col-sm-3.col-xs-6.ex-search .form-request-m = select_tag "people", options_for_select([1,2,3,4,5,6,7,8,9,['10+',10]], params[:people]), :class => 'form-control padding-form', include_blank: t('people') .row .col-lg-2.col-md-2 - @urlpath = request.path.to_s - @url_locale = @urlpath.split('/') - @urllast = request.path.split('/').last.to_s -if @locale == 'en' .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = collection_select(:country, :id, @countriessm, :id, :en, {:include_blank => t('country')+': '}, :name => 'country', class: "form-control padding-form") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :province, :id, Country.order(:en), :provinces, :en, :id, :en, {prompt: t('city')+': '}, :name => 'province', class: "form-control padding-form s1") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :region, :id, Province.order(:en), :regions, :en, :id, :en, {prompt: t('area')+': '}, :name => 'region', class: "form-control padding-form s2") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :location, :id, Region.order(:en), :locations, :en, :id, :en, {prompt: t('location')+': '}, :name => 'location', class: "form-control padding-form s3") -if @locale == 'es' .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = collection_select(:country, :id, @countriessm, :id, :es, {:include_blank => t('country')+': '}, :name => 'country', class: "form-control padding-form") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :province, :id, Country.order(:es), :provinces, :es, :id, :es, {prompt: t('city')+': '}, :name => 'province', class: "form-control padding-form s1") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :region, :id, Province.order(:es), :regions, :es, :id, :es, {prompt: t('area')+': '}, :name => 'region', class: "form-control padding-form s2") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :location, :id, Region.order(:es), :locations, :es, :id, :es, {prompt: t('location')+': '}, :name => 'location', class: "form-control padding-form s3") -if @locale == 'ru' .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = collection_select(:country, :id, @countriessm, :id, :ru, {:include_blank => t('country')+': '}, :name => 'country', class: "form-control padding-form") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :province, :id, Country.order(:ru), :provinces, :ru, :id, :ru, {prompt: t('city')+': '}, :name => 'province', class: "form-control padding-form s1") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :region, :id, Province.order(:ru), :regions, :ru, :id, :ru, {prompt: t('area')+': '}, :name => 'region', class: "form-control padding-form s2") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :location, :id, Region.order(:ru), :locations, :ru, :id, :ru, {prompt: t('location')+': '}, :name => 'location', class: "form-control padding-form s3") -if @locale == 'fr' .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = collection_select(:country, :id, @countriessm, :id, :fr, {:include_blank => t('country')+': '}, :name => 'country', class: "form-control padding-form") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :province, :id, Country.order(:fr), :provinces, :fr, :id, :fr, {prompt: t('city')+': '}, :name => 'province', class: "form-control padding-form s1") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :region, :id, Province.order(:fr), :regions, :fr, :id, :fr, {prompt: t('area')+': '}, :name => 'region', class: "form-control padding-form s2") .col-lg-2.col-md-2.col-sm-3.col-xs-12.ex-search .form-request-m = grouped_collection_select( :location, :id, Region.order(:fr), :locations, :fr, :id, :fr, {prompt: t('location')+': '}, :name => 'location', class: "form-control padding-form s3") .row .col-lg-4.col-md-4.col-sm-3 .col-lg-2.col-md-2.col-sm-3.col-xs-12.bloc-availability-accommodations .dates-search-accommodation-txt = t('check_in') %input#datefrom{name: "datefrom", type: "date", min: DateTime.current.to_date, value: params[:datefrom], :class => 'dates-search-form'} .col-lg-2.col-md-2.col-sm-3.col-xs-12.bloc-availability-accommodations .dates-search-accommodation-txt = t('check_out') %input#dateto{name: "dateto", type: "date", min: DateTime.current.to_date, value: params[:dateto], :class => 'dates-search-form'} .col-lg-12.col-md-12.col-sm-12.col-xs-12 .dates-search-accommodation-txt-desc.center = "*" + t('accommodations_availability_search') .row .col-lg-3.col-md-4.col-sm-3 .col-lg-6.col-md-4.col-sm-6.col-xs-12.ex-search %button.btn.btn-block.btn-primary-search.btn-success.search-btn-x{:type => "submit", :class => 'padding-form', :title => t('search')} = t('search') .col-lg-3.col-md-4.col-sm-3 .col-lg-12.col-md-12.col-sm-12.col-xs-12 -if I18n.locale.to_s == 'en' .text-sercher-bottom = "Because our guests seek a unique experience that reflects their personal lifestyle and preferences" -if I18n.locale.to_s == 'es' .text-sercher-bottom = "Porque nuestros huéspedes buscan una experiencia única que refleje su estilo de vida personal y sus preferencias" -if I18n.locale.to_s == 'ru' .text-sercher-bottom-ru = "Потому что наши гости ищут уникальный отдых, который отражает их личный образ жизни и предпочтения" -if I18n.locale.to_s == 'fr' .text-sercher-bottom = "Parce que nos clients recherchent une expérience unique qui reflète leur style de vie et leurs préférences" #w_accommodations_jquery_start_2 .container-fluid .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %br .center.load-w-load %p = t('please_wait') %svg.svg{:height => "200", :width => "200"} %circle{:cx => "100", :cy => "100", :r => "50"} - @num_property_foto = 0 - @properties_dates_count = 0 - @accommodations.each do |w_accommodations| - @availability_status = 0 - w_accommodations.accommodationprices.each do |a_prices| - @price = a_prices.price - @datefrom_a_prices = a_prices.datefrom - @dateto_a_prices = a_prices.dateto - @available = a_prices.available - @not_available = a_prices.not_available - if params[:datefrom].present? or params[:dateto].present? - if params[:datefrom].present? - @datefrom_availabile = params[:datefrom] - else - @datefrom_availabile = DateTime.current.to_date - if params[:dateto].present? - @dateto_availabile = params[:dateto] - else - @dateto_availabile = params[:datefrom].to_date + 6.day - if @datefrom_a_prices != nil and @dateto_a_prices != nil - if @not_available == true - if @datefrom_availabile.to_date.between?(@datefrom_a_prices, @dateto_a_prices) or @dateto_availabile.to_date.between?(@datefrom_a_prices, @dateto_a_prices) - @availability_status = @availability_status + 1 - if @datefrom_a_prices.between?(@datefrom_availabile.to_date, @dateto_availabile.to_date) or @dateto_a_prices.between?(@datefrom_availabile.to_date, @dateto_availabile.to_date) - @availability_status = @availability_status + 1 - @location_a = '' - @region_a = '' - @province_a = '' - @country_a = '' -if @locale == 'en' - @title_locale = w_accommodations.title_en -if @locale == 'es' - @title_locale = w_accommodations.title_es -if @locale == 'ru' - @title_locale = w_accommodations.title_ru -if @locale == 'fr' - @title_locale = w_accommodations.title_fr - @countries.each do |countries| - if w_accommodations.country_id == countries.id - @country_u = countries -if @locale == 'en' - @country_a = countries.en -if @locale == 'es' - @country_a = countries.es -if @locale == 'ru' - @country_a = countries.ru -if @locale == 'fr' - @country_a = countries.fr - @provinces.each do |provinces| - if w_accommodations.province_id == provinces.id - @province_u = provinces -if @locale == 'en' - @province_a = provinces.en -if @locale == 'es' - @province_a = provinces.es -if @locale == 'ru' - @province_a = provinces.ru -if @locale == 'fr' - @province_a = provinces.fr - @regions.each do |regions| - if w_accommodations.region_id == regions.id - @region_u = regions -if @locale == 'en' - @region_a = + regions.en -if @locale == 'es' - @region_a = + regions.es -if @locale == 'ru' - @region_a = + regions.ru -if @locale == 'fr' - @region_a = + regions.fr - @locations.each do |locations| - if w_accommodations.location_id == locations.id - @location_u = locations -if @locale == 'en' - @location_a = + locations.en -if @locale == 'es' - @location_a = + locations.es -if @locale == 'ru' - @location_a = + locations.ru -if @locale == 'fr' - @location_a = + locations.fr - @direction = @province_a + @region_a + @location_a + '.' - unless @availability_status >= 1 - @properties_dates_count = @properties_dates_count + 1 .col-mod-property.mobile-fix.load-w .col-lg-4.col-md-4.col-sm-6.col-xs-12 .gallery_product.col-md-12.col-xs-12 - if w_accommodations.ImagesAccommodations.exists? - @num_property_foto = @num_property_foto + 1 #p.property.carousel-fade.carousel.slide{"data-ride" => "carousel"} //Wrapper for slides .carousel-inner.carousel-zoom - @cont_img = 0 - w_accommodations.ImagesAccommodations.order("position").each do |img| - if @cont_img == 0 - @cont_img = @cont_img +1 .item.active -if w_accommodations.pag_accommodation == 'apartment' %a{href: w_accommodations_apartment_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'villa' %a{href: w_accommodations_villa_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'penthouse' %a{href: w_accommodations_penthouse_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'chalet' %a{href: w_accommodations_chalet_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'land' %a{href: w_accommodations_land_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'commercial property' %a{href: w_accommodations_local_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'townhouse' %a{href: w_accommodations_townhouse_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'investment project' %a{href: w_accommodations_investment_project_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'room' %a{href: w_accommodations_room_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) - else .item -if w_accommodations.pag_accommodation == 'apartment' %a{href: w_accommodations_apartment_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} -if w_accommodations.pag_accommodation == 'villa' %a{href: w_accommodations_villa_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} -if w_accommodations.pag_accommodation == 'penthouse' %a{href: w_accommodations_penthouse_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} -if w_accommodations.pag_accommodation == 'chalet' %a{href: w_accommodations_chalet_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} -if w_accommodations.pag_accommodation == 'land' %a{href: w_accommodations_land_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} -if w_accommodations.pag_accommodation == 'commercial property' %a{href: w_accommodations_local_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} -if w_accommodations.pag_accommodation == 'townhouse' %a{href: w_accommodations_townhouse_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} -if w_accommodations.pag_accommodation == 'investment project' %a{href: w_accommodations_investment_project_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} -if w_accommodations.pag_accommodation == 'room' %a{href: w_accommodations_room_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.url, :alt => @title_locale, class: 'img-max'} //Controls %a.left.align-vertical-center.carousel-control{"data-slide" => "prev", :href => "#p"+@num_property_foto.to_s, :role => "button"} %span.fas.fa-chevron-left %a.right.align-vertical-center.carousel-control{"data-slide" => "next", :href => "#p"+@num_property_foto.to_s, :role => "button"} %span.fas.fa-chevron-right - else .item.active -if w_accommodations.pag_accommodation == 'apartment' %a{href: w_accommodations_apartment_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'villa' %a{href: w_accommodations_villa_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'penthouse' %a{href: w_accommodations_penthouse_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'chalet' %a{href: w_accommodations_chalet_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'land' %a{href: w_accommodations_land_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'commercial property' %a{href: w_accommodations_local_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'townhouse' %a{href: w_accommodations_townhouse_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'investment project' %a{href: w_accommodations_investment_project_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) -if w_accommodations.pag_accommodation == 'room' %a{href: w_accommodations_room_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} = image_tag("web/thumbnlg-no-foto.jpg", class: 'no-photo img-max', :alt => @title_locale) .col-md-12.col-sm-12.col-xs-12.titulo-height.xs-pading-text -if w_accommodations.pag_accommodation == 'apartment' %a{href: w_accommodations_apartment_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('apartment') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle -if w_accommodations.pag_accommodation == 'villa' %a{href: w_accommodations_villa_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('villa') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle -if w_accommodations.pag_accommodation == 'penthouse' %a{href: w_accommodations_penthouse_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('penthouse') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle -if w_accommodations.pag_accommodation == 'chalet' %a{href: w_accommodations_chalet_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('chalet') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle -if w_accommodations.pag_accommodation == 'land' %a{href: w_accommodations_land_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('land') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle -if w_accommodations.pag_accommodation == 'commercial property' %a{href: w_accommodations_local_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('local') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle -if w_accommodations.pag_accommodation == 'townhouse' %a{href: w_accommodations_townhouse_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('townhouse') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle -if w_accommodations.pag_accommodation == 'investment project' %a{href: w_accommodations_investment_project_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('investment-project') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle -if w_accommodations.pag_accommodation == 'room' %a{href: w_accommodations_room_path(w_accommodations), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc.center = t('room') + " - " - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .accommodation-index-info %span.padd-bo-l - if w_accommodations.bedrooms %span.fas.fa-bed{:title => t('bedrooms')} = w_accommodations.bedrooms %span.padd-bo-l - if w_accommodations.m_surface %span.fas.fa-home{:title => t('surface')} = w_accommodations.m_surface = t('m2') %span.padd-bo-l - if w_accommodations.n_people %span.fas.fa-user{:title => t('people')} = w_accommodations.n_people %span.padd-bo-l - if params[:datefrom].present? or params[:dateto].present? - if @availability_status >= 1 .accommodation-available-dates-txt %span.accommodation-available-dates-conf-2 = t('not_available') .fas.fa-times-circle - else .accommodation-available-dates-txt %span.accommodation-available-dates-conf = t('available') .fas.fa-check-circle .col-lg-12.col-md-12.col-sm-12.col-xs-12 - if params[:datefrom].present? or params[:dateto].present? - if @properties_dates_count == 0 .page_info.center = t('properties_na') .col-lg-12.col-md-12.col-sm-12.col-xs-12.load-w - unless params[:datefrom].present? or params[:dateto].present? .div-pagination = will_paginate @accommodations, inner_window: 2, outter_window: 1, renderer: BootstrapPagination::Rails .page_info = page_entries_info @accommodations = render 'layouts/partials/index/footer'