phcdevworks_real_estate 2.7.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2106db9529f89eeb6a9fb032b39b21988d09725504dcb73d50dd7aed9c552393
4
- data.tar.gz: db146c6d52bd817959538c23b607d55286cb4cb5cde30557dc01b1a296457a49
3
+ metadata.gz: ed98e1216a3c57420d8fa5399098a9aa7ace0b31a93a6bc2e7d3df25ecf6368a
4
+ data.tar.gz: 726acc600db899e9a6098714ed39e7d5201745013a58bdcddf3f00c5c6af6a80
5
5
  SHA512:
6
- metadata.gz: 5a6b2e39c32ed8ba3e23bf47b6dad87d064c7d81788a5d4eaa92b8b148e3ddfc41148d4f14c0bab8d52218a3ed337da8ebedfd5e785805841592d4c0fea48849
7
- data.tar.gz: 945812936bd04963c6e017e2392130d2536ed0b8099f3e5b7ab2b735fc49051651d1876cfb3dc21a599b8cd990267bdc95119d028098b99db0d21c33b107767a
6
+ metadata.gz: 8ab7c355c652ea7763c58db49689017602b9cd659106db56d5a95ea93282c271778bc2816ea10f5bb5a19a38d1ec47e9323cb322e2d4b4fbd1804e8310c824ce
7
+ data.tar.gz: d0aa061e69ed9a48fa72d553b52b078fac2c5bac3935ec94471a29e259299361b6d00a21664a130641baec88a2a4f216ecbdaaefd8671e04e41aa4699221b400
@@ -75,7 +75,7 @@ module PhcdevworksRealEstate
75
75
 
76
76
  # Whitelist
77
77
  def property_feature_params
78
- params.require(:property_feature).permit(:feature_name)
78
+ params.require(:property_feature).permit(:property_feature_name)
79
79
  end
80
80
 
81
81
  end
@@ -75,7 +75,7 @@ module PhcdevworksRealEstate
75
75
 
76
76
  # Whitelist
77
77
  def property_listing_params
78
- params.require(:property_listing).permit(:listing_title, :listing_description, :listing_street_address, :listing_price, :listing_area, :listing_property_area, :listing_garage_area, :listing_room, :listing_bed, :listing_bath, :listing_garage, :listing_type, :listing_status, :listing_year_built, :listing_energy_class, :listing_leed_rating, :listing_upload, :user_id, :org_id, gallery_upload: [], feature_ids: [])
78
+ params.require(:property_listing).permit(:property_listing_title, :property_listing_description, :property_listing_street_address, :property_listing_price, :property_listing_area, :property_listing_property_area, :property_listing_garage_area, :property_listing_room, :property_listing_bed, :property_listing_bath, :property_listing_garage, :property_listing_type, :property_listing_status, :property_listing_year_built, :property_listing_energy_class, :property_listing_leed_rating, :optimization_id, :slug, :user_id, :org_id, gallery_upload: [], feature_ids: [])
79
79
  end
80
80
 
81
81
  end
@@ -5,17 +5,17 @@ module PhcdevworksRealEstate
5
5
  extend FriendlyId
6
6
 
7
7
  # Relationships
8
- has_and_belongs_to_many :listings, class_name: 'Phcreallistingspro::Property::Listing', :join_table => 'phcdevworks_real_estate_features_listings'
8
+ has_and_belongs_to_many :listings, class_name: 'Phcreallistingspro::Property::Listing', :join_table => 'phcdevworks_real_estate_property_features_listings', :dependent => :destroy
9
9
 
10
10
  # Validation for Form Fields
11
- validates :feature_name,
11
+ validates :property_feature_name,
12
12
  presence: true
13
13
 
14
14
  # Clean URL Define
15
- friendly_id :phcdev_property_feature_nice_urls, use: [:slugged, :finders]
15
+ friendly_id :property_feature_nice_urls, use: [:slugged, :finders]
16
16
 
17
- def phcdev_property_feature_nice_urls
18
- [:feature_name]
17
+ def property_feature_nice_urls
18
+ [:property_feature_name]
19
19
  end
