pwb 1.0.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (367) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/comfy/admin/cms/custom.js.coffee +1 -0
  4. data/app/assets/stylesheets/comfy/admin/cms/custom.sass +1 -0
  5. data/app/assets/stylesheets/pwb/themes/berlin/inmo.scss +6 -1
  6. data/app/assets/stylesheets/pwb/themes/berlin/main.scss +12 -11
  7. data/app/assets/stylesheets/pwb/themes/default/shame.scss +1 -1
  8. data/app/controllers/pwb/admin_panel_controller.rb +2 -2
  9. data/app/controllers/pwb/api/v1/cms_pages_controller.rb +102 -0
  10. data/app/controllers/pwb/api/v1/website_controller.rb +7 -0
  11. data/app/controllers/pwb/api_public/v1/props_controller.rb +2 -2
  12. data/app/controllers/pwb/application_api_controller.rb +3 -7
  13. data/app/controllers/pwb/application_controller.rb +2 -3
  14. data/app/controllers/pwb/comfy_controller.rb +106 -0
  15. data/app/controllers/pwb/css_controller.rb +1 -2
  16. data/app/controllers/pwb/devise/registrations_controller.rb +2 -5
  17. data/app/controllers/pwb/devise_controller.rb +3 -8
  18. data/app/controllers/pwb/export/properties_controller.rb +5 -6
  19. data/app/controllers/pwb/export/translations_controller.rb +1 -5
  20. data/app/controllers/pwb/export/web_contents_controller.rb +1 -4
  21. data/app/controllers/pwb/export/website_controller.rb +0 -1
  22. data/app/controllers/pwb/import/mls_controller.rb +3 -6
  23. data/app/controllers/pwb/import/properties_controller.rb +2 -4
  24. data/app/controllers/pwb/import/scrapper_controller.rb +6 -9
  25. data/app/controllers/pwb/props_controller.rb +10 -13
  26. data/app/controllers/pwb/search_controller.rb +16 -16
  27. data/app/controllers/pwb/sections_controller.rb +21 -22
  28. data/app/controllers/pwb/welcome_controller.rb +1 -2
  29. data/app/helpers/pwb/application_helper.rb +37 -0
  30. data/app/helpers/pwb/css_helper.rb +9 -0
  31. data/app/models/pwb/cms_page_container.rb +9 -0
  32. data/app/models/pwb/content.rb +10 -6
  33. data/app/models/pwb/prop.rb +12 -4
  34. data/app/models/pwb/section.rb +1 -1
  35. data/app/models/pwb/website.rb +14 -1
  36. data/app/resources/pwb/api/v1/cms_block_resource.rb +11 -0
  37. data/app/resources/pwb/api/v1/cms_page_resource.rb +27 -0
  38. data/app/themes/berlin/views/layouts/pwb/application.html.erb +25 -9
  39. data/app/themes/berlin/views/pwb/props/show.html.erb +5 -5
  40. data/app/themes/berlin/views/pwb/search/_search_results.html.erb +2 -1
  41. data/app/themes/berlin/views/pwb/search/buy.html.erb +1 -1
  42. data/app/themes/berlin/views/pwb/search/rent.html.erb +2 -1
  43. data/app/themes/berlin/views/pwb/sections/about_us.html.erb +3 -2
  44. data/app/themes/berlin/views/pwb/sections/cms.html.erb +34 -0
  45. data/app/themes/berlin/views/pwb/sections/contact_us.html.erb +2 -1
  46. data/app/themes/berlin/views/pwb/welcome/_about_us_to_del.html.erb +35 -0
  47. data/app/themes/berlin/views/pwb/welcome/{_adv_search.html.erb → _adv_search_to_del.html.erb} +0 -0
  48. data/app/themes/berlin/views/pwb/welcome/_landing_carousel.html.erb +1 -1
  49. data/app/themes/berlin/views/pwb/welcome/_latest_properties.html.erb +2 -1
  50. data/app/themes/default/views/layouts/pwb/application.html.erb +24 -3
  51. data/app/themes/default/views/pwb/sections/about_us.html.erb +1 -2
  52. data/app/themes/default/views/pwb/sections/cms.html.erb +30 -0
  53. data/app/themes/default/views/pwb/welcome/_single_property_row.html.erb +2 -1
  54. data/app/themes/default/views/pwb/welcome/index.html.erb +3 -1
  55. data/app/views/layouts/pwb/devise.html.erb +1 -0
  56. data/app/views/pwb/_analytics.html.erb +15 -0
  57. data/app/views/pwb/_footer.html.erb +0 -12
  58. data/app/views/pwb/custom_css/{berlin.css.erb → _berlin.css.erb} +0 -1
  59. data/app/views/pwb/custom_css/{default.css.erb → _default.css.erb} +0 -1
  60. data/app/views/pwb/custom_css/_shared.css.erb +1 -0
  61. data/app/views/pwb/props/_images_section_carousel.html.erb +13 -27
  62. data/app/views/pwb/props/_prop_info_list.html.erb +1 -1
  63. data/app/views/pwb/search/_search_result_item.html.erb +62 -64
  64. data/app/views/pwb/search/_search_result_item_to_del.html.erb +3 -3
  65. data/config/client_setups/default.json +59 -21
  66. data/config/cms_page_containers/about-us.json +18 -0
  67. data/config/cms_page_containers/about.json +107 -0
  68. data/config/cms_page_containers/landing.json +19 -0
  69. data/config/cms_page_containers/legal.json +17 -0
  70. data/config/cms_page_containers/sell.json +96 -0
  71. data/config/initializers/cloudinary.rb +3 -0
  72. data/config/initializers/comfortable_mexican_sofa.rb +142 -0
  73. data/config/locales/admin.en.yml +213 -0
  74. data/config/locales/admin.es.yml +32 -17
  75. data/config/locales/admin.ru.yml +432 -0
  76. data/config/locales/admin.zh.yml.tmp +226 -0
  77. data/config/locales/de.yml +31 -32
  78. data/config/locales/devise.zh-HK.yml +119 -0
  79. data/config/locales/en.yml +3 -0
  80. data/config/locales/es.yml +3 -5
  81. data/config/locales/rails.zh-HK.yml +210 -0
  82. data/config/locales/ru.yml +11 -11
  83. data/config/locales/zh-HK.yml +154 -0
  84. data/config/routes.rb +17 -2
  85. data/db/cms_fixtures/cms/categories/pages.yml +3 -0
  86. data/db/cms_fixtures/cms/files/_rerenting-landing_framed.png.yml +6 -0
  87. data/{spec/dummy/public/system/comfy/cms/files/files/000/000/003/original → db/cms_fixtures/cms/files}/rerenting-landing_framed.png +0 -0
  88. data/db/cms_fixtures/cms/layouts/about-us/attributes.yml +4 -0
  89. data/db/cms_fixtures/cms/layouts/about-us/content.html +0 -0
  90. data/db/cms_fixtures/cms/layouts/about-us/javascript.js +0 -0
  91. data/db/cms_fixtures/cms/layouts/about-us/people/attributes.yml +4 -0
  92. data/db/cms_fixtures/cms/layouts/about-us/people/content.html +55 -0
  93. data/db/cms_fixtures/cms/layouts/about-us/services/attributes.yml +4 -0
  94. data/db/cms_fixtures/cms/layouts/about-us/services/content.html +32 -0
  95. data/db/cms_fixtures/cms/layouts/about-us/services/javascript.js +0 -0
  96. data/db/cms_fixtures/cms/layouts/about-us/services/stylesheet.css +0 -0
  97. data/db/cms_fixtures/cms/layouts/about-us/stylesheet.css +0 -0
  98. data/db/cms_fixtures/cms/layouts/default-layout/attributes.yml +4 -0
  99. data/db/cms_fixtures/cms/layouts/default-layout/content.html +51 -0
  100. data/db/cms_fixtures/cms/layouts/default-layout/javascript.js +0 -0
  101. data/db/cms_fixtures/cms/layouts/default-layout/stylesheet.css +0 -0
  102. data/db/cms_fixtures/cms/pages/index/about-us/attributes.yml +8 -0
  103. data/db/cms_fixtures/cms/pages/index/about-us/people/attributes.yml +8 -0
  104. data/db/cms_fixtures/cms/pages/index/about-us/people/de/attributes.yml +8 -0
  105. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_a.html +1 -0
  106. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_b.html +1 -0
  107. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_c.html +1 -0
  108. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_details_d.html +1 -0
  109. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_a.html +1 -0
  110. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_b.html +1 -0
  111. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_c.html +1 -0
  112. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_img_url_d.html +1 -0
  113. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_a.html +1 -0
  114. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_b.html +1 -0
  115. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_c.html +1 -0
  116. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_name_d.html +1 -0
  117. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_a.html +1 -0
  118. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_b.html +1 -0
  119. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_c.html +1 -0
  120. data/db/cms_fixtures/cms/pages/index/about-us/people/de/person_title_d.html +1 -0
  121. data/db/cms_fixtures/cms/pages/index/about-us/people/en/attributes.yml +8 -0
  122. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_a.html +1 -0
  123. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_b.html +1 -0
  124. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_c.html +1 -0
  125. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_details_d.html +1 -0
  126. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_a.html +1 -0
  127. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_b.html +1 -0
  128. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_c.html +1 -0
  129. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_img_url_d.html +1 -0
  130. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_a.html +1 -0
  131. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_b.html +1 -0
  132. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_c.html +1 -0
  133. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_name_d.html +1 -0
  134. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_a.html +1 -0
  135. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_b.html +1 -0
  136. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_c.html +1 -0
  137. data/db/cms_fixtures/cms/pages/index/about-us/people/en/person_title_d.html +1 -0
  138. data/db/cms_fixtures/cms/pages/index/about-us/people/es/attributes.yml +8 -0
  139. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_a.html +1 -0
  140. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_b.html +1 -0
  141. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_c.html +1 -0
  142. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_details_d.html +1 -0
  143. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_a.html +1 -0
  144. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_b.html +1 -0
  145. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_c.html +1 -0
  146. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_img_url_d.html +1 -0
  147. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_a.html +1 -0
  148. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_b.html +1 -0
  149. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_c.html +1 -0
  150. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_name_d.html +1 -0
  151. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_a.html +1 -0
  152. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_b.html +1 -0
  153. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_c.html +1 -0
  154. data/db/cms_fixtures/cms/pages/index/about-us/people/es/person_title_d.html +1 -0
  155. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/attributes.yml +8 -0
  156. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_a.html +1 -0
  157. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_b.html +1 -0
  158. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_c.html +1 -0
  159. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_details_d.html +1 -0
  160. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_a.html +1 -0
  161. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_b.html +1 -0
  162. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_c.html +1 -0
  163. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_name_d.html +1 -0
  164. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_a.html +1 -0
  165. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_b.html +1 -0
  166. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_c.html +1 -0
  167. data/db/cms_fixtures/cms/pages/index/about-us/people/pt/person_title_d.html +1 -0
  168. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/attributes.yml +8 -0
  169. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_a.html +1 -0
  170. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_b.html +1 -0
  171. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_c.html +1 -0
  172. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_details_d.html +1 -0
  173. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_a.html +1 -0
  174. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_b.html +1 -0
  175. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_c.html +1 -0
  176. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_img_url_d.html +1 -0
  177. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_a.html +1 -0
  178. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_b.html +1 -0
  179. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_c.html +1 -0
  180. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_name_d.html +1 -0
  181. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_a.html +1 -0
  182. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_b.html +1 -0
  183. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_c.html +1 -0
  184. data/db/cms_fixtures/cms/pages/index/about-us/people/ru/person_title_d.html +1 -0
  185. data/db/cms_fixtures/cms/pages/index/about-us/services/attributes.yml +8 -0
  186. data/db/cms_fixtures/cms/pages/index/about-us/services/content_a.html +1 -0
  187. data/db/cms_fixtures/cms/pages/index/about-us/services/content_b.html +0 -0
  188. data/db/cms_fixtures/cms/pages/index/about-us/services/content_c.html +0 -0
  189. data/db/cms_fixtures/cms/pages/index/about-us/services/de/attributes.yml +8 -0
  190. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_a.html +1 -0
  191. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_b.html +1 -0
  192. data/db/cms_fixtures/cms/pages/index/about-us/services/de/content_c.html +1 -0
  193. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_a.html +1 -0
  194. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_b.html +1 -0
  195. data/db/cms_fixtures/cms/pages/index/about-us/services/de/title_c.html +1 -0
  196. data/db/cms_fixtures/cms/pages/index/about-us/services/en/attributes.yml +8 -0
  197. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_a.html +1 -0
  198. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_b.html +1 -0
  199. data/db/cms_fixtures/cms/pages/index/about-us/services/en/content_c.html +1 -0
  200. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_a.html +1 -0
  201. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_b.html +1 -0
  202. data/db/cms_fixtures/cms/pages/index/about-us/services/en/title_c.html +1 -0
  203. data/db/cms_fixtures/cms/pages/index/about-us/services/es/attributes.yml +8 -0
  204. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_a.html +1 -0
  205. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_b.html +1 -0
  206. data/db/cms_fixtures/cms/pages/index/about-us/services/es/content_c.html +1 -0
  207. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_a.html +1 -0
  208. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_b.html +1 -0
  209. data/db/cms_fixtures/cms/pages/index/about-us/services/es/title_c.html +1 -0
  210. data/db/cms_fixtures/cms/pages/index/about-us/services/title_a.html +1 -0
  211. data/db/cms_fixtures/cms/pages/index/about-us/services/title_b.html +0 -0
  212. data/db/cms_fixtures/cms/pages/index/about-us/services/title_c.html +0 -0
  213. data/db/cms_fixtures/cms/pages/index/attributes.yml +8 -0
  214. data/db/cms_fixtures/cms/pages/index/content.html +1 -0
  215. data/db/cms_fixtures/cms/pages/index/title.html +0 -0
  216. data/db/cms_fixtures/cms/snippets/snippet1/attributes.yml +3 -0
  217. data/db/cms_fixtures/cms/snippets/snippet1/content.html +1 -0
  218. data/db/cms_fixtures/sample-site/categories/files.yml +1 -0
  219. data/db/cms_fixtures/sample-site/categories/pages.yml +1 -0
  220. data/db/cms_fixtures/sample-site/categories/snippets.yml +1 -0
  221. data/db/cms_fixtures/sample-site/files/_sample.jpg.yml +5 -0
  222. data/db/cms_fixtures/sample-site/files/sample.jpg +0 -0
  223. data/db/cms_fixtures/sample-site/layouts/default/attributes.yml +1 -0
  224. data/db/cms_fixtures/sample-site/layouts/default/content.html +5 -0
  225. data/db/cms_fixtures/sample-site/layouts/default/javascript.js +1 -0
  226. data/db/cms_fixtures/sample-site/layouts/default/nested/attributes.yml +2 -0
  227. data/db/cms_fixtures/sample-site/layouts/default/nested/content.haml +3 -0
  228. data/db/cms_fixtures/sample-site/layouts/default/nested/javascript.js +1 -0
  229. data/db/cms_fixtures/sample-site/layouts/default/nested/stylesheet.css +1 -0
  230. data/db/cms_fixtures/sample-site/layouts/default/stylesheet.css +1 -0
  231. data/db/cms_fixtures/sample-site/pages/index/attributes.yml +6 -0
  232. data/db/cms_fixtures/sample-site/pages/index/child/attributes.yml +3 -0
  233. data/db/cms_fixtures/sample-site/pages/index/child/left.haml +1 -0
  234. data/db/cms_fixtures/sample-site/pages/index/child/right.html +1 -0
  235. data/db/cms_fixtures/sample-site/pages/index/child/thumbnail.png +0 -0
  236. data/db/cms_fixtures/sample-site/pages/index/content.html +2 -0
  237. data/db/cms_fixtures/sample-site/snippets/default/attributes.yml +4 -0
  238. data/db/cms_fixtures/sample-site/snippets/default/content.html +1 -0
  239. data/db/migrate/20170513221300_create_cms.rb +133 -0
  240. data/db/seeds/spain/translations.rb +2 -2
  241. data/db/seeds/translations_ca.rb +92 -0
  242. data/db/seeds/translations_de.rb +86 -85
  243. data/db/seeds/translations_en.rb +73 -73
  244. data/db/seeds/translations_es.rb +79 -78
  245. data/db/seeds/translations_ru.rb +92 -0
  246. data/db/yml_seeds/prop/flat_for_rent.yml +4 -4
  247. data/db/yml_seeds/sections.yml +2 -2
  248. data/db/yml_seeds/website.yml +3 -1
  249. data/lib/pwb/cms_data_loader.rb +38 -0
  250. data/lib/pwb/engine.rb +1 -0
  251. data/lib/pwb/locale_loader.rb +47 -0
  252. data/lib/pwb/seeder.rb +8 -5
  253. data/lib/pwb/version.rb +1 -1
  254. data/lib/tasks/pwb_tasks.rake +1 -0
  255. data/spec/dummy/config/routes.rb +5 -0
  256. data/spec/dummy/config/secrets.yml +5 -0
  257. data/spec/dummy/db/schema.rb +111 -1
  258. data/spec/dummy/log/development.log +0 -0
  259. data/spec/features/pwb/admin_spec.rb +14 -40
  260. data/spec/features/pwb/admin_spec_tmp.rb +54 -0
  261. data/spec/fixtures/to_import/pwb-properties.csv +2 -2
  262. data/spec/views/pwb/application_layout.html.erb_spec.rb +1 -0
  263. metadata +207 -235
  264. data/app/themes/berlin/views/pwb/welcome/_about_us.html.erb +0 -36
  265. data/db/seeds/translations_others.rb +0 -215
  266. data/spec/dummy/public/assets/application-af04b226fd7202dfc532ce7aedb95a0128277937e90d3b3a3d35e1cce9e16886.css +0 -16
  267. data/spec/dummy/public/assets/application-af04b226fd7202dfc532ce7aedb95a0128277937e90d3b3a3d35e1cce9e16886.css.gz +0 -0
  268. data/spec/dummy/public/assets/application-ec8550e416fd8df1557ddb7f132ccd38baaafd36e4c5c9aff8420fbd47c0313f.js +0 -617
  269. data/spec/dummy/public/assets/application-ec8550e416fd8df1557ddb7f132ccd38baaafd36e4c5c9aff8420fbd47c0313f.js.gz +0 -0
  270. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot +0 -0
  271. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-13634da87d9e23f8c3ed9108ce1724d183a39ad072e73e1b3d8cbf646d2d0407.eot.gz +0 -0
  272. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg +0 -288
  273. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-42f60659d265c1a3c30f9fa42abcbb56bd4a53af4d83d316d6dd7a36903c43e5.svg.gz +0 -0
  274. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-a26394f7ede100ca118eff2eda08596275a9839b959c226e15439557a5a80742.woff +0 -0
  275. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf +0 -0
  276. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456.ttf.gz +0 -0
  277. data/spec/dummy/public/assets/bootstrap/glyphicons-halflings-regular-fe185d11a49676890d47bb783312a0cda5a44c4039214094e7957b4c040ef11c.woff2 +0 -0
  278. data/spec/dummy/public/assets/pwb/application-0dc6ff845cde8e032ed365593c17fe09c18a6966d44f551946bf1673d8d1ac51.css +0 -13
  279. data/spec/dummy/public/assets/pwb/application-0dc6ff845cde8e032ed365593c17fe09c18a6966d44f551946bf1673d8d1ac51.css.gz +0 -0
  280. data/spec/dummy/public/assets/pwb/application-b4df8e7ae7700a0d09d88175af77e7f457ca2fbe15ae08450551ebf3bfb0c4d1.js +0 -15656
  281. data/spec/dummy/public/assets/pwb/application-b4df8e7ae7700a0d09d88175af77e7f457ca2fbe15ae08450551ebf3bfb0c4d1.js.gz +0 -0
  282. data/spec/dummy/public/assets/pwb/themes/berlin-279c2e3a7fa11a902fdee83a6819dcc315ff8eb240cfad21b1322cedadb07ea7.js +0 -18690
  283. data/spec/dummy/public/assets/pwb/themes/berlin-279c2e3a7fa11a902fdee83a6819dcc315ff8eb240cfad21b1322cedadb07ea7.js.gz +0 -0
  284. data/spec/dummy/public/assets/pwb/themes/berlin-8038d5cfd670e73fbffb581f6bb8d8c00ac448957945622c5c34438c467d218b.css +0 -8582
  285. data/spec/dummy/public/assets/pwb/themes/berlin-8038d5cfd670e73fbffb581f6bb8d8c00ac448957945622c5c34438c467d218b.css.gz +0 -0
  286. data/spec/dummy/public/assets/pwb/themes/chic-facdff61de4827adfd797b6a36ffd6c8b432072df7190ed722d039f971caa539.css +0 -3500
  287. data/spec/dummy/public/assets/pwb/themes/chic-facdff61de4827adfd797b6a36ffd6c8b432072df7190ed722d039f971caa539.css.gz +0 -0
  288. data/spec/dummy/public/assets/pwb/themes/default-d697fb0c278f500986e614ddd7eb41fd7db502a54f3370b3e8166cc1714509d0.css +0 -8423
  289. data/spec/dummy/public/assets/pwb/themes/default-d697fb0c278f500986e614ddd7eb41fd7db502a54f3370b3e8166cc1714509d0.css.gz +0 -0
  290. data/spec/dummy/public/assets/pwb_admin_panel/application-2d624898965d7a347eb7f365feab34257032c25051633370811ed7dfd24d7c8c.js +0 -61
  291. data/spec/dummy/public/assets/pwb_admin_panel/application-2d624898965d7a347eb7f365feab34257032c25051633370811ed7dfd24d7c8c.js.gz +0 -0
  292. data/spec/dummy/public/assets/pwb_admin_panel/application-f0e38d58d1ce32501b22edd16697f45b561fa44b5be9265398a05e8dee169885.css +0 -17970
  293. data/spec/dummy/public/assets/pwb_admin_panel/application-f0e38d58d1ce32501b22edd16697f45b561fa44b5be9265398a05e8dee169885.css.gz +0 -0
  294. data/spec/dummy/public/img/about-us.png +0 -0
  295. data/spec/dummy/public/img/agents/agent-1.png +0 -0
  296. data/spec/dummy/public/img/agents/agent-3.png +0 -0
  297. data/spec/dummy/public/img/agents/agent-4.png +0 -0
  298. data/spec/dummy/public/img/agents/agent-5.png +0 -0
  299. data/spec/dummy/public/img/banner-ads.jpg +0 -0
  300. data/spec/dummy/public/img/blog-img-1.jpg +0 -0
  301. data/spec/dummy/public/img/blog-img-2.jpg +0 -0
  302. data/spec/dummy/public/img/blog-img-3.jpg +0 -0
  303. data/spec/dummy/public/img/client-brand-1.png +0 -0
  304. data/spec/dummy/public/img/client-brand-2.png +0 -0
  305. data/spec/dummy/public/img/client-brand-3.png +0 -0
  306. data/spec/dummy/public/img/client-brand-4.png +0 -0
  307. data/spec/dummy/public/img/client-brand-5.png +0 -0
  308. data/spec/dummy/public/img/favicon.ico +0 -0
  309. data/spec/dummy/public/img/gallery/big/1.jpg +0 -0
  310. data/spec/dummy/public/img/gallery/big/10.jpg +0 -0
  311. data/spec/dummy/public/img/gallery/big/11 - Copy.jpg +0 -0
  312. data/spec/dummy/public/img/gallery/big/12.jpg +0 -0
  313. data/spec/dummy/public/img/gallery/big/2.jpg +0 -0
  314. data/spec/dummy/public/img/gallery/big/3.jpg +0 -0
  315. data/spec/dummy/public/img/gallery/big/4.jpg +0 -0
  316. data/spec/dummy/public/img/gallery/big/5.jpg +0 -0
  317. data/spec/dummy/public/img/gallery/big/6.jpg +0 -0
  318. data/spec/dummy/public/img/gallery/big/7.jpg +0 -0
  319. data/spec/dummy/public/img/gallery/big/8.jpg +0 -0
  320. data/spec/dummy/public/img/gallery/big/9.jpg +0 -0
  321. data/spec/dummy/public/img/gallery/fancybox_buttons.png +0 -0
  322. data/spec/dummy/public/img/gallery/fancybox_loading.gif +0 -0
  323. data/spec/dummy/public/img/gallery/fancybox_loading@2x.gif +0 -0
  324. data/spec/dummy/public/img/gallery/fancybox_overlay.png +0 -0
  325. data/spec/dummy/public/img/gallery/fancybox_sprite.png +0 -0
  326. data/spec/dummy/public/img/gallery/fancybox_sprite@2x.png +0 -0
  327. data/spec/dummy/public/img/gallery/small/1.jpg +0 -0
  328. data/spec/dummy/public/img/gallery/small/10.jpg +0 -0
  329. data/spec/dummy/public/img/gallery/small/11.jpg +0 -0
  330. data/spec/dummy/public/img/gallery/small/12.jpg +0 -0
  331. data/spec/dummy/public/img/gallery/small/2.jpg +0 -0
  332. data/spec/dummy/public/img/gallery/small/3.jpg +0 -0
  333. data/spec/dummy/public/img/gallery/small/4.jpg +0 -0
  334. data/spec/dummy/public/img/gallery/small/5.jpg +0 -0
  335. data/spec/dummy/public/img/gallery/small/6.jpg +0 -0
  336. data/spec/dummy/public/img/gallery/small/7.jpg +0 -0
  337. data/spec/dummy/public/img/gallery/small/8.jpg +0 -0
  338. data/spec/dummy/public/img/gallery/small/9.jpg +0 -0
  339. data/spec/dummy/public/img/item/1.jpg +0 -0
  340. data/spec/dummy/public/img/item/2.jpg +0 -0
  341. data/spec/dummy/public/img/item/3.jpg +0 -0
  342. data/spec/dummy/public/img/item/4.jpg +0 -0
  343. data/spec/dummy/public/img/item/5.jpg +0 -0
  344. data/spec/dummy/public/img/item/6.jpg +0 -0
  345. data/spec/dummy/public/img/logo.png +0 -0
  346. data/spec/dummy/public/img/promo-banner.jpg +0 -0
  347. data/spec/dummy/public/img/property-header-bg.jpg +0 -0
  348. data/spec/dummy/public/img/property-view-2.jpg +0 -0
  349. data/spec/dummy/public/img/signin-bg.jpg +0 -0
  350. data/spec/dummy/public/img/slider/1.jpg +0 -0
  351. data/spec/dummy/public/img/slider/2.jpg +0 -0
  352. data/spec/dummy/public/img/slider/3.jpg +0 -0
  353. data/spec/dummy/public/img/slider/4.jpg +0 -0
  354. data/spec/dummy/public/img/slider/5.jpg +0 -0
  355. data/spec/dummy/public/img/slider/6.jpg +0 -0
  356. data/spec/dummy/public/img/testimonial-1.png +0 -0
  357. data/spec/dummy/public/img/testimonial-2.png +0 -0
  358. data/spec/dummy/public/img/testimonial-3.png +0 -0
  359. data/spec/dummy/public/img/testimonial-bg.jpg +0 -0
  360. data/spec/dummy/public/js/bootstrap.js +0 -2363
  361. data/spec/dummy/public/js/custom.js +0 -355
  362. data/spec/dummy/public/js/jquery.fancybox.pack.js +0 -46
  363. data/spec/dummy/public/js/jquery.min.js +0 -5
  364. data/spec/dummy/public/js/jquery.mixitup.js +0 -2098
  365. data/spec/dummy/public/js/nouislider.js +0 -1899
  366. data/spec/dummy/public/js/slick.js +0 -2670
  367. data/spec/dummy/public/system/comfy/cms/files/files/000/000/003/cms_thumb/rerenting-landing_framed.png +0 -0
