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
data/config/locales/tr.yml
CHANGED
@@ -5,9 +5,9 @@ tr:
|
|
5
5
|
back: Geri
|
6
6
|
changePassword: Şifre değiştir
|
7
7
|
contact:
|
8
|
-
emailSubject: Web sitenizdeki iletişim
|
8
|
+
emailSubject: Web sitenizdeki iletişim formu
|
9
9
|
error: Maalesef bir hata oldu.
|
10
|
-
success:
|
10
|
+
success: Mesajınınz için teşekkürler. Yakında sizinle iletişim kuracağız!
|
11
11
|
contactUs: İletişim
|
12
12
|
contactUsPrompt: Bizimle iletişime geçmek için aşağıdaki formu doldurun
|
13
13
|
devise:
|
@@ -16,19 +16,19 @@ tr:
|
|
16
16
|
editarPropiedad: Mülkü düzenle
|
17
17
|
email: E-posta
|
18
18
|
'false': Yok hayır
|
19
|
-
findAProperty:
|
19
|
+
findAProperty: Mülk bul
|
20
20
|
findByReference: Referansa göre bulun
|
21
21
|
forRent: Kiralık
|
22
22
|
forSale: Satılık
|
23
|
-
go:
|
23
|
+
go: Git
|
24
24
|
labels:
|
25
|
-
create:
|
26
|
-
edit:
|
27
|
-
latestProperties:
|
25
|
+
create: Oluştur
|
26
|
+
edit: Düzenle
|
27
|
+
latestProperties: Yeni mülkler
|
28
28
|
new: Yeni
|
29
|
-
ourServices:
|
30
|
-
save:
|
31
|
-
leaveBlank: Değiştirmek
|
29
|
+
ourServices: Servislerimiz
|
30
|
+
save: Kaydet
|
31
|
+
leaveBlank: Değiştirmek istemiyorsanız boş bırakın
|
32
32
|
legalAdvice: Yasal Uyarı
|
33
33
|
listadoPropiedades: Mülklerin listesi
|
34
34
|
mailers:
|
@@ -50,15 +50,15 @@ tr:
|
|
50
50
|
message: Mesaj
|
51
51
|
name: isim
|
52
52
|
navbar:
|
53
|
-
|
54
|
-
admin:
|
55
|
-
buy:
|
56
|
-
|
57
|
-
home:
|
58
|
-
|
59
|
-
|
60
|
-
rent:
|
61
|
-
sell:
|
53
|
+
about-us: Hakkımızda
|
54
|
+
admin: Panel
|
55
|
+
buy: Satın Al
|
56
|
+
contact-us: İletişim
|
57
|
+
home: Anasayfa
|
58
|
+
legal: Yasal Uyarı
|
59
|
+
privacy: Gizlilik Politikası
|
60
|
+
rent: Kirala
|
61
|
+
sell: Sat
|
62
62
|
needCurrentPwd: Değişikliklerinizi onaylamak için mevcut şifrenize ihtiyacımız var
|
63
63
|
newPassword: Yeni Şifre
|
64
64
|
noResultsForSearch: Üzgünüz, sonuç bulunamadı
|
@@ -68,21 +68,21 @@ tr:
|
|
68
68
|
priceDescending: "↑ Fiyat (azalan)"
|
69
69
|
pages:
|
70
70
|
aboutUs: Hakkımızda
|
71
|
-
sell:
|
71
|
+
sell: Satış
|
72
72
|
placeHolders:
|
73
73
|
email: E-posta adresiniz
|
74
74
|
message: Mesajınızı buraya yazın
|
75
75
|
name: Adınız
|
76
76
|
subject: konu
|
77
|
-
tel: Sabit veya
|
78
|
-
privacyPolicy: Gizlilik Politikası
|
77
|
+
tel: Sabit veya cep telefonunuz
|
78
|
+
# privacyPolicy: Gizlilik Politikası
|
79
79
|
property:
|
80
80
|
description: Açıklama
|
81
|
-
details:
|
81
|
+
details: Ayrıntılar
|
82
82
|
extras: Özellikler
|
83
83
|
furniture: Mobilya
|
84
84
|
goToProperty: Mülkü Görüntüle
|
85
|
-
highlightedProperty:
|
85
|
+
highlightedProperty: Öne Çıkarılan Mülk
|
86
86
|
locality: mekân
|
87
87
|
map: Harita
|
88
88
|
monthlyRentalPriceHighSeason: Aylık Ücret (Yüksek Sezon)
|
@@ -106,12 +106,12 @@ tr:
|
|
106
106
|
çabuk yakalayamaz.
|
107
107
|
requestPropertyInfo: Bilgi talep et
|
108
108
|
search: Arama
|
109
|
-
searchForProperties: Mülk ara
|
109
|
+
searchForProperties: Mülk ara
|
110
110
|
selectpicker:
|
111
111
|
countSelectedText: "{1} 'den seçilen {0}"
|
112
112
|
noneResultsText: Sonuç bulunamadı {0}
|
113
113
|
noneSelectedText: Seçilmiş bir şey yok
|
114
|
-
send:
|
114
|
+
send: Gönder
|
115
115
|
setup:
|
116
116
|
claimSubdomain: Bu URL'yi isteyin
|
117
117
|
createdSuccessfully: Site başarıyla oluşturuldu
|
@@ -119,12 +119,12 @@ tr:
|
|
119
119
|
loggedInAs: olarak giriş yaptı
|
120
120
|
logout: Çıkış Yap
|
121
121
|
selectUrl: Bir URL seçin
|
122
|
-
selectUrlMessage: Başarıyla bir hesap oluşturdunuz - şimdi yeni siteniz için
|
122
|
+
selectUrlMessage: Başarıyla bir hesap oluşturdunuz - şimdi yeni siteniz için URL adresi
|
123
123
|
seçin
|
124
124
|
subdomain: Alt alan
|
125
125
|
subdomainMissing: Lütfen alt alan adı için bir ad girin
|
126
126
|
thankYouForTrusting: "%{company_name}'e güven verdiğiniz için teşekkür ederiz"
|
127
|
-
urlNotAvailable: Maalesef bu
|
127
|
+
urlNotAvailable: Maalesef bu URL kullanılamıyor
|
128
128
|
weAreCreatingSite: Sitenizi oluşturuyoruz
|
129
129
|
signOut: Oturumu Kapat
|
130
130
|
simple_form:
|
@@ -134,16 +134,16 @@ tr:
|
|
134
134
|
search:
|
135
135
|
count_bathrooms: Banyo (dk)
|
136
136
|
count_bedrooms: Yatak odası (dk)
|
137
|
-
for_rent_price_from:
|
138
|
-
for_rent_price_till:
|
139
|
-
for_sale_price_from:
|
140
|
-
for_sale_price_till:
|
137
|
+
for_rent_price_from: En düşük
|
138
|
+
for_rent_price_till: En yüksek
|
139
|
+
for_sale_price_from: En düşük
|
140
|
+
for_sale_price_till: En yüksek
|
141
141
|
in_locality: mekân
|
142
142
|
in_zone: bölge
|
143
143
|
locality: mekân
|
144
144
|
property_state: Mülkiyet Durumu
|
145
145
|
property_type: Emlak Tipi
|
146
|
-
'no':
|
146
|
+
'no': Hayır
|
147
147
|
required:
|
148
148
|
mark: "*"
|
149
149
|
text: gereklidir
|
@@ -155,6 +155,6 @@ tr:
|
|
155
155
|
webContentSections:
|
156
156
|
aboutUs: Hakkımızda
|
157
157
|
contactInformation: İletişim bilgileri
|
158
|
-
home:
|
159
|
-
sell:
|
160
|
-
tagLine:
|
158
|
+
home: Anasayfa
|
159
|
+
sell: Satış
|
160
|
+
tagLine: Slogan
|
data/config/locales/vi.yml
CHANGED
@@ -51,13 +51,13 @@ vi:
|
|
51
51
|
message: Tin nhắn
|
52
52
|
name: Tên
|
53
53
|
navbar:
|
54
|
-
|
54
|
+
about-us: Về chúng tôi
|
55
55
|
admin: quản trị
|
56
56
|
buy: Mua
|
57
|
-
|
57
|
+
contact-us: Liên hệ với chúng tôi
|
58
58
|
home: Nhà
|
59
|
-
|
60
|
-
|
59
|
+
legal: Thông báo pháp lý
|
60
|
+
privacy: Chính sách bảo mật
|
61
61
|
rent: Thuê
|
62
62
|
sell: Bán
|
63
63
|
needCurrentPwd: Chúng tôi cần mật khẩu hiện tại của bạn để xác nhận thay đổi của
|
@@ -77,7 +77,7 @@ vi:
|
|
77
77
|
name: Tên của bạn
|
78
78
|
subject: Tiêu đề
|
79
79
|
tel: Điện thoại cố định hoặc di động
|
80
|
-
privacyPolicy: Chính sách bảo mật
|
80
|
+
# privacyPolicy: Chính sách bảo mật
|
81
81
|
property:
|
82
82
|
description: Sự miêu tả
|
83
83
|
details: Chi tiết
|
@@ -0,0 +1,23 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "green_amber",
|
4
|
+
"id": "green_amber",
|
5
|
+
"variables":
|
6
|
+
{
|
7
|
+
"primary-color-dark": "#388E3C",
|
8
|
+
"primary-background-dark": "#388E3C",
|
9
|
+
"primary-color": "#4CAF50",
|
10
|
+
"primary-color-light": "#C8E6C9",
|
11
|
+
"primary-color-text": "#FFFFFF",
|
12
|
+
"accent-color": "#FFC107",
|
13
|
+
"primary-text-color": "#212121",
|
14
|
+
"secondary-text-color": "#757575",
|
15
|
+
"divider-color": "#BDBDBD"
|
16
|
+
},
|
17
|
+
"associations":
|
18
|
+
{
|
19
|
+
"breadcrumb_color": "primary-background-light",
|
20
|
+
"page_top_strip_background": "primary-background-dark",
|
21
|
+
"page_top_strip_color": "primary-color-text"
|
22
|
+
}
|
23
|
+
}]
|
@@ -0,0 +1,23 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "purple_teal",
|
4
|
+
"id": "purple_teal",
|
5
|
+
"variables":
|
6
|
+
{
|
7
|
+
"primary-color-dark": "#7B1FA2",
|
8
|
+
"primary-background-dark": "#7B1FA2",
|
9
|
+
"primary-color": "#9C27B0",
|
10
|
+
"primary-color-light": "#E1BEE7",
|
11
|
+
"primary-color-text": "#FFFFFF",
|
12
|
+
"accent-color": "#009688",
|
13
|
+
"primary-text-color": "#212121",
|
14
|
+
"secondary-text-color": "#757575",
|
15
|
+
"divider-color": "#BDBDBD"
|
16
|
+
},
|
17
|
+
"associations":
|
18
|
+
{
|
19
|
+
"breadcrumb_color": "primary-background-light",
|
20
|
+
"page_top_strip_background": "primary-background-dark",
|
21
|
+
"page_top_strip_color": "primary-color-text"
|
22
|
+
}
|
23
|
+
}]
|
@@ -0,0 +1,18 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "red_light",
|
4
|
+
"id": "red_light",
|
5
|
+
"variables":
|
6
|
+
{
|
7
|
+
"primary_color": "#e91b23",
|
8
|
+
"secondary_color": "#3498db",
|
9
|
+
"action_color": "green",
|
10
|
+
"body_style": "siteLayout.wide",
|
11
|
+
"theme": "light"
|
12
|
+
},
|
13
|
+
"associations":
|
14
|
+
{
|
15
|
+
"breadcrumb_color": "yellow",
|
16
|
+
"page_top_strip_color": "secondary_color"
|
17
|
+
}
|
18
|
+
}]
|
data/config/routes.rb
CHANGED
@@ -13,18 +13,26 @@ Pwb::Engine.routes.draw do
|
|
13
13
|
# end
|
14
14
|
|
15
15
|
authenticate :user do
|
16
|
+
get '/propertysquares' => 'squares#vue'
|
17
|
+
get '/propertysquares/*path' => 'squares#vue'
|
18
|
+
get '/squares/:client_id' => 'squares#show_client'
|
19
|
+
get '/squares/:client_id/:prop_id' => 'squares#show_prop'
|
16
20
|
get "/admin" => "admin_panel#show"
|
17
21
|
get "/admin/*path" => "admin_panel#show"
|
18
|
-
|
22
|
+
get "/admin-1" => "admin_panel#show_legacy_1"
|
23
|
+
get "/admin-1/*path" => "admin_panel#show_legacy_1"
|
24
|
+
scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
|
19
25
|
get "/admin" => "admin_panel#show", as: "admin_with_locale"
|
20
26
|
get "/admin/*path" => "admin_panel#show"
|
27
|
+
get "/admin-1" => "admin_panel#show_legacy_1", as: "admin_with_locale_legacy"
|
28
|
+
get "/admin-1/*path" => "admin_panel#show_legacy_1"
|
21
29
|
end
|
30
|
+
|
22
31
|
end
|
23
32
|
|
24
|
-
get "/custom_css" => "css#custom_css", as: "custom_css"
|
33
|
+
get "/custom_css/:theme_name" => "css#custom_css", as: "custom_css"
|
25
34
|
|
26
|
-
|
27
|
-
scope "(:locale)", locale: /en|nl|es|fr|de|pt|it|vi|tr|ru/ do
|
35
|
+
scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
|
28
36
|
|
29
37
|
devise_scope :user do
|
30
38
|
get "/users/edit_success" => "devise/registrations#edit_success", as: "user_edit_success"
|
@@ -37,23 +45,19 @@ Pwb::Engine.routes.draw do
|
|
37
45
|
|
38
46
|
|
39
47
|
get "/" => "welcome#index", as: "home"
|
40
|
-
get "/p/:page_slug" => "
|
41
|
-
get "/c/:page_slug" => "comfy#show"
|
48
|
+
get "/p/:page_slug" => "pages#show_page", as: "show_page"
|
49
|
+
# get "/c/:page_slug" => "comfy#show"
|
42
50
|
|
43
51
|
get "/properties/for-rent/:id/:url_friendly_title" => "props#show_for_rent", as: "prop_show_for_rent"
|
44
52
|
get "/properties/for-sale/:id/:url_friendly_title" => "props#show_for_sale", as: "prop_show_for_sale"
|
45
53
|
|
46
|
-
get "/about-us" => "
|
47
|
-
|
48
|
-
|
54
|
+
get "/about-us" => "pages#show_page", page_slug: "about-us"
|
55
|
+
get "/contact-us" => "contact_us#index", as: "contact_us" #
|
56
|
+
post "/contact_us" => "contact_us#contact_us_ajax"
|
57
|
+
|
49
58
|
get "/buy" => "search#buy"
|
50
59
|
get "/rent" => "search#rent"
|
51
60
|
|
52
|
-
get "/contact-us" => "sections#contact_us", as: "contact_us" #
|
53
|
-
get "/privacy-policy" => "sections#privacy_policy"
|
54
|
-
get "/legal" => "sections#legal"
|
55
|
-
|
56
|
-
post "/contact_us" => "sections#contact_us_ajax"
|
57
61
|
post "/search_ajax_for_sale" => "search#search_ajax_for_sale"
|
58
62
|
post "/search_ajax_for_rent" => "search#search_ajax_for_rent"
|
59
63
|
# post "/ajax_find_by_ref" => "search#ajax_find_by_ref"
|
@@ -107,27 +111,35 @@ Pwb::Engine.routes.draw do
|
|
107
111
|
put "/translations/:id/update_for_locale" => "translations#update_for_locale"
|
108
112
|
delete "/translations/:id" => "translations#delete_translation_values"
|
109
113
|
|
114
|
+
# put "tenant" => "agency#update_legacy"
|
115
|
+
put "/master_address" => "agency#update_master_address"
|
110
116
|
|
111
117
|
get "/agency" => "agency#show"
|
112
118
|
put "/agency" => "agency#update"
|
113
119
|
put "/website" => "website#update"
|
114
120
|
get "/infos" => "agency#infos"
|
115
121
|
|
116
|
-
|
117
|
-
put "/
|
122
|
+
put "/pages" => "page#update"
|
123
|
+
put "/pages/page_part_visibility" => "page#update_page_part_visibility"
|
124
|
+
put "/pages/page_fragment" => "page#save_page_fragment"
|
125
|
+
get "/pages/:page_name" => "page#get"
|
126
|
+
|
127
|
+
# post '/page_fragments/photos/:page_id/:block_label' => 'page_fragments#set_photo'
|
128
|
+
|
129
|
+
post '/pages/photos/:page_slug/:page_part_key/:block_label' => 'page#set_photo'
|
130
|
+
# post '/cms-pages/photos/:page_id/:block_label' => 'cms_pages#set_photo'
|
131
|
+
# jsonapi_resources :cms_pages
|
118
132
|
|
119
|
-
post '/cms-pages/photos/:page_id/:block_label' => 'cms_pages#set_photo'
|
120
|
-
get "/cms-pages/meta/:page_name" => "cms_pages#meta"
|
121
|
-
jsonapi_resources :cms_pages
|
122
133
|
|
123
|
-
|
134
|
+
get "/web-contents" => "agency#infos"
|
124
135
|
jsonapi_resources :lite_properties
|
125
136
|
jsonapi_resources :properties
|
126
|
-
|
137
|
+
jsonapi_resources :clients
|
127
138
|
jsonapi_resources :web_contents
|
139
|
+
resources :contacts
|
128
140
|
|
129
|
-
get "/
|
130
|
-
put "/
|
141
|
+
get "/links" => "links#index"
|
142
|
+
put "/links" => "links#bulk_update"
|
131
143
|
|
132
144
|
get "/themes" => "themes#index"
|
133
145
|
get "/mls" => "mls#index"
|
Binary file
|
Binary file
|
Binary file
|
@@ -31,13 +31,13 @@ class CreatePwbProps < ActiveRecord::Migration[5.0]
|
|
31
31
|
|
32
32
|
t.boolean :for_rent_short_term, default: false
|
33
33
|
t.boolean :for_rent_long_term, default: false
|
34
|
+
# if I used flag shih tzu for above, I couldn't make queries like:
|
35
|
+
# Property.where('for_rent_short_term OR for_rent_long_term')
|
36
|
+
|
34
37
|
t.boolean :for_sale, default: false
|
35
38
|
t.boolean :hide_map, default: false
|
36
39
|
t.boolean :obscure_map, default: false
|
37
40
|
t.boolean :portals_enabled, default: false
|
38
|
-
# if I used flag shih tzu for above, I couldn't make queries like:
|
39
|
-
# Property.where('for_rent_short_term OR for_rent_long_term')
|
40
|
-
|
41
41
|
|
42
42
|
t.datetime :deleted_at
|
43
43
|
t.datetime :active_from
|
@@ -1,13 +1,14 @@
|
|
1
|
+
# oct 2017 - no longer in use - to_delete
|
1
2
|
class CreatePwbSections < ActiveRecord::Migration[5.0]
|
2
3
|
def change
|
3
|
-
create_table :pwb_sections do |t|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
4
|
+
# create_table :pwb_sections do |t|
|
5
|
+
# t.string :link_key
|
6
|
+
# t.string :link_path
|
7
|
+
# t.integer :sort_order
|
8
|
+
# t.boolean :visible
|
9
|
+
# t.timestamps null: false
|
10
|
+
# end
|
10
11
|
|
11
|
-
add_index :pwb_sections, :link_key, :unique => true
|
12
|
+
# add_index :pwb_sections, :link_key, :unique => true
|
12
13
|
end
|
13
14
|
end
|
@@ -1,10 +1,11 @@
|
|
1
|
+
# oct 2017 - no longer in use - to_delete
|
1
2
|
class AddExtraColsToPwbSections < ActiveRecord::Migration[5.0]
|
2
3
|
def change
|
3
|
-
add_column :pwb_sections, :flags, :integer, default: 0, index: true, null: false
|
4
|
-
add_column :pwb_sections, :details, :json, default: {}
|
5
|
-
add_column :pwb_sections, :is_page, :boolean, default: false, index: true
|
6
|
-
add_column :pwb_sections, :show_in_top_nav, :boolean, default: false, index: true
|
7
|
-
add_column :pwb_sections, :show_in_footer, :boolean, default: false, index: true
|
8
|
-
add_column :pwb_sections, :key, :string, index: true
|
4
|
+
# add_column :pwb_sections, :flags, :integer, default: 0, index: true, null: false
|
5
|
+
# add_column :pwb_sections, :details, :json, default: {}
|
6
|
+
# add_column :pwb_sections, :is_page, :boolean, default: false, index: true
|
7
|
+
# add_column :pwb_sections, :show_in_top_nav, :boolean, default: false, index: true
|
8
|
+
# add_column :pwb_sections, :show_in_footer, :boolean, default: false, index: true
|
9
|
+
# add_column :pwb_sections, :key, :string, index: true
|
9
10
|
end
|
10
11
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class CreatePwbPages < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
create_table :pwb_pages do |t|
|
4
|
+
t.string :slug
|
5
|
+
t.string :setup_id
|
6
|
+
# t.string :link_key
|
7
|
+
# t.string :link_path
|
8
|
+
t.boolean :visible, default: false
|
9
|
+
t.integer :last_updated_by_user_id
|
10
|
+
t.integer :flags, default: 0, index: true, null: false
|
11
|
+
t.json :details, default: {}
|
12
|
+
t.integer :sort_order_top_nav, default: 0
|
13
|
+
t.integer :sort_order_footer, default: 0
|
14
|
+
t.boolean :show_in_top_nav, default: false, index: true
|
15
|
+
t.boolean :show_in_footer, default: false, index: true
|
16
|
+
# t.boolean :key, :string, index: true
|
17
|
+
t.timestamps null: false
|
18
|
+
end
|
19
|
+
|
20
|
+
# add_index :pwb_pages, :link_key, :unique => true
|
21
|
+
add_index :pwb_pages, :slug, :unique => true
|
22
|
+
end
|
23
|
+
end
|