phcdevworks_real_estate 5.2.0 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +0 -0
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_real_estate_manifest.js +2 -3
- data/app/controllers/phcdevworks_real_estate/application_controller.rb +0 -0
- data/app/controllers/phcdevworks_real_estate/property/features_controller.rb +0 -0
- data/app/controllers/phcdevworks_real_estate/property/listings_controller.rb +0 -0
- data/app/helpers/phcdevworks_real_estate/application_helper.rb +0 -0
- data/app/helpers/phcdevworks_real_estate/property/features_helper.rb +0 -0
- data/app/helpers/phcdevworks_real_estate/property/listings_helper.rb +0 -0
- data/app/jobs/phcdevworks_real_estate/application_job.rb +0 -0
- data/app/mailers/phcdevworks_real_estate/application_mailer.rb +0 -0
- data/app/models/phcdevworks_real_estate/application_record.rb +0 -0
- data/app/models/phcdevworks_real_estate/property/feature.rb +0 -0
- data/app/models/phcdevworks_real_estate/property/listing.rb +0 -0
- data/app/models/phcdevworks_real_estate/property.rb +0 -0
- data/app/views/layouts/phcdevworks_real_estate/application.html.erb +73 -66
- data/app/views/layouts/phcdevworks_real_estate/components/backend/footer/_footer.html.erb +10 -9
- data/app/views/layouts/phcdevworks_real_estate/components/backend/navigation/_top_menu.html.erb +26 -25
- data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +491 -349
- data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +10 -10
- data/app/views/phcdevworks_real_estate/property/features/edit.html.erb +23 -31
- data/app/views/phcdevworks_real_estate/property/features/index.html.erb +50 -58
- data/app/views/phcdevworks_real_estate/property/features/new.html.erb +23 -31
- data/app/views/phcdevworks_real_estate/property/features/show.html.erb +15 -15
- data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +42 -42
- data/app/views/phcdevworks_real_estate/property/listings/edit.html.erb +23 -31
- data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +60 -68
- data/app/views/phcdevworks_real_estate/property/listings/new.html.erb +23 -31
- data/app/views/phcdevworks_real_estate/property/listings/show.html.erb +13 -13
- data/config/routes.rb +0 -4
- data/config/spring.rb +0 -0
- data/db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb +1 -1
- data/db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb +1 -1
- data/db/migrate/20191024232111_create_phcdevworks_real_estate_property_features_listings.rb +1 -1
- data/lib/phcdevworks_real_estate/engine.rb +47 -47
- data/lib/phcdevworks_real_estate/version.rb +1 -1
- data/lib/phcdevworks_real_estate.rb +6 -6
- data/lib/tasks/phcdevworks_real_estate_tasks.rake +4 -4
- metadata +34 -80
- data/app/assets/stylesheets/phcdevworks_real_estate/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_real_estate/property/features.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss +0 -0
@@ -1,90 +1,82 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Property Listings" %>
|
3
3
|
<% phc_title_tagline "Property Listings Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Property" %>
|
5
5
|
<% phc_breadcrumb_two link_to "Listings" %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!--
|
7
|
+
<!-- -PHCDEV- Title Variables -->
|
8
8
|
|
9
|
-
<!--
|
10
|
-
<ol class="breadcrumb
|
9
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb float-xl-end">
|
11
11
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
12
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
13
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
14
|
</ol>
|
15
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
16
16
|
|
17
|
-
<!--
|
18
|
-
<
|
19
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- -PHCDEV- Header -->
|
20
20
|
|
21
|
-
<!--
|
22
|
-
<div class="
|
23
|
-
<div class="col-lg-12">
|
21
|
+
<!-- -PHCDEV- Panel -->
|
22
|
+
<div class="panel panel-inverse">
|
24
23
|
|
25
|
-
|
26
|
-
|
24
|
+
<!-- -PHCDEV- Panel - Heading -->
|
25
|
+
<div class="panel-heading">
|
26
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
27
|
+
</div>
|
28
|
+
<!-- -PHCDEV- Panel - Heading -->
|
27
29
|
|
28
|
-
|
29
|
-
|
30
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
-
</div>
|
32
|
-
<!-- Panel - Heading -->
|
30
|
+
<!-- -PHCDEV- Panel - Body -->
|
31
|
+
<div class="panel-body">
|
33
32
|
|
34
|
-
|
35
|
-
|
33
|
+
<!-- -PHCDEV- Index - Table -->
|
34
|
+
<div class="table-responsive">
|
35
|
+
<table class="table table-striped table-bordered">
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
<thead>
|
38
|
+
<tr>
|
39
|
+
<th>Listing Title</th>
|
40
|
+
<th>Listing Price</th>
|
41
|
+
<th>Year Built</th>
|
42
|
+
<th>Listing Type</th>
|
43
|
+
<th>Listing Status</th>
|
44
|
+
<th></th>
|
45
|
+
</tr>
|
46
|
+
</thead>
|
40
47
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
48
|
+
<tbody>
|
49
|
+
<% @property_listings.each do |property_listing| %>
|
50
|
+
<tr>
|
51
|
+
<td><%= property_listing.property_listing_title %></td>
|
52
|
+
<td><%= property_listing.property_listing_price %></td>
|
53
|
+
<td><%= property_listing.property_listing_year_built %></td>
|
54
|
+
<td><%= property_listing.property_listing_type %></td>
|
55
|
+
<td><%= property_listing.property_listing_status %></td>
|
56
|
+
<td>
|
57
|
+
<div class="btn-group d-flex" role="group" aria-label="Property Listings">
|
58
|
+
<%= link_to "Listing Details", property_listing, class: "btn btn-primary btn-xs" %>
|
59
|
+
<%= link_to "Update Listing", edit_property_listing_path(property_listing), class: "btn btn-primary btn-xs" %>
|
60
|
+
<%= link_to "Remove Listing", property_listing, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
|
61
|
+
</div>
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<% end %>
|
65
|
+
</tbody>
|
51
66
|
|
52
|
-
|
53
|
-
|
54
|
-
|
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
|
-
<td>
|
61
|
-
<div class="btn-group d-flex" role="group" aria-label="Property Listings">
|
62
|
-
<%= link_to "Listing Details", property_listing, class: "btn btn-primary btn-xs" %>
|
63
|
-
<%= link_to "Update Listing", edit_property_listing_path(property_listing), class: "btn btn-primary btn-xs" %>
|
64
|
-
<%= link_to "Remove Listing", property_listing, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
|
65
|
-
</div>
|
66
|
-
</td>
|
67
|
-
</tr>
|
68
|
-
<% end %>
|
69
|
-
</tbody>
|
67
|
+
</table>
|
68
|
+
</div>
|
69
|
+
<!-- -PHCDEV- Index - Table -->
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
71
|
+
<!-- -PHCDEV- New Button -->
|
72
|
+
<%= link_to phcdevworks_real_estate.new_property_listing_path, class: "btn btn-primary" do %>
|
73
|
+
<i class="fad fa-plus-circle"></i>
|
74
|
+
<%= "Add a New Listing" %>
|
75
|
+
<% end %>
|
76
|
+
<!-- -PHCDEV- New Button -->
|
74
77
|
|
75
|
-
|
76
|
-
|
77
|
-
<i class="fad fa-plus-circle"></i>
|
78
|
-
<%= "Add a New Listing" %>
|
79
|
-
<% end %>
|
80
|
-
<!-- New Button -->
|
78
|
+
</div>
|
79
|
+
<!-- -PHCDEV- Panel - Body -->
|
81
80
|
|
82
|
-
</div>
|
83
|
-
<!-- Panel - Body -->
|
84
|
-
|
85
|
-
</div>
|
86
|
-
<!-- Panel -->
|
87
|
-
|
88
|
-
</div>
|
89
81
|
</div>
|
90
|
-
<!--
|
82
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,49 +1,41 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
2
|
<% phc_title "Property Listing Manager" %>
|
3
3
|
<% phc_title_tagline "New Property Listing" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Property" %>
|
5
5
|
<% phc_breadcrumb_two link_to "Listings" %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!--
|
7
|
+
<!-- -PHCDEV- Title Variables -->
|
8
8
|
|
9
|
-
<!--
|
10
|
-
<ol class="breadcrumb
|
9
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb float-xl-end">
|
11
11
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
12
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
13
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
14
|
</ol>
|
15
|
-
<!--
|
15
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
16
16
|
|
17
|
-
<!--
|
18
|
-
<
|
19
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
19
|
+
<!-- -PHCDEV- Header -->
|
20
20
|
|
21
|
-
<!--
|
22
|
-
<div class="
|
23
|
-
<div class="col-lg-12">
|
21
|
+
<!-- -PHCDEV- Panel -->
|
22
|
+
<div class="panel panel-inverse">
|
24
23
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
-
</div>
|
32
|
-
<!-- Panel - Heading -->
|
33
|
-
|
34
|
-
<!-- Panel - Body -->
|
35
|
-
<div class="panel-body">
|
36
|
-
|
37
|
-
<!-- New Form -->
|
38
|
-
<%= render "form", property_listing: @property_listing %>
|
39
|
-
<!-- New Form -->
|
24
|
+
<!-- -PHCDEV- Panel - Heading -->
|
25
|
+
<div class="panel-heading">
|
26
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
27
|
+
</div>
|
28
|
+
<!-- -PHCDEV- Panel - Heading -->
|
40
29
|
|
41
|
-
|
42
|
-
|
30
|
+
<!-- -PHCDEV- Panel - Body -->
|
31
|
+
<div class="panel-body">
|
43
32
|
|
44
|
-
|
45
|
-
|
33
|
+
<!-- -PHCDEV- New Form -->
|
34
|
+
<%= render "form", property_listing: @property_listing %>
|
35
|
+
<!-- -PHCDEV- New Form -->
|
46
36
|
|
47
37
|
</div>
|
38
|
+
<!-- -PHCDEV- Panel - Body -->
|
39
|
+
|
48
40
|
</div>
|
49
|
-
<!--
|
41
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,26 +1,26 @@
|
|
1
|
-
<!-- Title System -->
|
1
|
+
<!-- -PHCDEV- Title System -->
|
2
2
|
<% phc_title "Property Listing Manager" %>
|
3
3
|
<% phc_title_tagline "Property Listing Details" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Property" %>
|
5
5
|
<% phc_breadcrumb_two link_to "Listings" %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title System -->
|
7
|
+
<!-- -PHCDEV- Title System -->
|
8
8
|
|
9
|
-
<!--
|
10
|
-
<ol class="breadcrumb
|
9
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb float-xl-end">
|
11
11
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
12
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
13
13
|
</ol>
|
14
|
-
<!--
|
14
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
15
15
|
|
16
|
-
<!--
|
16
|
+
<!-- -PHCDEV- Header -->
|
17
17
|
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
18
|
-
<!--
|
18
|
+
<!-- -PHCDEV- Header -->
|
19
19
|
|
20
|
-
<!-- Page Content -->
|
20
|
+
<!-- -PHCDEV- Page Content -->
|
21
21
|
<div class="row">
|
22
22
|
|
23
|
-
<!-- Button Panel -->
|
23
|
+
<!-- -PHCDEV- Button Panel -->
|
24
24
|
<div class="col-lg-4">
|
25
25
|
|
26
26
|
<div class="panel panel-inverse">
|
@@ -38,13 +38,13 @@
|
|
38
38
|
</div>
|
39
39
|
|
40
40
|
</div>
|
41
|
-
<!-- Button Panel -->
|
41
|
+
<!-- -PHCDEV- Button Panel -->
|
42
42
|
|
43
|
-
<!-- Main Panel -->
|
43
|
+
<!-- -PHCDEV- Main Panel -->
|
44
44
|
<div class="col-lg-8">
|
45
45
|
|
46
46
|
</div>
|
47
|
-
<!-- Main Panel -->
|
47
|
+
<!-- -PHCDEV- Main Panel -->
|
48
48
|
|
49
49
|
</div>
|
50
|
-
<!-- Page Content -->
|
50
|
+
<!-- -PHCDEV- Page Content -->
|
data/config/routes.rb
CHANGED
data/config/spring.rb
CHANGED
File without changes
|
@@ -1,47 +1,47 @@
|
|
1
|
-
module PhcdevworksRealEstate
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
end
|
1
|
+
module PhcdevworksRealEstate
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# Load Main Dependencies
|
5
|
+
require "jbuilder"
|
6
|
+
require "paper_trail"
|
7
|
+
require "friendly_id"
|
8
|
+
|
9
|
+
# Load Theme Dependencies
|
10
|
+
require "phcthemes_admin_panel_pack"
|
11
|
+
require "phcthemes_web_theme_pack"
|
12
|
+
|
13
|
+
# Load Helper Dependencies
|
14
|
+
require "phcdevworks_core"
|
15
|
+
require "phcdevworks_active_menus"
|
16
|
+
require "phcdevworks_notifications"
|
17
|
+
require "phcdevworks_titleseo"
|
18
|
+
|
19
|
+
# Load Upload Dependencies
|
20
|
+
require "aws-sdk-s3"
|
21
|
+
require "google-cloud-storage"
|
22
|
+
require "mini_magick"
|
23
|
+
|
24
|
+
# Frontend Dependencies
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
28
|
+
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
31
|
+
|
32
|
+
# PHCDevworks Plugins
|
33
|
+
require "phcdevworks_core_modules"
|
34
|
+
|
35
|
+
# Engine Namespace
|
36
|
+
isolate_namespace PhcdevworksRealEstate
|
37
|
+
|
38
|
+
# Rspec Generators
|
39
|
+
config.generators do |g|
|
40
|
+
g.test_framework :rspec
|
41
|
+
g.fixture_replacement :factory_bot
|
42
|
+
g.factory_bot dir: 'spec/factories'
|
43
|
+
g.factory_bot suffix: "factory"
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
require "phcdevworks_real_estate/version"
|
2
|
-
require "phcdevworks_real_estate/engine"
|
3
|
-
|
4
|
-
module PhcdevworksRealEstate
|
5
|
-
# Your code goes here...
|
6
|
-
end
|
1
|
+
require "phcdevworks_real_estate/version"
|
2
|
+
require "phcdevworks_real_estate/engine"
|
3
|
+
|
4
|
+
module PhcdevworksRealEstate
|
5
|
+
# Your code goes here...
|
6
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# desc "Explaining what the task does"
|
2
|
-
# task :phcdevworks_real_estate do
|
3
|
-
# # Task goes here
|
4
|
-
# end
|
1
|
+
# desc "Explaining what the task does"
|
2
|
+
# task :phcdevworks_real_estate do
|
3
|
+
# # Task goes here
|
4
|
+
# end
|