20
20
 
21
21
  end
@@ -9,26 +9,26 @@ module PhcdevworksRealEstate
9
9
  has_many_attached :gallery_upload
10
10
 
11
11
  # Relationships
12
- has_and_belongs_to_many :features, class_name: 'Phcreallistingspro::Property::Feature', :join_table => 'phcdevworks_real_estate_features_listings'
12
+ has_and_belongs_to_many :features, class_name: 'Phcreallistingspro::Property::Feature', :join_table => 'phcdevworks_real_estate_property_features_listings', :dependent => :destroy
13
13
 
14
14
  # Validation for Form Fields
15
- validates :listing_title,
15
+ validates :property_listing_title,
16
16
  presence: true
17
17
 
18
- validates :listing_description,
18
+ validates :property_listing_description,
19
19
  presence: true
20
20
 
21
- validates :listing_street_address,
21
+ validates :property_listing_street_address,
22
22
  presence: true
23
23
 
24
- validates :listing_price,
24
+ validates :property_listing_price,
25
25
  presence: true
26
26
 
27
27
  # Clean URL Define
28
- friendly_id :phcdev_property_listing_nice_urls, use: [:slugged, :finders]
28
+ friendly_id :property_listing_nice_urls, use: [:slugged, :finders]
29
29
 
30
- def phcdev_property_listing_nice_urls
31
- [:listing_title]
30
+ def property_listing_nice_urls
31
+ [:property_listing_title]
32
32
  end
33
33
 
34
34
  end
@@ -38,37 +38,47 @@
38
38
  <!-- -PHC- Sidebar - Sidebar Navigation -->
39
39
  <ul class="nav">
40
40
 
41
- <% if defined?phcdevworks_members %>
42
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
43
- <li class="nav-header">Membership Manager</li>
41
+ <% if defined?phcdevworks_press %>
42
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
43
+ <li class="nav-header">Articles & Blogging</li>
44
44
  <li class="has-sub">
45
45
  <a href="javascript:;">
46
46
  <b class="caret"></b>
47
- <i class="fad fa-users"></i>
48
- <span>Member"s Data</span>
47
+ <i class="fad fa-newspaper"></i>
48
+ <span>Blog Articles</span>
49
49
  </a>
50
50
  <ul class="sub-menu">
51
- <li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>"><%= link_to("Profile Index", phcdevworks_members.member_profiles_path) %></li>
52
- <li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles#new") %>"><%= link_to("New Member Profile", phcdevworks_members.new_member_profile_path) %></li>
51
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts") %>"><%= link_to("Article Index", phcdevworks_press.article_posts_path) %></li>
52
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts#new") %>"><%= link_to("Add a New Aritcle", phcdevworks_press.new_article_post_path) %></li>
53
53
  </ul>
54
54
  </li>
55
- <li class="nav-header">Member"s Directory</li>
56
55
  <li class="has-sub">
57
56
  <a href="javascript:;">
58
57
  <b class="caret"></b>
59
- <i class="fad fa-list-alt"></i>
60
- <span>Member"s Directory</span>
58
+ <i class="fad fa-star-half"></i>
59
+ <span>Review Articles</span>
61
60
  </a>
62
61
  <ul class="sub-menu">
63
- <li class="<%= phc_menu_active_controller("phcdevworks_members/directory/categories") %>"><%= link_to("Directory Index", phcdevworks_members.directory_categories_path) %></li>
64
- <li class="<%= phc_menu_active_controller("phcdevworks_members/directory/categories#new") %>"><%= link_to("New Directory Listing", phcdevworks_members.new_directory_category_path) %></li>
62
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts") %>"><%= link_to("Reviews Index", phcdevworks_press.review_posts_path) %></li>
63
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts#new") %>"><%= link_to("Add a New Review", phcdevworks_press.new_review_post_path) %></li>
65
64
  </ul>
66
65
  </li>
