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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +0 -0
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_real_estate_manifest.js +2 -3
  6. data/app/controllers/phcdevworks_real_estate/application_controller.rb +0 -0
  7. data/app/controllers/phcdevworks_real_estate/property/features_controller.rb +0 -0
  8. data/app/controllers/phcdevworks_real_estate/property/listings_controller.rb +0 -0
  9. data/app/helpers/phcdevworks_real_estate/application_helper.rb +0 -0
  10. data/app/helpers/phcdevworks_real_estate/property/features_helper.rb +0 -0
  11. data/app/helpers/phcdevworks_real_estate/property/listings_helper.rb +0 -0
  12. data/app/jobs/phcdevworks_real_estate/application_job.rb +0 -0
  13. data/app/mailers/phcdevworks_real_estate/application_mailer.rb +0 -0
  14. data/app/models/phcdevworks_real_estate/application_record.rb +0 -0
  15. data/app/models/phcdevworks_real_estate/property/feature.rb +0 -0
  16. data/app/models/phcdevworks_real_estate/property/listing.rb +0 -0
  17. data/app/models/phcdevworks_real_estate/property.rb +0 -0
  18. data/app/views/layouts/phcdevworks_real_estate/application.html.erb +73 -66
  19. data/app/views/layouts/phcdevworks_real_estate/components/backend/footer/_footer.html.erb +10 -9
  20. data/app/views/layouts/phcdevworks_real_estate/components/backend/navigation/_top_menu.html.erb +26 -25
  21. data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +491 -349
  22. data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +10 -10
  23. data/app/views/phcdevworks_real_estate/property/features/edit.html.erb +23 -31
  24. data/app/views/phcdevworks_real_estate/property/features/index.html.erb +50 -58
  25. data/app/views/phcdevworks_real_estate/property/features/new.html.erb +23 -31
  26. data/app/views/phcdevworks_real_estate/property/features/show.html.erb +15 -15
  27. data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +42 -42
  28. data/app/views/phcdevworks_real_estate/property/listings/edit.html.erb +23 -31
  29. data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +60 -68
  30. data/app/views/phcdevworks_real_estate/property/listings/new.html.erb +23 -31
  31. data/app/views/phcdevworks_real_estate/property/listings/show.html.erb +13 -13
  32. data/config/routes.rb +0 -4
  33. data/config/spring.rb +0 -0
  34. data/db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb +1 -1
  35. data/db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb +1 -1
  36. data/db/migrate/20191024232111_create_phcdevworks_real_estate_property_features_listings.rb +1 -1
  37. data/lib/phcdevworks_real_estate/engine.rb +47 -47
  38. data/lib/phcdevworks_real_estate/version.rb +1 -1
  39. data/lib/phcdevworks_real_estate.rb +6 -6
  40. data/lib/tasks/phcdevworks_real_estate_tasks.rake +4 -4
  41. metadata +34 -80
  42. data/app/assets/stylesheets/phcdevworks_real_estate/application.scss +0 -0
  43. data/app/assets/stylesheets/phcdevworks_real_estate/property/features.scss +0 -0
  44. data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss +0 -0
@@ -1,90 +1,82 @@
1
- <!-- PHCTitleSEO Title Variables -->
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
- <!-- PHCTitleSEO Title Variables -->
7
+ <!-- -PHCDEV- Title Variables -->
8
8
 
9
- <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
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
- <!-- Page Bradcrumbs -->
15
+ <!-- -PHCDEV- Bradcrumbs -->
16
16
 
17
- <!-- Page Header -->
18
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
- <!-- Page Header -->
17
+ <!-- -PHCDEV- Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- -PHCDEV- Header -->
20
20
 
21
- <!-- Page Content -->
22
- <div class="row">
23
- <div class="col-lg-12">
21
+ <!-- -PHCDEV- Panel -->
22
+ <div class="panel panel-inverse">
24
23
 
25
- <!-- Panel -->
26
- <div class="panel panel-inverse">
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
- <!-- Panel - Heading -->
29
- <div class="panel-heading">
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
- <!-- Panel - Body -->
35
- <div class="panel-body">
33
+ <!-- -PHCDEV- Index - Table -->
34
+ <div class="table-responsive">
35
+ <table class="table table-striped table-bordered">
36
36
 
