pwb 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +40 -25
- data/app/assets/fonts/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fonts/fontawesome-webfont.svg +2668 -637
- data/app/assets/fonts/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/javascripts/pwb/shared/page-content.js +24 -0
- data/app/assets/javascripts/pwb/shared/squares-container.js +58 -0
- data/app/assets/javascripts/pwb/shared/vue-main.js +1 -1
- data/app/assets/javascripts/pwb/shared/vue-squares.js.erb +74 -0
- data/app/assets/javascripts/pwb/squares/tabable-section.js +47 -0
- data/app/assets/javascripts/pwb/themes/squares.js.erb +45 -0
- data/app/assets/javascripts/pwb/themes/vic.js.erb +152 -0
- data/app/assets/javascripts/pwb_admin_panel/application_legacy_1.js +5 -0
- data/app/assets/stylesheets/pwb/themes/berlin.scss +4 -0
- data/app/assets/stylesheets/pwb/themes/berlin/main.scss +1 -1
- data/app/assets/stylesheets/pwb/themes/default.scss +1 -0
- data/app/assets/stylesheets/pwb/themes/default/carousel.scss +2 -1
- data/app/assets/stylesheets/pwb/themes/default/landing_content_areas.scss +13 -13
- data/app/assets/stylesheets/pwb/themes/default/shame.scss +0 -16
- data/app/assets/stylesheets/pwb/themes/matt.scss +18 -0
- data/app/assets/stylesheets/pwb/themes/shared/liquid_templates.scss +37 -0
- data/app/assets/stylesheets/pwb/themes/shared/shame.scss +7 -0
- data/app/assets/stylesheets/pwb/themes/squares.scss +22 -0
- data/app/assets/stylesheets/pwb/themes/squares/vue-material-docs.scss +200 -0
- data/app/assets/stylesheets/pwb/themes/squares/vue-material-vars.scss +141 -0
- data/app/assets/stylesheets/pwb/themes/vic.scss +104 -0
- data/app/assets/stylesheets/pwb/themes/vic/general.scss +15 -0
- data/app/assets/stylesheets/pwb/themes/vic/landing.scss +189 -0
- data/app/assets/stylesheets/pwb/themes/vic/slider.scss +127 -0
- data/app/assets/stylesheets/pwb_admin_panel/application_legacy_1.scss +6 -0
- data/app/controllers/pwb/admin_panel_controller.rb +7 -1
- data/app/controllers/pwb/api/v1/clients_controller.rb +35 -0
- data/app/controllers/pwb/api/v1/contacts_controller.rb +41 -0
- data/app/controllers/pwb/api/v1/links_controller.rb +47 -0
- data/app/controllers/pwb/api/v1/page_controller.rb +117 -0
- data/app/controllers/pwb/api/v1/page_fragments_controller.rb +74 -0
- data/app/controllers/pwb/api/v1/properties_controller.rb +30 -9
- data/app/controllers/pwb/api/v1/sections_controller.rb +27 -26
- data/app/controllers/pwb/api/v1/website_controller.rb +11 -11
- data/app/controllers/pwb/application_controller.rb +22 -11
- data/app/controllers/pwb/{sections_controller.rb → contact_us_controller.rb} +24 -45
- data/app/controllers/pwb/css_controller.rb +5 -2
- data/app/controllers/pwb/pages_controller.rb +36 -0
- data/app/controllers/pwb/search_controller.rb +33 -11
- data/app/controllers/pwb/squares_controller.rb +48 -0
- data/app/controllers/pwb/welcome_controller.rb +30 -5
- data/app/helpers/pwb/application_helper.rb +50 -49
- data/app/helpers/pwb/css_helper.rb +14 -0
- data/app/helpers/pwb/navigation_helper.rb +82 -0
- data/app/models/pwb/contact.rb +25 -0
- data/app/models/pwb/content.rb +26 -8
- data/app/models/pwb/content_photo.rb +18 -0
- data/app/models/pwb/link.rb +41 -0
- data/app/models/pwb/message.rb +1 -1
- data/app/models/pwb/page.rb +227 -0
- data/app/models/pwb/page_content.rb +33 -0
- data/app/models/pwb/page_part.rb +17 -0
- data/app/models/pwb/preset_style.rb +37 -0
- data/app/models/pwb/prop.rb +4 -0
- data/app/models/pwb/website.rb +64 -9
- data/app/resources/pwb/api/v1/{section_resource.rb → client_resource.rb} +3 -4
- data/app/resources/pwb/api/v1/property_resource.rb +23 -4
- data/app/resources/pwb/api/v1/web_content_resource.rb +1 -1
- data/app/resources/pwb/api_public/v1/prop_resource.rb +9 -2
- data/{db/cms_fixtures/cms/layouts/about-us/content.html → app/themes/airbnb/views/layouts/pwb/_generic_modal.html.erb} +0 -0
- data/{db/cms_fixtures/cms/layouts/about-us/javascript.js → app/themes/airbnb/views/layouts/pwb/_login_modal.html.erb} +0 -0
- data/app/themes/airbnb/views/layouts/pwb/application.html.erb +82 -0
- data/app/themes/airbnb/views/pwb/_footer.html.erb +25 -0
- data/app/themes/airbnb/views/pwb/props/_images_section_carousel.html.erb +43 -0
- data/app/themes/airbnb/views/pwb/props/show.html.erb +69 -0
- data/app/themes/airbnb/views/pwb/search/_search_form_for_rent.html.erb +183 -0
- data/app/themes/airbnb/views/pwb/search/_search_results.html.erb +34 -0
- data/app/themes/airbnb/views/pwb/search/buy.html.erb +65 -0
- data/app/themes/airbnb/views/pwb/search/rent.html.erb +87 -0
- data/app/themes/airbnb/views/pwb/sections/_contact_us_form.html.erb +49 -0
- data/app/themes/airbnb/views/pwb/sections/contact_us.html.erb +56 -0
- data/app/themes/airbnb/views/pwb/welcome/_content_area_cols.html.erb +12 -0
- data/app/themes/airbnb/views/pwb/welcome/_single_property_row.html.erb +51 -0
- data/app/themes/airbnb/views/pwb/welcome/index.html.erb +66 -0
- data/app/themes/berlin/views/pwb/_footer.html.erb +15 -20
- data/app/themes/berlin/views/pwb/_header.html.erb +7 -9
- data/app/themes/berlin/views/pwb/pages/show.html.erb +50 -0
- data/app/themes/berlin/views/pwb/search/buy.html.erb +1 -1
- data/app/themes/berlin/views/pwb/search/rent.html.erb +1 -2
- data/app/themes/berlin/views/pwb/sections/contact_us.html.erb +1 -1
- data/app/themes/berlin/views/pwb/welcome/index.html.erb +51 -7
- data/app/themes/config.json +14 -0
- data/app/themes/default/views/pwb/{sections/cms.html.erb → pages/show.html.erb} +9 -8
- data/app/themes/default/views/pwb/search/buy.html.erb +1 -1
- data/app/themes/default/views/pwb/search/rent.html.erb +1 -1
- data/app/themes/default/views/pwb/sections/about_us.html.erb +8 -7
- data/app/themes/default/views/pwb/sections/contact_us.html.erb +40 -30
- data/app/themes/default/views/pwb/sections/static.html.erb +3 -20
- data/app/themes/default/views/pwb/welcome/_single_property_row.html.erb +1 -1
- data/app/themes/default/views/pwb/welcome/index.html.erb +7 -38
- data/app/themes/matt/views/layouts/pwb/application.html.erb +45 -0
- data/app/themes/matt/views/pwb/_footer.html.erb +60 -0
- data/app/themes/matt/views/pwb/_header.html.erb +105 -0
- data/app/themes/matt/views/pwb/search/buy.html.erb +65 -0
- data/app/themes/matt/views/pwb/welcome/index.html.erb +132 -0
- data/app/themes/vic/views/layouts/pwb/application.html.erb +94 -0
- data/app/themes/vic/views/pwb/_header.html.erb +100 -0
- data/app/themes/vic/views/pwb/props/_images_section_carousel.html.erb +43 -0
- data/app/themes/vic/views/pwb/props/show.html.erb +69 -0
- data/app/themes/vic/views/pwb/search/buy.html.erb +65 -0
- data/app/themes/vic/views/pwb/search/rent.html.erb +65 -0
- data/app/themes/vic/views/pwb/sections/_contact_us_form.html.erb +49 -0
- data/app/themes/vic/views/pwb/sections/contact_us.html.erb +56 -0
- data/app/themes/vic/views/pwb/welcome/_content_area_cols.html.erb +12 -0
- data/app/themes/vic/views/pwb/welcome/_single_property_row.html.erb +51 -0
- data/app/themes/vic/views/pwb/welcome/index.html.erb +27 -0
- data/app/views/devise/shared/_links.html.erb +1 -1
- data/app/views/layouts/pwb/admin_panel_error.html.erb +19 -0
- data/app/views/layouts/pwb/admin_panel_legacy_1.html.erb +21 -0
- data/app/views/layouts/pwb/squares.html.erb +72 -0
- data/app/views/pwb/_footer.html.erb +2 -6
- data/app/views/pwb/_header.html.erb +23 -25
- data/app/views/pwb/admin_panel/show_legacy_1.html.erb +3 -0
- data/app/views/pwb/custom_css/_berlin.css.erb +0 -67
- data/app/views/pwb/custom_css/_default.css.erb +0 -22
- data/app/views/pwb/custom_css/_shared.css.erb +4 -3
- data/app/views/pwb/custom_css/_vic.css.erb +10 -0
- data/app/views/pwb/props/_images_section_carousel.html.erb +1 -1
- data/app/views/pwb/search/_search_result_item.html.erb +1 -1
- data/app/views/pwb/squares/show_client.html.erb +26 -0
- data/app/views/pwb/squares/show_prop.html.erb +26 -0
- data/app/views/pwb/squares/vue.html.erb +1 -0
- data/config/client_setups/default.json +28 -27
- data/config/initializers/i18n_globalise.rb +4 -0
- data/config/locales/admin.en.yml +38 -7
- data/config/locales/admin.es.yml +60 -6
- data/config/locales/admin.pt.yml +474 -0
- data/config/locales/admin.ru.yml +49 -6
- data/config/locales/devise.it.yml +137 -0
- data/config/locales/en.yml +7 -7
- data/config/locales/it.yml +160 -0
- data/config/locales/pt.yml +2 -0
- data/config/locales/rails.it.yml +213 -0
- data/config/locales/tr.yml +36 -36
- data/config/locales/vi.yml +5 -5
- data/config/preset_styles/green_amber.json +23 -0
- data/config/preset_styles/purple_teal.json +23 -0
- data/config/preset_styles/red_light.json +18 -0
- data/config/routes.rb +35 -23
- data/db/example_images/carousel_villa_with_pool.jpg +0 -0
- data/db/example_images/flat_luxury_dining_area.jpg +0 -0
- data/db/example_images/flat_luxury_living_area.jpg +0 -0
- data/db/migrate/20161120103546_create_pwb_props.rb +3 -3
- data/db/migrate/20161122174847_create_pwb_sections.rb +9 -8
- data/db/migrate/20161128221919_create_pwb_clients.rb +1 -0
- data/db/migrate/20170315195413_add_extra_cols_to_pwb_sections.rb +7 -6
- data/db/migrate/20170716075456_create_pwb_pages.rb +23 -0
- data/db/migrate/20170716110121_translate_pages.rb +17 -0
- data/db/migrate/20170720183443_create_pwb_links.rb +29 -0
- data/db/migrate/20170720201601_translate_links.rb +13 -0
- data/db/migrate/20170915094326_create_pwb_page_contents.rb +17 -0
- data/db/migrate/20170917215533_add_page_part_key_to_pwb_contents.rb +7 -0
- data/db/migrate/20170919134945_add_block_key_to_pwb_content_photos.rb +5 -0
- data/db/migrate/20170923195321_create_pwb_contacts.rb +33 -0
- data/db/migrate/20171011212930_create_pwb_page_parts.rb +30 -0
- data/db/seeds/translations_es.rb +1 -87
- data/db/seeds/translations_it.rb +92 -0
- data/db/yml_seeds/agency_address.yml +8 -8
- data/db/yml_seeds/contacts.yml +13 -0
- data/db/yml_seeds/content_translations/en.yml +73 -0
- data/db/yml_seeds/content_translations/es.yml +74 -0
- data/db/yml_seeds/content_translations/it.yml +73 -0
- data/db/yml_seeds/content_translations/pt.yml +73 -0
- data/db/yml_seeds/{content/footer.yml → footer.yml} +0 -0
- data/db/yml_seeds/links.yml +389 -0
- data/db/yml_seeds/page_parts/ABOUT_PAGE_PARTS.md +5 -0
- data/db/yml_seeds/page_parts/about-us__content_html.yml +24 -0
- data/db/yml_seeds/page_parts/about-us__our_agency.yml +51 -0
- data/db/yml_seeds/page_parts/contact-us__content_html.yml +24 -0
- data/db/yml_seeds/page_parts/contact-us__form_and_map.yml +17 -0
- data/db/yml_seeds/page_parts/home__about_us_services.yml +85 -0
- data/db/yml_seeds/page_parts/home__content_html.yml +24 -0
- data/db/yml_seeds/page_parts/home__landing_hero.yml +51 -0
- data/db/yml_seeds/page_parts/legal__content_html.yml +24 -0
- data/db/yml_seeds/page_parts/privacy__content_html.yml +24 -0
- data/db/yml_seeds/page_parts/sell__content_html.yml +24 -0
- data/db/yml_seeds/pages/about.yml +11 -0
- data/db/yml_seeds/pages/buy.yml +23 -0
- data/db/yml_seeds/pages/contact.yml +12 -0
- data/db/yml_seeds/pages/home.yml +15 -0
- data/db/yml_seeds/pages/legal_notice.yml +11 -0
- data/db/yml_seeds/pages/privacy_policy.yml +11 -0
- data/db/yml_seeds/pages/rent.yml +15 -0
- data/db/yml_seeds/pages/sell.yml +13 -0
- data/db/yml_seeds/prop/flat_for_rent.yml +11 -11
- data/db/yml_seeds/prop/flat_for_rent_2.yml +57 -0
- data/db/yml_seeds/prop/flat_for_sale.yml +11 -12
- data/db/yml_seeds/prop/flat_for_sale_2.yml +56 -0
- data/db/yml_seeds/prop/villa_for_rent.yml +14 -14
- data/db/yml_seeds/prop/villa_for_sale.yml +15 -15
- data/db/yml_seeds/prop_spain/flat_for_rent.yml +58 -0
- data/db/yml_seeds/prop_spain/flat_for_sale.yml +58 -0
- data/db/yml_seeds/prop_spain/villa_for_rent.yml +58 -0
- data/db/yml_seeds/prop_spain/villa_for_sale.yml +59 -0
- data/db/yml_seeds/sections.yml +119 -119
- data/db/yml_seeds/{content → to_delete}/about_us.yml +0 -0
- data/db/yml_seeds/{content → to_delete}/carousel.yml +0 -0
- data/db/yml_seeds/{content → to_delete}/content_columns.yml +0 -0
- data/db/yml_seeds/to_delete/footer.yml +15 -0
- data/db/yml_seeds/{content → to_delete}/sell.yml +0 -0
- data/db/yml_seeds/{content → to_delete}/static.yml +0 -0
- data/db/yml_seeds/website.yml +2 -1
- data/lib/pwb/engine.rb +16 -2
- data/lib/pwb/pages_seeder.rb +190 -0
- data/lib/pwb/seeder.rb +56 -14
- data/lib/pwb/version.rb +1 -1
- data/lib/tasks/pwb_tasks.rake +19 -2
- data/spec/controllers/pwb/api/v1/propeties_controller_spec.rb +2 -2
- data/spec/controllers/pwb/welcome_controller_spec.rb +18 -5
- data/spec/dummy/config/initializers/assets.rb +9 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/dummy/config/secrets.yml +3 -0
- data/spec/dummy/db/migrate/20171201161323_create_property_web_scraper_import_hosts.property_web_scraper.rb +22 -0
- data/spec/dummy/db/migrate/20171201161324_create_property_web_scraper_listings.property_web_scraper.rb +84 -0
- data/spec/dummy/db/schema.rb +475 -398
- data/spec/factories/pwb_contacts.rb +5 -0
- data/spec/factories/pwb_contents.rb +3 -0
- data/spec/factories/pwb_links.rb +5 -0
- data/spec/factories/pwb_page_contents.rb +5 -0
- data/spec/factories/pwb_page_parts.rb +8 -0
- data/spec/factories/pwb_pages.rb +29 -0
- data/spec/factories/pwb_prop_photos.rb +11 -2
- data/spec/fixtures/mls/properties_interealty.json +1 -496
- data/spec/fixtures/params/bulk_create.json +3 -3
- data/spec/libraries/pwb/pages_seeder_spec.rb +56 -0
- data/spec/libraries/pwb/seeder_spec.rb +14 -10
- data/spec/models/pwb/contact_spec.rb +7 -0
- data/spec/models/pwb/link_spec.rb +7 -0
- data/spec/models/pwb/page_content_spec.rb +7 -0
- data/spec/models/pwb/page_part_spec.rb +7 -0
- data/spec/models/pwb/page_spec.rb +28 -0
- data/spec/models/pwb/website_spec.rb +10 -0
- data/spec/rails_helper.rb +1 -1
- data/spec/requests/pwb/themes_spec.rb +15 -10
- data/spec/views/pwb/application_layout.html.erb_spec.rb +28 -21
- data/spec/views/pwb/contact_us.html.erb_spec.rb +11 -0
- data/spec/views/pwb/welcome.html.erb_spec.rb +13 -9
- metadata +230 -244
- data/app/controllers/pwb/api/v1/cms_pages_controller.rb +0 -102
- data/app/controllers/pwb/comfy_controller.rb +0 -106
- data/app/models/pwb/cms_page_container.rb +0 -9
- data/app/models/pwb/section.rb +0 -35
- data/app/models/pwb/welcome.rb +0 -4
- data/app/resources/pwb/api/v1/cms_block_resource.rb +0 -11
- data/app/resources/pwb/api/v1/cms_page_resource.rb +0 -27
- data/app/themes/berlin/views/pwb/sections/about_us.html.erb +0 -59
- data/app/themes/berlin/views/pwb/sections/cms.html.erb +0 -34
- data/app/themes/berlin/views/pwb/sections/static.html.erb +0 -58
- data/app/views/pwb/search/_search_result_item_to_del.html.erb +0 -56
- data/config/cms_page_containers/about-us.json +0 -18
- data/config/cms_page_containers/about.json +0 -107
- data/config/cms_page_containers/landing.json +0 -19
- data/config/cms_page_containers/legal.json +0 -17
- data/config/cms_page_containers/sell.json +0 -96
- data/config/initializers/comfortable_mexican_sofa.rb +0 -142
- data/config/initializers/i18n.rb +0 -1
- data/db/cms_fixtures/cms/categories/pages.yml +0 -3
- data/db/cms_fixtures/cms/files/_rerenting-landing_framed.png.yml +0 -6
- data/db/cms_fixtures/cms/files/rerenting-landing_framed.png +0 -0
- data/db/cms_fixtures/cms/layouts/about-us/attributes.yml +0 -4
- data/db/cms_fixtures/cms/layouts/about-us/people/attributes.yml +0 -4
- data/db/cms_fixtures/cms/layouts/about-us/people/content.html +0 -55
- data/db/cms_fixtures/cms/layouts/about-us/services/attributes.yml +0 -4
- data/db/cms_fixtures/cms/layouts/about-us/services/content.html +0 -32
- data/db/cms_fixtures/cms/layouts/about-us/services/javascript.js +0 -0
- data/db/cms_fixtures/cms/layouts/about-us/services/stylesheet.css +0 -0
- data/db/cms_fixtures/cms/layouts/about-us/stylesheet.css +0 -0
- data/db/cms_fixtures/cms/layouts/default-layout/attributes.yml +0 -4
- data/db/cms_fixtures/cms/layouts/default-layout/content.html +0 -51
- data/db/cms_fixtures/cms/layouts/default-layout/javascript.js +0 -0
- data/db/cms_fixtures/cms/layouts/default-layout/stylesheet.css +0 -0
- data/db/cms_fixtures/cms/pages/index/about-us/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/people/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_d.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/services/content_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/content_b.html +0 -0
- data/db/cms_fixtures/cms/pages/index/about-us/services/content_c.html +0 -0
- data/db/cms_fixtures/cms/pages/index/about-us/services/de/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/en/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/es/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_b.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_c.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/title_a.html +0 -1
- data/db/cms_fixtures/cms/pages/index/about-us/services/title_b.html +0 -0
- data/db/cms_fixtures/cms/pages/index/about-us/services/title_c.html +0 -0
- data/db/cms_fixtures/cms/pages/index/attributes.yml +0 -8
- data/db/cms_fixtures/cms/pages/index/content.html +0 -1
- data/db/cms_fixtures/cms/pages/index/title.html +0 -0
- data/db/cms_fixtures/cms/snippets/snippet1/attributes.yml +0 -3
- data/db/cms_fixtures/cms/snippets/snippet1/content.html +0 -1
- data/db/cms_fixtures/sample-site/categories/files.yml +0 -1
- data/db/cms_fixtures/sample-site/categories/pages.yml +0 -1
- data/db/cms_fixtures/sample-site/categories/snippets.yml +0 -1
- data/db/cms_fixtures/sample-site/files/_sample.jpg.yml +0 -5
- data/db/cms_fixtures/sample-site/files/sample.jpg +0 -0
- data/db/cms_fixtures/sample-site/layouts/default/attributes.yml +0 -1
- data/db/cms_fixtures/sample-site/layouts/default/content.html +0 -5
- data/db/cms_fixtures/sample-site/layouts/default/javascript.js +0 -1
- data/db/cms_fixtures/sample-site/layouts/default/nested/attributes.yml +0 -2
- data/db/cms_fixtures/sample-site/layouts/default/nested/content.haml +0 -3
- data/db/cms_fixtures/sample-site/layouts/default/nested/javascript.js +0 -1
- data/db/cms_fixtures/sample-site/layouts/default/nested/stylesheet.css +0 -1
- data/db/cms_fixtures/sample-site/layouts/default/stylesheet.css +0 -1
- data/db/cms_fixtures/sample-site/pages/index/attributes.yml +0 -6
- data/db/cms_fixtures/sample-site/pages/index/child/attributes.yml +0 -3
- data/db/cms_fixtures/sample-site/pages/index/child/left.haml +0 -1
- data/db/cms_fixtures/sample-site/pages/index/child/right.html +0 -1
- data/db/cms_fixtures/sample-site/pages/index/child/thumbnail.png +0 -0
- data/db/cms_fixtures/sample-site/pages/index/content.html +0 -2
- data/db/cms_fixtures/sample-site/snippets/default/attributes.yml +0 -4
- data/db/cms_fixtures/sample-site/snippets/default/content.html +0 -1
- data/db/migrate/20170315212222_translate_sections.rb +0 -15
- data/db/migrate/20170513221300_create_cms.rb +0 -133
- data/lib/pwb/cms_data_loader.rb +0 -38
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/test.log +0 -0
- data/spec/dummy/public/uploads/pwb/content_photo/image/1/carousel_windows.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/content_photo/image/2/carousel_deck_chair.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/content_photo/image/3/carousel_grass.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/content_photo/image/4/carousel_grass.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/1/flat_balcony.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/1/gdaje3atcct1gx2ngv9u.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/1/new_villa.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/2/flat_balcony.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/2/kitchen_modern.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/2/rxo23syongfydjpoizrd.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/3/mansion_front.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/3/vzlptgtccsk2d2ewp4id.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/4/mansion_bedroom.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/4/xwayprwnmmmhrzrgwvch.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/5/flat_window.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/5/ilxn2u37bak0v60u6f8q.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/6/kitchen_classic.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/7/flat_balcony.jpg +0 -0
- data/spec/dummy/public/uploads/pwb/prop_photo/image/8/lounge_cosy.jpg +0 -0
- data/spec/factories/pwb_sections.rb +0 -4
- data/spec/models/pwb/section_spec.rb +0 -11
@@ -0,0 +1,65 @@
|
|
1
|
+
<% page_title @current_agency.company_name %>
|
2
|
+
<% content_for :page_script do %>
|
3
|
+
<%= javascript_tag do %>
|
4
|
+
$(document).ready(
|
5
|
+
function(){
|
6
|
+
$('#inmo-search-results').html("<%= j (render 'search_results') %>");
|
7
|
+
|
8
|
+
INMOAPP.truncateDescriptions();
|
9
|
+
INMOAPP.sortSearchResults();
|
10
|
+
}
|
11
|
+
);
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
14
|
+
<!-- MAIN CONTENT -->
|
15
|
+
<div class="pg-opt">
|
16
|
+
<div class="container">
|
17
|
+
<div class="row">
|
18
|
+
<div class="col-md-6">
|
19
|
+
<h2>
|
20
|
+
<%= I18n.t("searchForProperties") %>
|
21
|
+
</h2>
|
22
|
+
</div>
|
23
|
+
<div class="col-md-6" style="">
|
24
|
+
<ol class="breadcrumb">
|
25
|
+
<li><a href="/">
|
26
|
+
<%= I18n.t("webContentSections.home") %>
|
27
|
+
</a></li>
|
28
|
+
<li class="active">
|
29
|
+
<%= I18n.t("searchForProperties") %>
|
30
|
+
</li>
|
31
|
+
</ol>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
<section class="slice bg-white bb">
|
37
|
+
<div class="wp-section">
|
38
|
+
<div class="container">
|
39
|
+
<div class="row">
|
40
|
+
<div class="col-md-9">
|
41
|
+
<%# render '/pwb/search/search_results_header' %>
|
42
|
+
<!-- placeholder for ajax refresh: -->
|
43
|
+
<div id="inmo-search-results">
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
<div class="col-md-3">
|
47
|
+
<div class="sidebar">
|
48
|
+
<!-- FILTERS -->
|
49
|
+
<%= render '/pwb/search/search_form_for_sale' %>
|
50
|
+
<%# render '/pwb/search/go_to_property' %>
|
51
|
+
<!-- RECENTLY VIEWED -->
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
</section>
|
58
|
+
<% if @map_markers.length > 0 %>
|
59
|
+
<div id="inmo-map-canvas" class="map-canvas no-margin">
|
60
|
+
<inmo-map ref="inmomap" style="min-height: 600px;"
|
61
|
+
:markers="<%= @map_markers.to_json %>"
|
62
|
+
:zoom="15">
|
63
|
+
</inmo-map>
|
64
|
+
</div>
|
65
|
+
<% end %>
|
@@ -0,0 +1,132 @@
|
|
1
|
+
<section>
|
2
|
+
<v-parallax src="<%= opt_image_url((@carousel_items[0].default_photo), :quality => "auto", crop: "scale", class: "") %>" height="400">
|
3
|
+
<v-layout column align-center justify-center class="white--text">
|
4
|
+
<img src="https://vuetifyjs.com/themes/parallax-starter/assets/vuetify.png" alt="Vuetify.js">
|
5
|
+
<h1 class="white--text mb-2 display-3">Parallax Template</h1>
|
6
|
+
<div class="headline mb-3 text-xs-center">Powered by Vuetify</div>
|
7
|
+
<v-btn class="blue lighten-2 mt-5" dark large href="/pre-made-themes">
|
8
|
+
Get Started
|
9
|
+
</v-btn>
|
10
|
+
</v-layout>
|
11
|
+
</v-parallax>
|
12
|
+
</section>
|
13
|
+
<section>
|
14
|
+
<v-layout column wrap class="my-5" align-center>
|
15
|
+
<v-flex xs12 sm4 class="my-3">
|
16
|
+
<div class="text-xs-center">
|
17
|
+
<h2 class="headline">The best way to start developing</h2>
|
18
|
+
<span class="subheading">
|
19
|
+
Cras facilisis mi vitae nunc
|
20
|
+
</span>
|
21
|
+
</div>
|
22
|
+
</v-flex>
|
23
|
+
<v-flex xs12>
|
24
|
+
<v-container grid-list-xl>
|
25
|
+
<v-layout row wrap align-center>
|
26
|
+
<v-flex xs12 md4>
|
27
|
+
<v-card class="elevation-0 transparent">
|
28
|
+
<v-card-text class="text-xs-center">
|
29
|
+
<v-icon x-large class="blue--text text--lighten-2">color_lens</v-icon>
|
30
|
+
</v-card-text>
|
31
|
+
<v-card-title primary-title class="layout justify-center">
|
32
|
+
<div class="headline text-xs-center">Material Design</div>
|
33
|
+
</v-card-title>
|
34
|
+
<v-card-text>
|
35
|
+
Cras facilisis mi vitae nunc lobortis pharetra. Nulla volutpat tincidunt ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam in aliquet odio. Aliquam eu est vitae tellus bibendum tincidunt. Suspendisse potenti.
|
36
|
+
</v-card-text>
|
37
|
+
</v-card>
|
38
|
+
</v-flex>
|
39
|
+
<v-flex xs12 md4>
|
40
|
+
<v-card class="elevation-0 transparent">
|
41
|
+
<v-card-text class="text-xs-center">
|
42
|
+
<v-icon x-large class="blue--text text--lighten-2">flash_on</v-icon>
|
43
|
+
</v-card-text>
|
44
|
+
<v-card-title primary-title class="layout justify-center">
|
45
|
+
<div class="headline">Fast development</div>
|
46
|
+
</v-card-title>
|
47
|
+
<v-card-text>
|
48
|
+
Cras facilisis mi vitae nunc lobortis pharetra. Nulla volutpat tincidunt ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam in aliquet odio. Aliquam eu est vitae tellus bibendum tincidunt. Suspendisse potenti.
|
49
|
+
</v-card-text>
|
50
|
+
</v-card>
|
51
|
+
</v-flex>
|
52
|
+
<v-flex xs12 md4>
|
53
|
+
<v-card class="elevation-0 transparent">
|
54
|
+
<v-card-text class="text-xs-center">
|
55
|
+
<v-icon x-large class="blue--text text--lighten-2">build</v-icon>
|
56
|
+
</v-card-text>
|
57
|
+
<v-card-title primary-title class="layout justify-center">
|
58
|
+
<div class="headline text-xs-center">Completely Open Sourced</div>
|
59
|
+
</v-card-title>
|
60
|
+
<v-card-text>
|
61
|
+
Cras facilisis mi vitae nunc lobortis pharetra. Nulla volutpat tincidunt ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam in aliquet odio. Aliquam eu est vitae tellus bibendum tincidunt. Suspendisse potenti.
|
62
|
+
</v-card-text>
|
63
|
+
</v-card>
|
64
|
+
</v-flex>
|
65
|
+
</v-layout>
|
66
|
+
</v-container>
|
67
|
+
</v-flex>
|
68
|
+
</v-layout>
|
69
|
+
</section>
|
70
|
+
<section>
|
71
|
+
<v-parallax src="<%= opt_image_url((@carousel_items[0].default_photo), :quality => "auto", crop: "scale", class: "") %>" height="380">
|
72
|
+
<v-layout column align-center justify-center>
|
73
|
+
<div class="headline white--text mb-3">Web development has never been easier</div>
|
74
|
+
<em>Kick-start your application today</em>
|
75
|
+
<v-btn class="blue lighten-2 mt-5" dark large href="/pre-made-themes">
|
76
|
+
Get Started
|
77
|
+
</v-btn>
|
78
|
+
</v-layout>
|
79
|
+
</v-parallax>
|
80
|
+
</section>
|
81
|
+
<section>
|
82
|
+
<v-container grid-list-xl>
|
83
|
+
<v-layout row wrap justify-center class="my-5">
|
84
|
+
<v-flex xs12 sm4>
|
85
|
+
<v-card class="elevation-0 transparent">
|
86
|
+
<v-card-title primary-title class="layout justify-center">
|
87
|
+
<div class="headline">Company info</div>
|
88
|
+
</v-card-title>
|
89
|
+
<v-card-text>
|
90
|
+
Cras facilisis mi vitae nunc lobortis pharetra. Nulla volutpat tincidunt ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam in aliquet odio. Aliquam eu est vitae tellus bibendum tincidunt. Suspendisse potenti.
|
91
|
+
</v-card-text>
|
92
|
+
</v-card>
|
93
|
+
</v-flex>
|
94
|
+
<v-flex xs12 sm4 offset-sm1>
|
95
|
+
<v-card class="elevation-0 transparent">
|
96
|
+
<v-card-title primary-title class="layout justify-center">
|
97
|
+
<div class="headline">Contact us</div>
|
98
|
+
</v-card-title>
|
99
|
+
<v-card-text>
|
100
|
+
Cras facilisis mi vitae nunc lobortis pharetra. Nulla volutpat tincidunt ornare.
|
101
|
+
</v-card-text>
|
102
|
+
<v-list class="transparent">
|
103
|
+
<v-list-tile>
|
104
|
+
<v-list-tile-action>
|
105
|
+
<v-icon class="blue--text text--lighten-2">phone</v-icon>
|
106
|
+
</v-list-tile-action>
|
107
|
+
<v-list-tile-content>
|
108
|
+
<v-list-tile-title>777-867-5309</v-list-tile-title>
|
109
|
+
</v-list-tile-content>
|
110
|
+
</v-list-tile>
|
111
|
+
<v-list-tile>
|
112
|
+
<v-list-tile-action>
|
113
|
+
<v-icon class="blue--text text--lighten-2">place</v-icon>
|
114
|
+
</v-list-tile-action>
|
115
|
+
<v-list-tile-content>
|
116
|
+
<v-list-tile-title>Chicago, US</v-list-tile-title>
|
117
|
+
</v-list-tile-content>
|
118
|
+
</v-list-tile>
|
119
|
+
<v-list-tile>
|
120
|
+
<v-list-tile-action>
|
121
|
+
<v-icon class="blue--text text--lighten-2">email</v-icon>
|
122
|
+
</v-list-tile-action>
|
123
|
+
<v-list-tile-content>
|
124
|
+
<v-list-tile-title>john@vuetifyjs.com</v-list-tile-title>
|
125
|
+
</v-list-tile-content>
|
126
|
+
</v-list-tile>
|
127
|
+
</v-list>
|
128
|
+
</v-card>
|
129
|
+
</v-flex>
|
130
|
+
</v-layout>
|
131
|
+
</v-container>
|
132
|
+
</section>
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<meta name="robots" content="index, follow">
|
7
|
+
<title><%= yield(:page_title) %></title>
|
8
|
+
<%= yield(:page_head) %>
|
9
|
+
<%# display_meta_tags site: @current_website.tenant_display_name %>
|
10
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
|
11
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
12
|
+
<%= stylesheet_link_tag "pwb/themes/vic", media: "all" %>
|
13
|
+
<style>
|
14
|
+
<%= custom_styles "vic" %>
|
15
|
+
</style>
|
16
|
+
|
17
|
+
<%= javascript_include_tag "pwb/themes/vic", async: false %>
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
</head>
|
20
|
+
<body class="main-container z-depth-3">
|
21
|
+
<header style="margin: 0px 1px 0px 1px;">
|
22
|
+
<%= render :partial => '/pwb/header', :locals => { not_devise: true } %>
|
23
|
+
</header>
|
24
|
+
<%= yield(:breadcrumb_row) %>
|
25
|
+
<main id="main-vue">
|
26
|
+
<%= yield %>
|
27
|
+
</main>
|
28
|
+
<footer class="page-footer teal">
|
29
|
+
<div class="container-off">
|
30
|
+
<div class="row">
|
31
|
+
<div class="col l6 s12">
|
32
|
+
<h5 class="white-text">Company Bio</h5>
|
33
|
+
<p class="grey-text text-lighten-4">We are a team of college students working on this project like it's our full time job. Any amount would help support and continue development on this project and is greatly appreciated.</p>
|
34
|
+
</div>
|
35
|
+
<div class="col l3 s12">
|
36
|
+
<h5 class="white-text">Settings</h5>
|
37
|
+
<ul>
|
38
|
+
<li><a class="white-text" href="#!">Link 1</a></li>
|
39
|
+
<li><a class="white-text" href="#!">Link 2</a></li>
|
40
|
+
<li><a class="white-text" href="#!">Link 3</a></li>
|
41
|
+
<li><a class="white-text" href="#!">Link 4</a></li>
|
42
|
+
</ul>
|
43
|
+
</div>
|
44
|
+
<div class="col l3 s12">
|
45
|
+
<h5 class="white-text">Connect</h5>
|
46
|
+
<ul>
|
47
|
+
<li><a class="white-text" href="#!">Link 1</a></li>
|
48
|
+
<li><a class="white-text" href="#!">Link 2</a></li>
|
49
|
+
<li><a class="white-text" href="#!">Link 3</a></li>
|
50
|
+
<li><a class="white-text" href="#!">Link 4</a></li>
|
51
|
+
</ul>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
<div class="footer-copyright">
|
56
|
+
<div class="container-off">
|
57
|
+
Made by <a class="brown-text text-lighten-3" href="http://materializecss.com">Materialize</a>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</footer>
|
61
|
+
<noscript id="deferred-styles">
|
62
|
+
<link href="https://opensource.keycdn.com/fontawesome/4.7.0/font-awesome.min.css" rel="stylesheet">
|
63
|
+
<!-- Google Font -->
|
64
|
+
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
|
65
|
+
</noscript>
|
66
|
+
<script>
|
67
|
+
var loadDeferredStyles = function() {
|
68
|
+
var addStylesNode = document.getElementById("deferred-styles");
|
69
|
+
var replacement = document.createElement("div");
|
70
|
+
replacement.innerHTML = addStylesNode.textContent;
|
71
|
+
document.body.appendChild(replacement)
|
72
|
+
addStylesNode.parentElement.removeChild(addStylesNode);
|
73
|
+
};
|
74
|
+
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
|
75
|
+
webkitRequestAnimationFrame || msRequestAnimationFrame;
|
76
|
+
if (raf) raf(function() { window.setTimeout(loadDeferredStyles, 0); });
|
77
|
+
else window.addEventListener('load', loadDeferredStyles);
|
78
|
+
</script>
|
79
|
+
<%= yield(:page_script) %>
|
80
|
+
|
81
|
+
<!-- Scripts-->
|
82
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
|
83
|
+
<script>
|
84
|
+
(function($){
|
85
|
+
$(function(){
|
86
|
+
|
87
|
+
$('.button-collapse').sideNav();
|
88
|
+
$('.parallax').parallax();
|
89
|
+
|
90
|
+
}); // end of document ready
|
91
|
+
})(jQuery); // end of jQuery name space
|
92
|
+
</script>
|
93
|
+
</body>
|
94
|
+
</html>
|
@@ -0,0 +1,100 @@
|
|
1
|
+
<!-- HEADER -->
|
2
|
+
<div class="<%= element_classes "page_top_strip_color", "page_top_strip_background" %>">
|
3
|
+
<div class="container-off-off">
|
4
|
+
<div class="row">
|
5
|
+
<div class="col s6 hidden-xs contacto_header">
|
6
|
+
<% if @current_agency.phone_number_primary %>
|
7
|
+
<i class="fa fa-phone-square fa-lg"></i><%= @current_agency.phone_number_primary %>
|
8
|
+
<% end %>
|
9
|
+
<% if @current_agency.email_primary %>
|
10
|
+
<i class="fa fa-envelope fa-lg"></i><%= @current_agency.email_primary %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
13
|
+
<div class="col s6">
|
14
|
+
<% if @current_website.is_multilingual && not_devise %>
|
15
|
+
<div class="contenedor_idiomas" style="">
|
16
|
+
<ul class="idiomas">
|
17
|
+
<% @current_website.supported_locales_with_variants.each do |locale_with_var| %>
|
18
|
+
<li class=<%="#{'selected' if locale.to_s == locale_with_var["locale"]}" %>>
|
19
|
+
<%= localized_link_to locale_with_var, params.permit(:locale,).merge({:locale => locale_with_var["locale"]}), class: locale_with_var["variant"] %>
|
20
|
+
</li>
|
21
|
+
<% end %>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<header class="header-standard-2">
|
30
|
+
<!-- MAIN NAV -->
|
31
|
+
<div class="navbar navbar-wp navbar-arrow mega-nav" role="navigation">
|
32
|
+
<div class="container-off-off">
|
33
|
+
<!--/.nav-collapse -->
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</header>
|
37
|
+
<nav class="white z-depth-0" role="navigation">
|
38
|
+
<div class="nav-wrapper container-off">
|
39
|
+
<span class="brand-logo">
|
40
|
+
<%= link_to pwb.root_path(locale: locale), class: "navbar-brand" do %>
|
41
|
+
<% if @current_website.logo_url %>
|
42
|
+
<img src="<%= @current_website.logo_url %>" alt="Logo">
|
43
|
+
<% else %>
|
44
|
+
<span class="text-navbar-brand" style="color:black;">
|
45
|
+
<%= @current_agency.company_name %>
|
46
|
+
</span>
|
47
|
+
<% end %>
|
48
|
+
<% end %>
|
49
|
+
</span>
|
50
|
+
<ul class="right hide-on-med-and-down">
|
51
|
+
<%= render_top_navigation_links %>
|
52
|
+
<% if @show_admin_link %>
|
53
|
+
<li class="">
|
54
|
+
<%= link_to I18n.t("navbar.admin"), pwb.admin_with_locale_path(locale: locale) %>
|
55
|
+
</li>
|
56
|
+
<% end %>
|
57
|
+
<% if current_user %>
|
58
|
+
<!-- Dropdown Trigger -->
|
59
|
+
<li class="<%= 'selected' if current_page?(pwb.admin_with_locale_path(locale: locale)) %>">
|
60
|
+
<a class="dropdown-button" href="#!" data-activates="admin-dropdown">
|
61
|
+
<%= t "navbar.admin" %>
|
62
|
+
<i class="material-icons right">arrow_drop_down</i></a></li>
|
63
|
+
<li >
|
64
|
+
<ul id="admin-dropdown" class="dropdown-content">
|
65
|
+
<li>
|
66
|
+
<%= link_to I18n.t("navbar.admin"), pwb.admin_with_locale_path(locale: locale) %>
|
67
|
+
</li>
|
68
|
+
<li>
|
69
|
+
<%= link_to I18n.t("changePassword"), pwb.edit_user_registration_path() %>
|
70
|
+
</li>
|
71
|
+
<li>
|
72
|
+
<%= link_to I18n.t("signOut"), pwb.destroy_user_session_path(), method: :delete %>
|
73
|
+
</li>
|
74
|
+
</ul>
|
75
|
+
</li>
|
76
|
+
<% end %>
|
77
|
+
</ul>
|
78
|
+
<ul id="nav-mobile" class="side-nav">
|
79
|
+
<%= render_top_navigation_links %>
|
80
|
+
<% if @show_admin_link %>
|
81
|
+
<% if current_user %>
|
82
|
+
<li>
|
83
|
+
<%= link_to I18n.t("navbar.admin"), pwb.admin_with_locale_path(locale: locale) %>
|
84
|
+
</li>
|
85
|
+
<li>
|
86
|
+
<%= link_to I18n.t("changePassword"), pwb.edit_user_registration_path() %>
|
87
|
+
</li>
|
88
|
+
<li>
|
89
|
+
<%= link_to I18n.t("signOut"), pwb.destroy_user_session_path(), method: :delete %>
|
90
|
+
</li>
|
91
|
+
<% else %>
|
92
|
+
<li class="">
|
93
|
+
<%= link_to I18n.t("navbar.admin"), pwb.admin_with_locale_path(locale: locale) %>
|
94
|
+
</li>
|
95
|
+
<% end %>
|
96
|
+
<% end %>
|
97
|
+
</ul>
|
98
|
+
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
|
99
|
+
</div>
|
100
|
+
</nav>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<slick-carousel inline-template :slick-options="{
|
2
|
+
dots: false,
|
3
|
+
infinite: true,
|
4
|
+
arrows: true,
|
5
|
+
speed: 500,
|
6
|
+
fade: true,
|
7
|
+
cssEase: 'linear'
|
8
|
+
}" style="visibility: hidden">
|
9
|
+
<div class="slick-slider">
|
10
|
+
<% @property_details.prop_photos.each.with_index do |photo, index| %>
|
11
|
+
<%= opt_image_tag(photo, height: 800, crop: "scale", :quality => "auto", class: "", alt: "img") %>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
14
|
+
</slick-carousel>
|
15
|
+
<div class="product-gallery">
|
16
|
+
<div class="thumbnail-images" style="display:none;">
|
17
|
+
<%# properties_carousel_footer @property_details.prop_photos %>
|
18
|
+
</div>
|
19
|
+
<div class="wp-block property list no-border">
|
20
|
+
<div class="wp-block-content clearfix">
|
21
|
+
<div class="wp-block-footer style2">
|
22
|
+
<ul class="aux-info">
|
23
|
+
<li><i class="fa fa-arrows-alt"></i>
|
24
|
+
<%= @property_details.constructed_area %>
|
25
|
+
<%= area_unit @property_details %>
|
26
|
+
</li>
|
27
|
+
<li><i class="fa fa-bed"></i>
|
28
|
+
<%= @property_details.count_bedrooms %>
|
29
|
+
</li>
|
30
|
+
<li><i class="fa fa-shower"></i>
|
31
|
+
<%= @property_details.count_bathrooms %>
|
32
|
+
</li>
|
33
|
+
<li>
|
34
|
+
<% if @property_details.has_garage %>
|
35
|
+
<i class="fa fa-car"></i>
|
36
|
+
<%= @property_details.count_garages %>
|
37
|
+
<% end %>
|
38
|
+
</li>
|
39
|
+
</ul>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
@@ -0,0 +1,69 @@
|
|
1
|
+
<% page_title @property_details.title %>
|
2
|
+
<%# render '/pwb/props/meta_tags' %>
|
3
|
+
<%# render '/pwb/props/breadcrumb_row' %>
|
4
|
+
<!-- MAIN CONTENT -->
|
5
|
+
<section class="slice bg-white bb">
|
6
|
+
<div class="wp-section estate">
|
7
|
+
<div class="container-off-off">
|
8
|
+
<div class="row">
|
9
|
+
<div class="col m9">
|
10
|
+
<div class="row">
|
11
|
+
<div class="col m12">
|
12
|
+
<%= render '/pwb/props/images_section_carousel' %>
|
13
|
+
</div>
|
14
|
+
<div class="col m12">
|
15
|
+
<%= render '/pwb/props/prop_info_list' %>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<!-- PROPERTY DESCRIPTION -->
|
19
|
+
<div class="row">
|
20
|
+
<div class="col m12">
|
21
|
+
<h3><%= I18n.t("property.description") %></h3>
|
22
|
+
<%== @property_details.description %>
|
23
|
+
<br>
|
24
|
+
<br>
|
25
|
+
</div>
|
26
|
+
<div class="col m12">
|
27
|
+
<% if @property_details.extras_for_display.present? %>
|
28
|
+
<h3><%= I18n.t("property.extras") %></h3>
|
29
|
+
<%= render '/pwb/props/extras' %>
|
30
|
+
<br>
|
31
|
+
<br>
|
32
|
+
<% end %>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
<div class="col m3">
|
37
|
+
<div class="sidebar">
|
38
|
+
<%= render '/pwb/props/request_prop_info' %>
|
39
|
+
<%= render '/pwb/props/prop_contact_info' %>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<social-sharing class="center" inline-template>
|
46
|
+
<div class="social-icons icon-circle">
|
47
|
+
<network network="facebook">
|
48
|
+
<i class="fa fa-facebook"></i>
|
49
|
+
</network>
|
50
|
+
<network network="googleplus">
|
51
|
+
<i class="fa fa-google-plus"></i>
|
52
|
+
</network>
|
53
|
+
<network network="linkedin">
|
54
|
+
<i class="fa fa-linkedin"></i>
|
55
|
+
</network>
|
56
|
+
<network network="twitter">
|
57
|
+
<i class="fa fa-twitter"></i>
|
58
|
+
</network>
|
59
|
+
</div>
|
60
|
+
</social-sharing>
|
61
|
+
</section>
|
62
|
+
<% if @property_details.show_map %>
|
63
|
+
<div id="inmo-map-canvas" class="map-canvas no-margin">
|
64
|
+
<inmo-map style="min-height: 600px;"
|
65
|
+
:markers="<%= @map_markers.to_json %>"
|
66
|
+
:zoom="15">
|
67
|
+
</inmo-map>
|
68
|
+
</div>
|
69
|
+
<% end %>
|