67
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
66
+ <li class="has-sub">
67
+ <a href="javascript:;">
68
+ <b class="caret"></b>
69
+ <i class="fad fa-th-list"></i>
70
+ <span>List Articles</span>
71
+ </a>
72
+ <ul class="sub-menu">
73
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts") %>"><%= link_to("Lists Index", phcdevworks_press.list_posts_path) %></li>
74
+ <li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts#new") %>"><%= link_to("Add a New List", phcdevworks_press.new_list_post_path) %></li>
75
+ </ul>
76
+ </li>
77
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
68
78
  <% end %>
69
79
 
70
80
  <% if defined?phcdevworks_portfolio %>
71
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
81
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
72
82
  <li class="nav-header">Portfolio</li>
73
83
  <li class="has-sub">
74
84
  <a href="javascript:;">
@@ -84,54 +94,73 @@
84
94
  <li class="has-sub">
85
95
  <a href="javascript:;">
86
96
  <b class="caret"></b>
87
- <i class="fad fa-sitemap"></i>
88
- <span>Project Categories</span>
97
+ <i class="fad fa-folders"></i>
98
+ <span>Project Types</span>
89
99
  </a>
90
100
  <ul class="sub-menu">
91
- <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Category", phcdevworks_portfolio.project_categories_path) %></li>
92
- <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Category", phcdevworks_portfolio.new_project_category_path) %></li>
101
+ <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Type", phcdevworks_portfolio.project_types_path) %></li>
102
+ <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Types", phcdevworks_portfolio.new_project_type_path) %></li>
93
103
  </ul>
94
104
  </li>
105
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
106
+ <% end %>
107
+
108
+ <% if defined?phcdevworks_tutorials %>
109
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
110
+ <li class="nav-header">Tutorial Posts</li>
95
111
  <li class="has-sub">
96
112
  <a href="javascript:;">
97
113
  <b class="caret"></b>
98
- <i class="fad fa-folders"></i>
99
- <span>Project Types</span>
114
+ <i class="fad fa-chalkboard-teacher"></i>
115
+ <span>Tutorial Posts</span>
100
116
  </a>
101
117
  <ul class="sub-menu">
102
- <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Type", phcdevworks_portfolio.project_types_path) %></li>
103
- <li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Types", phcdevworks_portfolio.new_project_type_path) %></li>
118
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>"><%= link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %></li>
119
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts#new") %>"><%= link_to "New Tutorial", phcdevworks_tutorials.new_tutorial_post_path %></li>
104
120
  </ul>
105
121
  </li>
106
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
122
+ <li class="nav-header">Command Lists & Items</li>
123
+ <li class="has-sub">
124
+ <a href="javascript:;">
125
+ <b class="caret"></b>
126
+ <i class="fad fa-terminal"></i>
127
+ <span>Command Lists</span>
128
+ </a>
129
+ <ul class="sub-menu">
130
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>"><%= link_to "List Index", phcdevworks_tutorials.command_posts_path %></li>
131
+ <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts#new") %>"><%= link_to "New List", phcdevworks_tutorials.new_command_post_path %></li>
132
+ </ul>
133
+ </li>
134
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
107
135
  <% end %>
108
136
 
109
- <% if defined?phcdevworks_press %>
110
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
111
- <li class="nav-header">Articles & Blogging</li>
137
+ <% if defined?phcdevworks_members %>
138
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
139
+ <li class="nav-header">Membership Manager</li>
112
140
  <li class="has-sub">
113
141
  <a href="javascript:;">
114
142
  <b class="caret"></b>
115
- <i class="fad fa-newspaper"></i>
116
- <span>Article Posts</span>
143
+ <i class="fad fa-users"></i>
144
+ <span>Member"s Data</span>
117
145
  </a>
118
146
  <ul class="sub-menu">
119
- <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts") %>"><%= link_to("Article Index", phcdevworks_press.article_posts_path) %></li>
120
- <li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts#new") %>"><%= link_to("New Aritcle", phcdevworks_press.new_article_post_path) %></li>
147
+ <li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>"><%= link_to("Profile Index", phcdevworks_members.member_profiles_path) %></li>
148
+ <li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles#new") %>"><%= link_to("New Member Profile", phcdevworks_members.new_member_profile_path) %></li>
121
149
  </ul>