37
- <!-- Index - Table -->
38
- <div class="table-responsive">
39
- <table class="table table-striped table-bordered">
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
- <thead>
42
- <tr>
43
- <th>Listing Title</th>
44
- <th>Listing Price</th>
45
- <th>Year Built</th>
46
- <th>Listing Type</th>
47
- <th>Listing Status</th>
48
- <th></th>
49
- </tr>
50
- </thead>
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
- <tbody>
53
- <% @property_listings.each do |property_listing| %>
54
- <tr>
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
- </table>
72
- </div>
73
- <!-- Index - Table -->
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
- <!-- New Button -->
76
- <%= link_to phcdevworks_real_estate.new_property_listing_path, class: "btn btn-primary" do %>
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
- <!-- Page Content -->
82
+ <!-- -PHCDEV- Panel -->
@@ -1,49 +1,41 @@
1
- <!-- PHCTitleSEO Title Variables -->
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
- <!-- PHCTitleSEO Title Variables -->
7
+ <!-- -PHCDEV- Title Variables -->
8
8
 
9
- <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
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
- <!-- Page Bradcrumbs -->
15
+ <!-- -PHCDEV- Bradcrumbs -->
16
16
 
17
- <!-- Page Header -->
18
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
- <!-- Page Header -->
17
+ <!-- -PHCDEV- Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- -PHCDEV- Header -->
20
20
 
21
- <!-- Page Content -->
22
- <div class="row">
23
- <div class="col-lg-12">
21
+ <!-- -PHCDEV- Panel -->
22
+ <div class="panel panel-inverse">
24
23
 
25
- <!-- Panel -->
26
- <div class="panel panel-inverse">
27
-
28
- <!-- Panel - Heading -->
29
- <div class="panel-heading">
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
- </div>
42
- <!-- Panel - Body -->
30
+ <!-- -PHCDEV- Panel - Body -->
31
+ <div class="panel-body">
43
32
 
44
- </div>
45
- <!-- Panel -->
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
- <!-- Page Content -->
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
- <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
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
- <!-- Page Bradcrumbs -->
14
+ <!-- -PHCDEV- Bradcrumbs -->
15
15
 
16
- <!-- Page Header -->
16
+ <!-- -PHCDEV- Header -->
17
17
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
- <!-- Page Header -->
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
@@ -12,8 +12,4 @@ PhcdevworksRealEstate::Engine.routes.draw do
12
12
  resources :features
13
13
  end
14
14
 
15
- # Mount Routes
16
- mount PhcdevworksAccounts::Engine, :at => '/'
17
- mount PhcdevworksCoreModules::Engine, :at => '/'
18
-
19
15
  end
data/config/spring.rb CHANGED
File without changes
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksRealEstatePropertyListings < ActiveRecord::Migration[6.0]
1
+ class CreatePhcdevworksRealEstatePropertyListings < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :phcdevworks_real_estate_property_listings do |t|
4
4
 
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksRealEstatePropertyFeatures < ActiveRecord::Migration[6.0]
1
+ class CreatePhcdevworksRealEstatePropertyFeatures < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :phcdevworks_real_estate_property_features do |t|
4
4
 
@@ -1,4 +1,4 @@
1
- class CreatePhcdevworksRealEstatePropertyFeaturesListings < ActiveRecord::Migration[6.0]
1
+ class CreatePhcdevworksRealEstatePropertyFeaturesListings < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :phcdevworks_real_estate_property_features_listings do |t|
4
4
 
@@ -1,47 +1,47 @@
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
- # Load Required PHC Plugins
33
- require "phcdevworks_accounts"
34
- require "phcdevworks_core_modules"
35
-
36
- # Engine Namespace
37
- isolate_namespace PhcdevworksRealEstate
38
-
39
- # Rspec Generators
40
- config.generators do |g|
41
- g.test_framework :rspec
42
- g.fixture_replacement :factory_bot
43
- g.factory_bot dir: 'spec/factories'
44
- end
45
-
46
- end
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,3 +1,3 @@
1
1
  module PhcdevworksRealEstate
2
- VERSION = "5.2.0"
2
+ VERSION = "6.0.2"
3
3
  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