@@ -0,0 +1,18 @@
1
+ // legacy about us
2
+ [{
3
+ "name": "about-us",
4
+ "id": "about-us",
5
+ "tabValue": "about-us",
6
+ "pageTitleKey": "pages.aboutUs",
7
+ "isLegacy": true,
8
+ // "tabTitleKey": "webContentSections.about",
9
+ "cmsPartsList": [{
10
+ "tabValue": "about-us",
11
+ "tabTitleKey": "pages.aboutUs",
12
+ // "tabInfoKey": "pageSections.people.info",
13
+ // "label": "about_us_people",
14
+ "editorBlocks": [
15
+ ]
16
+ }]
17
+
18
+ }]
@@ -0,0 +1,107 @@
1
+ [{
2
+ "name": "about",
3
+ "id": "about",
4
+ "tabValue": "about",
5
+ "pageTitleKey": "pages.aboutUs",
6
+ // "tabTitleKey": "webContentSections.aboutUs",
7
+ "cmsPartsList": [{
8
+ "tabValue": "raw",
9
+ "tabTitleKey": "pageSections.raw.title",
10
+ "tabInfoKey": "pageSections.raw.info",
11
+ "label": "about_us_raw",
12
+ "editorBlocks": [
13
+ [{
14
+ "label": "content_a",
15
+ "isMultipleLineText": "true"
16
+ }]
17
+ ]
18
+ }, {
19
+ "tabValue": "services",
20
+ "tabTitleKey": "pageSections.services.title",
21
+ "tabInfoKey": "pageSections.services.info",
22
+ "label": "about_us_services",
23
+ "editorBlocks": [
24
+ [{
25
+ "label": "title_a",
26
+ "isSingleLineText": "true"
27
+ }, {
28
+ "label": "content_a",
29
+ "isMultipleLineText": "true"
30
+ }],
31
+ [{
32
+ "label": "title_b",
33
+ "isSingleLineText": "true"
34
+ }, {
35
+ "label": "content_b",
36
+ "isMultipleLineText": "true"
37
+ }],
38
+ [{
39
+ "label": "title_c",
40
+ "isSingleLineText": "true"
41
+ }, {
42
+ "label": "content_c",
43
+ "isMultipleLineText": "true"
44
+ }]
45
+ ]
46
+ }, {
47
+ "tabValue": "people",
48
+ "tabTitleKey": "pageSections.people.title",
49
+ "tabInfoKey": "pageSections.people.info",
50
+ "label": "about_us_people",
51
+ "editorBlocks": [
52
+ [{
53
+ "label": "person_img_url_a",
54
+ "isImage": "true"
55
+ }, {
56
+ "label": "person_name_a",
57
+ "isSingleLineText": "true"
58
+ }, {
59
+ "label": "person_title_a",
60
+ "isSingleLineText": "true"
61
+ }, {
62
+ "label": "person_details_a",
63
+ "isMultipleLineText": "true"
64
+ }],
65
+ [{
66
+ "label": "person_img_url_b",
67
+ "isImage": "true"
68
+ }, {
69
+ "label": "person_name_b",
70
+ "isSingleLineText": "true"
71
+ }, {
72
+ "label": "person_title_b",
73
+ "isSingleLineText": "true"
74
+ }, {
75
+ "label": "person_details_b",
76
+ "isMultipleLineText": "true"
77
+ }],
78
+ [{
79
+ "label": "person_img_url_c",
80
+ "isImage": "true"
81
+ }, {
82
+ "label": "person_name_c",
83
+ "isSingleLineText": "true"
84
+ }, {
85
+ "label": "person_title_c",
86
+ "isSingleLineText": "true"
87
+ }, {
88
+ "label": "person_details_c",
89
+ "isMultipleLineText": "true"
90
+ }],
91
+ [{
92
+ "label": "person_img_url_d",
93
+ "isImage": "true"
94
+ }, {
95
+ "label": "person_name_d",
96
+ "isSingleLineText": "true"
97
+ }, {
98
+ "label": "person_title_d",
99
+ "isSingleLineText": "true"
100
+ }, {
101
+ "label": "person_details_d",
102
+ "isMultipleLineText": "true"
103
+ }]
104
+ ]
105
+ }]
106
+
107
+ }]
@@ -0,0 +1,19 @@
1
+ // legacy landing
2
+ [{
3
+ "name": "landing",
4
+ "id": "landing",
5
+ "tabValue": "landing",
6
+ "pageTitleKey": "pages.landing",
7
+ "isLegacy": true,
8
+ // "tabTitleKey": "webContentSections.about",
9
+ "cmsPartsList": [{
10
+ "tabValue": "landing-carousel",
11
+ "tabTitleKey": "webContentSections.landingCarousel",
12
+ "editorBlocks": []
13
+ }, {
14
+ "tabValue": "content-area-cols",
15
+ "tabTitleKey": "webContentSections.contentAreaCols",
16
+ "editorBlocks": []
17
+ }]
18
+
19
+ }]
@@ -0,0 +1,17 @@
1
+ [{
2
+ "name": "legal",
3
+ "id": "legal",
4
+ "tabValue": "legal",
5
+ "pageTitleKey": "pages.legal",
6
+ "isLegacy": true,
7
+ // "tabTitleKey": "webContentSections.legal",
8
+ "cmsPartsList": [{
9
+ "tabValue": "legal",
10
+ "tabTitleKey": "pages.legal",
11
+ // "tabInfoKey": "pageSections.people.info",
12
+ // "label": "about_us_people",
13
+ "editorBlocks": [
14
+ ]
15
+ }]
16
+
17
+ }]
@@ -0,0 +1,96 @@
1
+ [{
2
+ "name": "sell",
3
+ "id": "sell",
4
+ "tabValue": "sell",
5
+ "pageTitleKey": "pages.sell",
6
+ // "tabTitleKey": "webContentSections.sell",
7
+ "cmsPartsList": [{
8
+ "tabValue": "services",
9
+ "tabTitleKey": "pageSections.services.title",
10
+ "tabInfoKey": "pageSections.services.info",
11
+ "label": "about_us_services",
12
+ "editorBlocks": [
13
+ [{
14
+ "label": "title_a",
15
+ "isSingleLineText": "true"
16
+ }, {
17
+ "label": "content_a",
18
+ "isMultipleLineText": "true"
19
+ }],
20
+ [{
21
+ "label": "title_b",
22
+ "isSingleLineText": "true"
23
+ }, {
24
+ "label": "content_b",
25
+ "isMultipleLineText": "true"
26
+ }],
27
+ [{
28
+ "label": "title_c",
29
+ "isSingleLineText": "true"
30
+ }, {
31
+ "label": "content_c",
32
+ "isMultipleLineText": "true"
33
+ }]
34
+ ]
35
+ }, {
36
+ "tabValue": "people",
37
+ "tabTitleKey": "pageSections.people.title",
38
+ "tabInfoKey": "pageSections.people.info",
39
+ "label": "about_us_people",
40
+ "editorBlocks": [
41
+ [{
42
+ "label": "person_img_url_a",
43
+ "isImage": "true"
44
+ },{
45
+ "label": "person_name_a",
46
+ "isSingleLineText": "true"
47
+ },{
48
+ "label": "person_title_a",
49
+ "isSingleLineText": "true"
50
+ }, {
51
+ "label": "person_details_a",
52
+ "isMultipleLineText": "true"
53
+ }],
54
+ [{
55
+ "label": "person_img_url_b",
56
+ "isImage": "true"
57
+ },{
58
+ "label": "person_name_b",
59
+ "isSingleLineText": "true"
60
+ },{
61
+ "label": "person_title_b",
62
+ "isSingleLineText": "true"
63
+ }, {
64
+ "label": "person_details_b",
65
+ "isMultipleLineText": "true"
66
+ }],
67
+ [{
68
+ "label": "person_img_url_c",
69
+ "isImage": "true"
70
+ },{
71
+ "label": "person_name_c",
72
+ "isSingleLineText": "true"
73
+ },{
74
+ "label": "person_title_c",
75
+ "isSingleLineText": "true"
76
+ }, {
77
+ "label": "person_details_c",
78
+ "isMultipleLineText": "true"
79
+ }],
80
+ [{
81
+ "label": "person_img_url_d",
82
+ "isImage": "true"
83
+ },{
84
+ "label": "person_name_d",
85
+ "isSingleLineText": "true"
86
+ },{
87
+ "label": "person_title_d",
88
+ "isSingleLineText": "true"
89
+ }, {
90
+ "label": "person_details_d",
91
+ "isMultipleLineText": "true"
92
+ }]
93
+ ]
94
+ }]
95
+
96
+ }]
@@ -7,5 +7,8 @@ Cloudinary.config do |config|
7
7
  config.api_key = uri.user