122
150
  </li>
151
+ <li class="nav-header">Member"s Directory</li>
123
152
  <li class="has-sub">
124
153
  <a href="javascript:;">
125
154
  <b class="caret"></b>
126
- <i class="fad fa-sitemap"></i>
127
- <span>Article Categories</span>
155
+ <i class="fad fa-list-alt"></i>
156
+ <span>Member"s Directory</span>
128
157
  </a>
129
158
  <ul class="sub-menu">
130
- <li class="<%= phc_menu_active_controller("phcdevworks_press/article/categories") %>"><%= link_to("Category Index", phcdevworks_press.article_categories_path) %></li>
131
- <li class="<%= phc_menu_active_controller("phcdevworks_press/article/categories#new") %>"><%= link_to("New Category", phcdevworks_press.new_article_category_path) %></li>
159
+ <li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories") %>"><%= link_to("Directory Index", phcdevworks_members.directory_categories_path) %></li>
160
+ <li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories#new") %>"><%= link_to("New Directory Listing", phcdevworks_members.new_directory_category_path) %></li>
132
161
  </ul>
133
162
  </li>
134
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
163
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
135
164
  <% end %>
136
165
 
137
166
  <% if defined?phcdevworks_scripts %>
@@ -203,44 +232,32 @@
203
232
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
204
233
  <% end %>
205
234
 
206
- <% if defined?phcdevworks_tutorials %>
207
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
208
- <li class="nav-header">Tutorial Posts</li>
209
- <li class="has-sub">
210
- <a href="javascript:;">
211
- <b class="caret"></b>
212
- <i class="fad fa-chalkboard-teacher"></i>
213
- <span>Tutorial Posts</span>
214
- </a>
215
- <ul class="sub-menu">
216
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>"><%= link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %></li>
217
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts#new") %>"><%= link_to "New Tutorial", phcdevworks_tutorials.new_tutorial_post_path %></li>
218
- </ul>
219
- </li>
235
+ <% if defined?phcdevworks_core_modules %>
236
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
237
+ <li class="nav-header">Core Modules</li>
220
238
  <li class="has-sub">
221
239
  <a href="javascript:;">
222
240
  <b class="caret"></b>
223
241
  <i class="fad fa-sitemap"></i>
224
- <span>Tutorial Categories</span>
242
+ <span>Categories</span>
225
243
  </a>
226
244
  <ul class="sub-menu">
227
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/categories") %>"><%= link_to "Category Index", phcdevworks_tutorials.tutorial_categories_path %></li>
228
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/categories#new") %>"><%= link_to "New Category", phcdevworks_tutorials.new_tutorial_category_path %></li>
245
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.post_categories_path) %></li>
246
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
229
247
  </ul>
230
248
  </li>
231
- <li class="nav-header">Command Lists & Items</li>
232
249
  <li class="has-sub">
233
250
  <a href="javascript:;">
234
251
  <b class="caret"></b>
235
- <i class="fad fa-terminal"></i>
236
- <span>Command Lists</span>
252
+ <i class="fad fa-analytics"></i>
253
+ <span>Marketing</span>
237
254
  </a>
238
255
  <ul class="sub-menu">
239
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>"><%= link_to "List Index", phcdevworks_tutorials.command_posts_path %></li>
240
- <li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts#new") %>"><%= link_to "New List", phcdevworks_tutorials.new_command_post_path %></li>
256
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
257
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations#new") %>"><%= link_to("Add SEO Data", phcdevworks_core_modules.new_marketing_optimization_path) %></li>
241
258
  </ul>
242
259
  </li>
243
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
260
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
244
261
  <% end %>
245
262
 
246
263
  <% if current_user && current_user.admin? %>
@@ -7,8 +7,8 @@
7
7
 
8
8
  <!-- Form Input Fields -->
9
9
  <div class="form-group">
