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 +4 -4
- data/app/controllers/phcdevworks_real_estate/property/features_controller.rb +1 -1
- data/app/controllers/phcdevworks_real_estate/property/listings_controller.rb +1 -1
- data/app/models/phcdevworks_real_estate/property/feature.rb +5 -5
- data/app/models/phcdevworks_real_estate/property/listing.rb +8 -8
- data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +75 -58
- data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +2 -2
- data/app/views/phcdevworks_real_estate/property/features/index.html.erb +1 -1
- data/app/views/phcdevworks_real_estate/property/features/show.html.erb +1 -1
- data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +36 -36
- data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +5 -5
- data/config/routes.rb +1 -0
- data/db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb +22 -20
- data/db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb +6 -4
- data/db/migrate/20191024232111_create_phcdevworks_real_estate_property_features_listings.rb +10 -0
- data/lib/phcdevworks_real_estate/engine.rb +1 -0
- data/lib/phcdevworks_real_estate/version.rb +1 -1
- metadata +34 -20
- data/db/migrate/20191024232111_create_phcdevworks_real_estate_features_listings.rb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed98e1216a3c57420d8fa5399098a9aa7ace0b31a93a6bc2e7d3df25ecf6368a
|
4
|
+
data.tar.gz: 726acc600db899e9a6098714ed39e7d5201745013a58bdcddf3f00c5c6af6a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab7c355c652ea7763c58db49689017602b9cd659106db56d5a95ea93282c271778bc2816ea10f5bb5a19a38d1ec47e9323cb322e2d4b4fbd1804e8310c824ce
|
7
|
+
data.tar.gz: d0aa061e69ed9a48fa72d553b52b078fac2c5bac3935ec94471a29e259299361b6d00a21664a130641baec88a2a4f216ecbdaaefd8671e04e41aa4699221b400
|
@@ -75,7 +75,7 @@ module PhcdevworksRealEstate
|
|
75
75
|
|
76
76
|
# Whitelist
|
77
77
|
def property_listing_params
|
78
|
-
params.require(:property_listing).permit(:
|
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 => '
|
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 :
|
11
|
+
validates :property_feature_name,
|
12
12
|
presence: true
|
13
13
|
|
14
14
|
# Clean URL Define
|
15
|
-
friendly_id :
|
15
|
+
friendly_id :property_feature_nice_urls, use: [:slugged, :finders]
|
16
16
|
|
17
|
-
def
|
18
|
-
[:
|
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 => '
|
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 :
|
15
|
+
validates :property_listing_title,
|
16
16
|
presence: true
|
17
17
|
|
18
|
-
validates :
|
18
|
+
validates :property_listing_description,
|
19
19
|
presence: true
|
20
20
|
|
21
|
-
validates :
|
21
|
+
validates :property_listing_street_address,
|
22
22
|
presence: true
|
23
23
|
|
24
|
-
validates :
|
24
|
+
validates :property_listing_price,
|
25
25
|
presence: true
|
26
26
|
|
27
27
|
# Clean URL Define
|
28
|
-
friendly_id :
|
28
|
+
friendly_id :property_listing_nice_urls, use: [:slugged, :finders]
|
29
29
|
|
30
|
-
def
|
31
|
-
[:
|
30
|
+
def property_listing_nice_urls
|
31
|
+
[:property_listing_title]
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|
data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb
CHANGED
@@ -38,37 +38,47 @@
|
|
38
38
|
<!-- -PHC- Sidebar - Sidebar Navigation -->
|
39
39
|
<ul class="nav">
|
40
40
|
|
41
|
-
<% if defined?
|
42
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
43
|
-
<li class="nav-header">
|
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-
|
48
|
-
<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("
|
52
|
-
<li class="<%= phc_menu_active_controller("
|
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-
|
60
|
-
<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("
|
64
|
-
<li class="<%= phc_menu_active_controller("
|
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
|
-
|
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
|
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-
|
88
|
-
<span>Project
|
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
|
92
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New
|
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-
|
99
|
-
<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("
|
103
|
-
<li class="<%= phc_menu_active_controller("
|
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
|
-
|
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?
|
110
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
111
|
-
<li class="nav-header">
|
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-
|
116
|
-
<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("
|
120
|
-
<li class="<%= phc_menu_active_controller("
|
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-
|
127
|
-
<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("
|
131
|
-
<li class="<%= phc_menu_active_controller("
|
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
|
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?
|
207
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
208
|
-
<li class="nav-header">
|
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>
|
242
|
+
<span>Categories</span>
|
225
243
|
</a>
|
226
244
|
<ul class="sub-menu">
|
227
|
-
<li class="<%= phc_menu_active_controller("
|
228
|
-
<li class="<%= phc_menu_active_controller("
|
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-
|
236
|
-
<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("
|
240
|
-
<li class="<%= phc_menu_active_controller("
|
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
|
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 :
|
11
|
-
<%= phc_pro_property_feature.text_field :
|
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.
|
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" %>
|
@@ -7,99 +7,99 @@
|
|
7
7
|
|
8
8
|
<!-- Form Input Fields -->
|
9
9
|
<div class="form-group">
|
10
|
-
<%= form.label :
|
11
|
-
<%= form.text_field :
|
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 :
|
16
|
-
<%= form.
|
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 :
|
21
|
-
<%= form.text_field :
|
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 :
|
26
|
-
<%= form.text_field :
|
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 :
|
33
|
-
<%= form.text_field :
|
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 :
|
38
|
-
<%= form.text_field :
|
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 :
|
43
|
-
<%= form.text_field :
|
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 :
|
50
|
-
<%= form.select(:
|
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 :
|
55
|
-
<%= form.select(:
|
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 :
|
60
|
-
<%= form.select(:
|
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 :
|
65
|
-
<%= form.select(:
|
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 :
|
72
|
-
<%= form.select(:
|
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 :
|
77
|
-
<%= form.select(:
|
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 :
|
82
|
-
<%= form.select(:
|
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 :
|
87
|
-
<%= form.select(:
|
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 :
|
92
|
-
<%= form.select(:
|
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 :
|
97
|
-
<%= form.file_field :
|
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 :
|
102
|
-
<%= form.file_field :
|
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.
|
56
|
-
<td><%= property_listing.
|
57
|
-
<td><%= property_listing.
|
58
|
-
<td><%= property_listing.
|
59
|
-
<td><%= property_listing.
|
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" %>
|
data/config/routes.rb
CHANGED
@@ -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 :
|
6
|
-
t.text :
|
7
|
-
t.string :
|
8
|
-
t.string :
|
9
|
-
|
10
|
-
t.string :
|
11
|
-
t.string :
|
12
|
-
t.string :
|
13
|
-
|
14
|
-
t.string :
|
15
|
-
t.string :
|
16
|
-
t.string :
|
17
|
-
t.string :
|
18
|
-
|
19
|
-
t.string :
|
20
|
-
t.string :
|
21
|
-
|
22
|
-
t.string :
|
23
|
-
t.string :
|
24
|
-
t.string :
|
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 :
|
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
|
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:
|
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-
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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.
|
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.
|
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: '
|
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: '
|
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
|
-
-
|
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/
|
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
|