8
8
  config.api_secret = uri.password
9
9
  config.cloud_name = uri.host
10
+ Rails.application.config.use_cloudinary = true
11
+ else
12
+ Rails.application.config.use_cloudinary = false
10
13
  end
11
14
  end
@@ -0,0 +1,142 @@
1
+ # encoding: utf-8
2
+
3
+ ComfortableMexicanSofa.configure do |config|
4
+ # Title of the admin area
5
+ # config.cms_title = 'ComfortableMexicanSofa CMS Engine'
6
+
7
+ # Controller that is inherited from CmsAdmin::BaseController
8
+ # config.base_controller = 'ApplicationController'
9
+
10
+ # Module responsible for authentication. You can replace it with your own.
11
+ # It simply needs to have #authenticate method. See http_auth.rb for reference.
12
+ # config.admin_auth = 'ComfyAdminAuthentication'
13
+ config.admin_auth = 'CmsDeviseAuth'
14
+
15
+ # Module responsible for authorization on admin side. It should have #authorize
16
+ # method that returns true or false based on params and loaded instance
17
+ # variables available for a given controller.
18
+ # config.admin_authorization = 'ComfyAdminAuthorization'
19
+
20
+ # Module responsible for public authentication. Similar to the above. You also
21
+ # will have access to @cms_site, @cms_layout, @cms_page so you can use them in
22
+ # your logic. Default module doesn't do anything.
23
+ # config.public_auth = 'ComfyPublicAuthentication'
24
+
25
+ # Module responsible for public authorization. It should have #authorize
26
+ # method that returns true or false based on params and loaded instance
27
+ # variables available for a given controller.
28
+ # config.public_authorization = 'ComfyPublicAuthorization'
29
+
30
+ # When arriving at /cms-admin you may chose to redirect to arbirtary path,
31
+ # for example '/cms-admin/users'
32
+ # config.admin_route_redirect = ''
33
+
34
+ # File uploads use Paperclip and can support filesystem or s3 uploads. Override
35
+ # the upload method and appropriate settings based on Paperclip. For S3 see:
36
+ # http://rdoc.info/gems/paperclip/2.3.8/Paperclip/Storage/S3, and for
37
+ # filesystem see: http://rdoc.info/gems/paperclip/2.3.8/Paperclip/Storage/Filesystem
38
+ # If you are using S3 and HTTPS, pass :s3_protocol => '' to have URLs that use the protocol of the page
39
+ # config.upload_file_options = {:url => '/system/:class/:id/:attachment/:style/:filename'}
40
+
41
+ # Sofa allows you to setup entire site from files. Database is updated with each
42
+ # request (if necessary). Please note that database entries are destroyed if there's
43
+ # no corresponding file. Fixtures are disabled by default.
44
+ # config.enable_fixtures = false
45
+
46
+ # Path where fixtures can be located.
47
+ config.fixtures_path = File.expand_path('db/cms_fixtures', Pwb::Engine.root)
48
+
49
+ # Importing fixtures into Database
50
+ # To load fixtures into the database just run this rake task:
51
+ # local: $ rake comfortable_mexican_sofa:fixtures:import FROM=example.local TO=localhost
52
+ # Heroku: $ heroku run rake comfortable_mexican_sofa:fixtures:import FROM=example.local TO=yourapp.herokuapp.com
53
+ # From indicates folder the fixtures are in and to is the Site hostname you have defined in the database.
54
+
55
+ # Exporting fixtures into Files
56
+ # If you need to dump database contents into fixture files run:
57
+ # local: $ rake comfortable_mexican_sofa:fixtures:export FROM=localhost TO=example.local
58
+ # Heroku: $ heroku run rake comfortable_mexican_sofa:fixtures:export FROM=yourapp.herokuapp.com TO=example.local
59
+ # This will create example.local folder and dump all content from example.com Site.
60
+
61
+ # Content for Layouts, Pages and Snippets has a revision history. You can revert
62
+ # a previous version using this system. You can control how many revisions per
63
+ # object you want to keep. Set it to 0 if you wish to turn this feature off.
64
+ # config.revisions_limit = 25
65
+
66
+ # Locale definitions. If you want to define your own locale merge
67
+ # {:locale => 'Locale Title'} with this.
68
+ # config.locales = {:en => 'English', :es => 'Español'}
69
+
70
+ # Admin interface will respect the locale of the site being managed. However you can
71
+ # force it to English by setting this to `:en`
72
+ # config.admin_locale = nil
73
+
74
+ # A class that is included as a sweeper to admin base controller if it's set
75
+ # config.admin_cache_sweeper = nil
76
+
77
+ # By default you cannot have irb code inside your layouts/pages/snippets.
78
+ # Generally this is to prevent putting something like this:
79
+ # <% User.delete_all %> but if you really want to allow it...
80
+ # config.allow_irb = false
81
+
82
+ # Whitelist of all helper methods that can be used via {{cms:helper}} tag. By default
83
+ # all helpers are allowed except `eval`, `send`, `call` and few others. Empty array
84
+ # will prevent rendering of all helpers.
85
+ # config.allowed_helpers = nil
86
+
87
+ # Whitelist of partials paths that can be used via {{cms:partial}} tag. All partials
88
+ # are accessible by default. Empty array will prevent rendering of all partials.
89
+ # config.allowed_partials = nil
90
+
91
+ # Site aliases, if you want to have aliases for your site. Good for harmonizing
92
+ # production env with dev/testing envs.
93
+ # e.g. config.hostname_aliases = {'host.com' => 'host.inv', 'host_a.com' => ['host.lvh.me', 'host.dev']}
94
+ # Default is nil (not used)
95
+ # config.hostname_aliases = nil
96
+
97
+ # Reveal partials that can be overwritten in the admin area.
98
+ # Default is false.
99
+ # config.reveal_cms_partials = false
100
+
101
+ end
102
+
103
+ # Default credentials for ComfortableMexicanSofa::AccessControl::AdminAuthentication
104
+ # YOU REALLY WANT TO CHANGE THIS BEFORE PUTTING YOUR SITE LIVE
105
+ # ComfortableMexicanSofa::AccessControl::AdminAuthentication.username = 'username'
106
+ # ComfortableMexicanSofa::AccessControl::AdminAuthentication.password = 'password'
107
+
108
+
109
+ # Uncomment this module and `config.admin_auth` above to use custom admin authentication
110
+ # module ComfyAdminAuthentication
111
+ # def authenticate
112
+ # return true
113
+ # end
114
+ # end
115
+ module CmsDeviseAuth
116
+ def authenticate
117
+ unless current_user && current_user.admin?
118
+ redirect_to pwb.new_user_session_path
119
+ end
120
+ end
121
+ end
122
+
123
+ # Uncomment this module and `config.admin_authorization` above to use custom admin authorization
124
+ # module ComfyAdminAuthorization
125
+ # def authorize
126
+ # return true
127
+ # end
128
+ # end
129
+
130
+ # Uncomment this module and `config.public_auth` above to use custom public authentication
131
+ # module ComfyPublicAuthentication
132
+ # def authenticate
133
+ # return true
134
+ # end
135
+ # end
136
+
137
+ # Uncomment this module and `config.public_authorization` above to use custom public authorization
138
+ # module ComfyPublicAuthorization
139
+ # def authorize
140
+ # return true
141
+ # end
142
+ # end
@@ -39,6 +39,20 @@ en:
39
39
  brl: Brazilian Real