10
- <%= phc_pro_property_feature.label :feature_name, "Feature Name" %>
11
- <%= phc_pro_property_feature.text_field :feature_name, placeholder: "Feature Name", class: "form-control" %>
10
+ <%= phc_pro_property_feature.label :property_feature_name, "Feature Name" %>
11
+ <%= phc_pro_property_feature.text_field :property_feature_name, placeholder: "Feature Name", class: "form-control" %>
12
12
  </div>
13
13
  <!-- Form Input Fields -->
14
14
 
@@ -48,7 +48,7 @@
48
48
  <tbody>
49
49
  <% @property_features.each do |property_feature| %>
50
50
  <tr>
51
- <td class="highlight"><%= link_to property_feature.feature_name, property_feature %></td>
51
+ <td class="highlight"><%= link_to property_feature.property_feature_name, property_feature %></td>
52
52
  <td>
53
53
  <div class="btn-group d-flex" role="group" aria-label="Property Listings">
54
54
  <%= link_to "Feature Details", property_feature, class: "btn btn-primary btn-xs" %>
@@ -53,7 +53,7 @@
53
53
  <div class="panel-body">
54
54
  <p>
55
55
  <strong>Feature Name</strong>
56
- <%= @property_feature.feature_name %>
56
+ <%= @property_feature.property_feature_name %>
57
57
  </p>
58
58
  </div>
59
59
  </div>
@@ -7,99 +7,99 @@
7
7
 
8
8
  <!-- Form Input Fields -->
9
9
  <div class="form-group">
10
- <%= form.label :listing_title, "Listing TItle" %>
11
- <%= form.text_field :listing_title, placeholder: "Listing Title", class: "form-control" %>
10
+ <%= form.label :property_listing_title, "Listing TItle" %>
11
+ <%= form.text_field :property_listing_title, placeholder: "Listing Title", class: "form-control" %>
12
12
  </div>
13
13
 
14
14
  <div class="form-group">
15
- <%= form.label :listing_description, "Listing Description" %>
16
- <%= form.text_field :listing_description, placeholder: "Listing Description", class: "form-control" %>
15
+ <%= form.label :property_listing_description, "Listing Description" %>
16
+ <%= form.text_area :property_listing_description, placeholder: "Listing Description", class: "form-control" %>
17
17
  </div>
18
18
 
19
19
  <div class="form-group">
20
- <%= form.label :listing_street_address, "Listing Street Address" %>
21
- <%= form.text_field :listing_street_address, placeholder: "Listing Street Address", class: "form-control", id: "phc-gmaps-input-address" %>
20
+ <%= form.label :property_listing_street_address, "Listing Street Address" %>
21
+ <%= form.text_field :property_listing_street_address, placeholder: "Listing Street Address", class: "form-control", id: "phc-gmaps-input-address" %>
22
22
  </div>
23
23
 
24
24
  <div class="form-group">
25
- <%= form.label :listing_price, "Listing Price" %>
26
- <%= form.text_field :listing_price, placeholder: "Listing Price", class: "form-control" %>
25
+ <%= form.label :property_listing_price, "Listing Price" %>
26
+ <%= form.text_field :property_listing_price, placeholder: "Listing Price", class: "form-control" %>
27
27
  </div>
28
28
 
29
29
  <hr>
30
30
 
31
31
  <div class="form-group">
32
- <%= form.label :listing_area, "Listing Area" %>
33
- <%= form.text_field :listing_area, placeholder: "Listing Area", class: "form-control" %>
32
+ <%= form.label :property_listing_area, "Listing Area" %>
33
+ <%= form.text_field :property_listing_area, placeholder: "Listing Area", class: "form-control" %>
34
34
  </div>
35
35
 
36
36
  <div class="form-group">
37
- <%= form.label :listing_property_area, "Listing Property Area" %>
38
- <%= form.text_field :listing_property_area, placeholder: "Listing Property Area", class: "form-control" %>
37
+ <%= form.label :property_listing_property_area, "Listing Property Area" %>
38
+ <%= form.text_field :property_listing_property_area, placeholder: "Listing Property Area", class: "form-control" %>
39
39
  </div>
40
40
 
41
41
  <div class="form-group">
42
- <%= form.label :listing_garage_area, "Listing Garage Area" %>
43
- <%= form.text_field :listing_garage_area, placeholder: "Listing Garage Area", class: "form-control" %>
42
+ <%= form.label :property_listing_garage_area, "Listing Garage Area" %>
43
+ <%= form.text_field :property_listing_garage_area, placeholder: "Listing Garage Area", class: "form-control" %>
44
44
  </div>
45
45
 
46
46
  <hr>
47
47
 
48
48
  <div class="form-group">
49
- <%= form.label :listing_room, "Listing How Many Rooms" %>
50
- <%= form.select(:listing_room, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
49
+ <%= form.label :property_isting_room, "Listing How Many Rooms" %>
50
+ <%= form.select(:property_listing_room, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
51
51
  </div>
52
52
 
53
53
  <div class="form-group">
54
- <%= form.label :listing_bed, "Listing How Many Bedrooms" %>
55
- <%= form.select(:listing_bed, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
54
+ <%= form.label :property_listing_bed, "Listing How Many Bedrooms" %>
55
+ <%= form.select(:property_listing_bed, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
56
56
  </div>
57
57
 
58
58
  <div class="form-group">
59
- <%= form.label :listing_bath, "Listing How Many Bathrooms" %>
60
- <%= form.select(:listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
59
+ <%= form.label :property_listing_bath, "Listing How Many Bathrooms" %>
60
+ <%= form.select(:property_listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
61
61
  </div>
62
62
 
63
63
  <div class="form-group">
64
- <%= form.label :listing_garage, "Listing Garage" %>
65
- <%= form.select(:listing_garage, ["1 Car","2 Cars","3 Cars","4+ Cars"], {}, { :class => "form-control" }) %>
64
+ <%= form.label :property_listing_garage, "Listing Garage" %>
65
+ <%= form.select(:property_listing_garage, ["1 Car","2 Cars","3 Cars","4+ Cars"], {}, { :class => "form-control" }) %>
66
66
  </div>
67
67
 
68
68
  <hr>
69
69
 
70
70
  <div class="form-group">
71
- <%= form.label :listing_type, "Listing Type" %>
72
- <%= form.select(:listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
71
+ <%= form.label :property_listing_type, "Listing Type" %>
72
+ <%= form.select(:property_listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
73
73
  </div>
74
74
 
75
75
  <div class="form-group">
76
- <%= form.label :listing_status, "Listing Status" %>
77
- <%= form.select(:listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
76
+ <%= form.label :property_listing_status, "Listing Status" %>
77
+ <%= form.select(:property_listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
78
78
  </div>
79
79
 
80
80
  <div class="form-group">
81
- <%= form.label :listing_year_built, "" %>
82
- <%= form.select(:listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
81
+ <%= form.label :property_listing_year_built, "" %>
82
+ <%= form.select(:property_listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
83
83
  </div>
84
84
 
85
85
  <div class="form-group">
86
- <%= form.label :listing_energy_class, "Listing Energy Class" %>
87
- <%= form.select(:listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
86
+ <%= form.label :property_listing_energy_class, "Listing Energy Class" %>
87
+ <%= form.select(:property_listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
88
88
  </div>
89
89
 
90
90
  <div class="form-group">
91
- <%= form.label :listing_leed_rating, "Listing LEED Rating" %>
92
- <%= form.select(:listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
91
+ <%= form.label :property_listing_leed_rating, "Listing LEED Rating" %>
92
+ <%= form.select(:property_listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
93
93
  </div>
94
94
 
95
95
  <div class="form-group">
96
- <%= form.label :listing_upload, "" %>
97
- <%= form.file_field :listing_upload, placeholder: "", class: "form-control" %>
96
+ <%= form.label :property_listing_upload, "" %>
97
+ <%= form.file_field :property_listing_upload, placeholder: "", class: "form-control" %>
98
98
  </div>
99
99
 
100
100
  <div class="form-group">
101
- <%= form.label :gallery_upload, "" %>
102
- <%= form.file_field :gallery_upload, multiple: true , placeholder: "", class: "form-control" %>
101
+ <%= form.label :property_gallery_upload, "" %>
102
+ <%= form.file_field :property_gallery_upload, multiple: true , placeholder: "", class: "form-control" %>
103
103
  </div>
104
104
  <!-- Form Input Fields -->
105
105
 
@@ -52,11 +52,11 @@
52
52
  <tbody>
53
53
  <% @property_listings.each do |property_listing| %>
54
54
  <tr>
55
- <td><%= property_listing.listing_title %></td>
56
- <td><%= property_listing.listing_price %></td>
57
- <td><%= property_listing.listing_year_built %></td>
58
- <td><%= property_listing.listing_type %></td>
59
- <td><%= property_listing.listing_status %></td>
55
+ <td><%= property_listing.property_listing_title %></td>
56
+ <td><%= property_listing.property_listing_price %></td>
57
+ <td><%= property_listing.property_listing_year_built %></td>
58
+ <td><%= property_listing.property_listing_type %></td>
59
+ <td><%= property_listing.property_listing_status %></td>
60
60
  <td>
61
61
  <div class="btn-group d-flex" role="group" aria-label="Property Listings">
62
62
  <%= link_to "Listing Details", property_listing, class: "btn btn-primary btn-xs" %>
@@ -14,5 +14,6 @@ PhcdevworksRealEstate::Engine.routes.draw do
14
14
 
15
15
  # Mount Routes
16
16
  mount PhcdevworksAccounts::Engine, :at => '/'
17
+ mount PhcdevworksCoreModules::Engine, :at => '/'
17
18
 
18
19
  end
@@ -2,26 +2,28 @@ class CreatePhcdevworksRealEstatePropertyListings < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  create_table :phcdevworks_real_estate_property_listings do |t|
4
4
 
5
- t.string :listing_title
6
- t.text :listing_description
7
- t.string :listing_street_address
8
- t.string :listing_price
9
-
10
- t.string :listing_area
11
- t.string :listing_property_area
12
- t.string :listing_garage_area
13
-
14
- t.string :listing_room
15
- t.string :listing_bed
16
- t.string :listing_bath
17
- t.string :listing_garage
18
-
19
- t.string :listing_type
20
- t.string :listing_status
21
-
22
- t.string :listing_year_built
23
- t.string :listing_energy_class
24
- t.string :listing_leed_rating
5
+ t.string :property_listing_title
6
+ t.text :property_listing_description
7
+ t.string :property_listing_street_address
8
+ t.string :property_listing_price
9
+
10
+ t.string :property_listing_area
11
+ t.string :property_listing_property_area
12
+ t.string :property_listing_garage_area
13
+
14
+ t.string :property_listing_room
15
+ t.string :property_listing_bed
16
+ t.string :property_listing_bath
17
+ t.string :property_listing_garage
18
+
19
+ t.string :property_listing_type
20
+ t.string :property_listing_status
21
+
22
+ t.string :property_listing_year_built
23
+ t.string :property_listing_energy_class
24
+ t.string :property_listing_leed_rating
25
+
26
+ t.string :optimization_id
25
27
 
26
28
  t.string :slug
27
29
  t.string :user_id
@@ -1,15 +1,17 @@
1
1
  class CreatePhcdevworksRealEstatePropertyFeatures < ActiveRecord::Migration[6.0]
2
2
  def change
3
3
  create_table :phcdevworks_real_estate_property_features do |t|
4
-
5
- t.string :feature_name
4
+
5
+ t.string :property_feature_name
6
+
7
+ t.string :optimization_id
6
8
 
7
9
  t.string :slug
8
10
  t.string :user_id
9
11
  t.string :org_id
10
12
 
11
13
  t.timestamps
12
-
14
+
13
15
  end
14
16
  end
15
- end
17
+ end
@@ -0,0 +1,10 @@
1
+ class CreatePhcdevworksRealEstatePropertyFeaturesListings < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :phcdevworks_real_estate_property_features_listings do |t|
4
+
5
+ t.integer :feature_id
6
+ t.integer :listing_id
7
+
8
+ end
9
+ end
10
+ end
@@ -28,6 +28,7 @@ module PhcdevworksRealEstate
28
28
 
29
29
  # Load User Accounts
30
30
  require "phcdevworks_accounts"
31
+ require "phcdevworks_core_modules"
31
32
 
32
33
  # Engine Namespace
33
34
  isolate_namespace PhcdevworksRealEstate
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksRealEstate
2
- VERSION = "2.7.0"
2
+ VERSION = "4.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_real_estate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-25 00:00:00.000000000 Z
11
+ date: 2020-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -64,84 +64,98 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.9'
67
+ version: '2.0'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '1.9'
74
+ version: '2.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: phcthemes_web_theme_pack
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.9'
81
+ version: '2.0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.9'
88
+ version: '2.0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: phcdevworks_active_menus
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '1.4'
95
+ version: '2.0'
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '1.4'
102
+ version: '2.0'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: phcdevworks_core
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '1.4'
109
+ version: '2.0'
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '1.4'
116
+ version: '2.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: phcdevworks_notifications
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '1.4'
123
+ version: '2.0'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '1.4'
130
+ version: '2.0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: phcdevworks_titleseo
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '2.3'
137
+ version: '3.0'
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '2.3'
144
+ version: '3.0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: phcdevworks_core_modules
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '6.0'
152
+ type: :runtime
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: '6.0'
145
159
  - !ruby/object:Gem::Dependency
146
160
  name: wicked
147
161
  requirement: !ruby/object:Gem::Requirement
@@ -190,14 +204,14 @@ dependencies:
190
204
  requirements:
191
205
  - - "~>"
192
206
  - !ruby/object:Gem::Version
193
- version: '1.67'
207
+ version: '1.74'
194
208
  type: :runtime
195
209
  prerelease: false
196
210
  version_requirements: !ruby/object:Gem::Requirement
197
211
  requirements:
198
212
  - - "~>"
199
213
  - !ruby/object:Gem::Version
200
- version: '1.67'
214
+ version: '1.74'
201
215
  - !ruby/object:Gem::Dependency
202
216
  name: google-cloud-storage
203
217
  requirement: !ruby/object:Gem::Requirement
@@ -232,14 +246,14 @@ dependencies:
232
246
  requirements:
233
247
  - - "~>"
234
248
  - !ruby/object:Gem::Version
235
- version: '1.10'
249
+ version: '2.0'
236
250
  type: :runtime
237
251
  prerelease: false
238
252
  version_requirements: !ruby/object:Gem::Requirement
239
253
  requirements:
240
254
  - - "~>"
241
255
  - !ruby/object:Gem::Version
242
- version: '1.10'
256
+ version: '2.0'
243
257
  - !ruby/object:Gem::Dependency
244
258
  name: sqlite3
245
259
  requirement: !ruby/object:Gem::Requirement
@@ -256,7 +270,7 @@ dependencies:
256
270
  version: '1.4'
257
271
  description: Ruby on Rails 6 Real Estate Property Listings Management Engine.
258
272
  email:
259
- - info@phcdevworks.com
273
+ - developers@phcdevworks.com
260
274
  executables: []
261
275
  extensions: []
262
276
  extra_rdoc_files: []
@@ -300,7 +314,7 @@ files:
300
314
  - config/routes.rb
301
315
  - db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb
302
316
  - db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb
303
- - db/migrate/20191024232111_create_phcdevworks_real_estate_features_listings.rb
317
+ - db/migrate/20191024232111_create_phcdevworks_real_estate_property_features_listings.rb
304
318
  - lib/phcdevworks_real_estate.rb
305
319
  - lib/phcdevworks_real_estate/engine.rb
306
320
  - lib/phcdevworks_real_estate/version.rb
@@ -1,8 +0,0 @@
1
- class CreatePhcdevworksRealEstateFeaturesListings < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_real_estate_features_listings do |t|
4
- t.integer :feature_id
5
- t.integer :listing_id
6
- end
7
- end
8
- end