40
40
  zar: South African Rand
41
41
  hkd: Hong Kong Dollar
42
+ pages:
43
+ aboutUs: About us
44
+ sell: Sell
45
+ landing: Landing
46
+ legal: Legal
47
+ pageSections:
48
+ services:
49
+ title: Services you offer
50
+ info: An overview of the services you offer
51
+ people:
52
+ title: Your team
53
+ info: Summary info about your team
54
+ editor:
55
+ pickPhoto: Pick photo
42
56
  inTabLabels:
43
57
  topNav: Top Navigation
44
58
  footer: Footer
@@ -65,6 +79,7 @@ en:
65
79
  legalAdvice: "Legal Notice"
66
80
  privacyPolicy: "Privacy Policy"
67
81
  adminSections:
82
+ pages: Pages
68
83
  import: Import Data
69
84
  start: Home
70
85
  agencyDetails: Agency
@@ -243,3 +258,201 @@ en:
243
258
  visible: Visible
244
259
  reference: Ref
245
260
  type: Type
261
+
262
+ # TODO - move Spanish versions of below to server side
263
+ save: Save
264
+ cancel: Cancel
265
+ edit: Edit
266
+ preview: Preview
267
+ close: Close
268
+ addLogo: Add Logo
269
+ addPhotos: Add Photos
270
+ create: Create
271
+ delete: Delete
272
+ show: Show
273
+ hide: Hide
274
+ logo: Logo
275
+ aboutUsPhoto: About Us photo
276
+ addAboutUsPhoto: Add About Us photo
277
+
278
+ visible: Visible
279
+ hidden: Hidden
280
+
281
+ editWebsite: Edit Website
282
+ settingsForWebsite: Settings for Website
283
+ contentForWebsite: Content for Website
284
+ sectionsForWebsite: Website Sections
285
+ themesForWebsite: Website Themes
286
+ importExport: Import and export data
287
+ returnToWebsite: Return to web
288
+ settingsForProperties: Settings for properties
289
+ returnToProperties: Return to properties
290
+ addProperty: Add property
291
+ addClient: Add client
292
+ newProperty: New Property
293
+ newClient: New Client
294
+ propertiesList: Properties list
295
+ clientsList: Clients list
296
+
297
+ prompts:
298
+ fixErrors: Please correct the errors below
299
+
300
+ todos:
301
+ createContent: Create some content
302
+ companyDetails: Set up your company details
303
+
304
+ locationTab:
305
+ confirmAddress: Confirm new location
306
+
307
+ agencySections:
308
+ general: Agency Details
309
+ location: Location
310
+ user: User Details
311
+
312
+ siteLayout:
313
+ wide: Wide
314
+ boxed: Boxed
315
+
316
+ propertySections:
317
+ general: General
318
+ location: Location
319
+ text: Text
320
+ extras: Features
321
+ photos: Photos
322
+ sale: Sale / Rental
323
+ owner: Owner
324
+
325
+ propertyGeneralSections:
326
+ sale: Sale
327
+ longtermRental: Long term rental
328
+ seasonalRental: Seasonal rental
329
+ visibility: Visibility
330
+ generalData: General Data
331
+ characteristics: Characteristics
332
+ portals: Web Portals
333
+ extras: Features
334
+
335
+ translationsSections:
336
+ extras: Features
337
+ propertyTypes: Property Types
338
+ propertyOrigins: Property Origins
339
+ propertyStates: Property States
340
+ propertyLabels: Property Labels
341
+ provinces: Provinces
342
+
343
+ toolTips:
344
+ forSale: Select if property is available for sale
345
+ priceSaleCurrent: Current selling price
346
+ saleDiscount: saleDiscount
347
+ priceSaleOriginal: Original selling price
348
+ longTermRental: Select 'Yes' if property is available for long term rental
349
+ priceRentalMonthlyCurrent: Current rental price
350
+ priceRentalMonthlyOriginal: Original rental price
351
+
352
+ addNewEntry: Add New Entry
353
+ visible: Select 'Yes' to publish property on the website
354
+ highlighted: Select 'Yes' to highlight property on the website
355
+ seasonalRental: Select 'Yes' if property is rentened seasonaly
356
+ ref: Reference number for property
357
+
358
+ alerts:
359
+ changesDetected: You have unsaved changes.
360
+ deletingProperty: Are you sure you want to delete this property. This action cannot be undone.
361
+ navigatingFromChanges: You have unsaved changes. Please save or cancel your changes.
362
+ visibleProperties: These properties are visible on your website
363
+ hiddenProperties: These properties will not be shown on your website
364
+ clickMapToUpdate: Click on map to select address or type directly below.
365
+
366
+ datatables:
367
+ sInfo: Showing items from _START_ al _END_ from a total of _TOTAL_ properties
368
+ sInfoEmpty: Showing items from 0 al 0 from a total of 0 properties
369
+ sInfoPostFix: ""
370
+ sSearch: Search
371
+ sUrl: ""
372
+ sInfoThousands: ","
373
+ oPaginate:
374
+ sFirst: "<<"
375
+ sLast: ">>"
376
+ sNext: ">"
377
+ sPrevious: "<"
378
+
379
+ alert:
380
+ deleteItem: Are you sure you want to delete this item?
381
+ deleteButton: Yes, delete it!
382
+
383
+ street: Street
384
+ streetAddress: Street Address
385
+ streetNumber: Street Number
386
+ city: City
387
+ postCode: Post Code
388
+ region: Region
389
+ zone: Zone
390
+ locality: Locality
391
+ country: Country
392
+
393
+ properties: Properties
394
+
395
+ cards:
396
+ website: Website
397
+ websitePrompt: Website actions
398
+ websiteLink: Go to web control panel
399
+ properties: Properties
400
+ propertiesPrompt: Property actions
401
+ propertiesLink: Go to properties
402
+ tasks:
403
+ addProperty: Add a property
404
+ addPropertyPrompt: properties / Add property
405
+ manageProperties: Manage properties
406
+ managePropertiesPrompt: Properties / Edit property
407
+ changeLogo: Manage logo, languages and appearance
408
+ changeLogoPrompt: Web Configuration
409
+ changeLang: Change web language
410
+ changeLangPrompt: Web Configuration
411
+ changeLegalText: Change 'Legal' texts
412
+ manageLandingCarousel: Manage landing page carousel
413
+ changeAboutUsText: Change 'About Us' text
414
+ managePropertyTypes: Manage property types
415
+ managePropertyExtras: Manage property features
416
+
417
+ buttonLabels:
418
+ configureAvailableExtras: Configure available features
419
+ selectImagesToAdd: Select images to add
420
+ selectRemoteImages: Add images from urls
421
+
422
+ errors:
423
+ genericServerError: Sorry, there has been an error
424
+ languageRequired: You must select at least one language
425
+ inclusion: is not included in the list
426
+ exclusion: is reserved
427
+ invalid: is invalid
428
+ confirmation: "doesn't match {{attribute}}"
429
+ accepted: must be accepted
430
+ empty: "can't be empty"
431
+ blank: "can't be blank"
432
+ present: must be blank
433
+ tooLong: is too long (maximum is {{count}} characters)
434
+ tooShort: is too short (minimum is {{count}} characters)
435
+ wrongLength: is the wrong length (should be {{count}} characters)
436
+ notANumber: is not a number
437
+ notAnInteger: must be an integer
438
+ greaterThan: must be greater than {{count}}
439
+ greaterThanOrEqualTo: must be greater than or equal to {{count}}
440
+ equalTo: must be equal to {{count}}
441
+ lessThan: must be less than {{count}}
442
+ lessThanOrEqualTo: must be less than or equal to {{count}}
443
+ otherThan: must be other than {{count}}
444
+ odd: must be odd
445
+ even: must be even
446
+ tooShortVjs: is too short
447
+ notAUrlVjs: is not a valid URL
448
+
449
+ ar: Arabic
450
+ en: English
451
+ es: Spanish
452
+ ca: Catalan
453
+ fr: French
454
+ ru: Russian
455
+ nl: Dutch
456
+ it: Italian
457
+ de: German
458
+ pt: Portuguese