phcdevworks_real_estate 5.1.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +1 -0
  4. data/app/assets/config/phcdevworks_real_estate_manifest.js +2 -3
  5. data/app/controllers/phcdevworks_real_estate/application_controller.rb +13 -13
  6. data/app/controllers/phcdevworks_real_estate/property/features_controller.rb +82 -82
  7. data/app/controllers/phcdevworks_real_estate/property/listings_controller.rb +82 -82
  8. data/app/helpers/phcdevworks_real_estate/application_helper.rb +4 -4
  9. data/app/helpers/phcdevworks_real_estate/property/features_helper.rb +4 -4
  10. data/app/helpers/phcdevworks_real_estate/property/listings_helper.rb +4 -4
  11. data/app/jobs/phcdevworks_real_estate/application_job.rb +4 -4
  12. data/app/mailers/phcdevworks_real_estate/application_mailer.rb +6 -6
  13. data/app/models/phcdevworks_real_estate/application_record.rb +5 -5
  14. data/app/models/phcdevworks_real_estate/property/feature.rb +22 -22
  15. data/app/models/phcdevworks_real_estate/property/listing.rb +35 -35
  16. data/app/models/phcdevworks_real_estate/property.rb +7 -7
  17. data/app/views/layouts/phcdevworks_real_estate/application.html.erb +58 -51
  18. data/app/views/layouts/phcdevworks_real_estate/components/backend/footer/_footer.html.erb +10 -9
  19. data/app/views/layouts/phcdevworks_real_estate/components/backend/navigation/_top_menu.html.erb +26 -25
  20. data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +491 -287
  21. data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +22 -22
  22. data/app/views/phcdevworks_real_estate/property/features/edit.html.erb +41 -49
  23. data/app/views/phcdevworks_real_estate/property/features/index.html.erb +74 -82
  24. data/app/views/phcdevworks_real_estate/property/features/new.html.erb +41 -49
  25. data/app/views/phcdevworks_real_estate/property/features/show.html.erb +64 -64
  26. data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +113 -113
  27. data/app/views/phcdevworks_real_estate/property/listings/edit.html.erb +41 -49
  28. data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +82 -90
  29. data/app/views/phcdevworks_real_estate/property/listings/new.html.erb +41 -49
  30. data/app/views/phcdevworks_real_estate/property/listings/show.html.erb +50 -50
  31. data/config/routes.rb +15 -20
  32. data/config/spring.rb +1 -1
  33. data/db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb +36 -36
  34. data/db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb +17 -17
  35. data/db/migrate/20191024232111_create_phcdevworks_real_estate_property_features_listings.rb +10 -10
  36. data/lib/phcdevworks_real_estate/engine.rb +45 -46
  37. data/lib/phcdevworks_real_estate/version.rb +3 -3
  38. metadata +36 -82
  39. data/app/assets/stylesheets/phcdevworks_real_estate/application.scss +0 -0
  40. data/app/assets/stylesheets/phcdevworks_real_estate/property/features.scss +0 -0
  41. data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss +0 -0
@@ -1,50 +1,50 @@
1
- <!-- Title System -->
2
- <% phc_title "Property Listing Manager" %>
3
- <% phc_title_tagline "Property Listing Details" %>
4
- <% phc_breadcrumb_one link_to "Property" %>
5
- <% phc_breadcrumb_two link_to "Listings" %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- Title System -->
8
-
9
- <!-- Page Bradcrumbs -->
10
- <ol class="breadcrumb pull-right">
11
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
13
- </ol>
14
- <!-- Page Bradcrumbs -->
15
-
16
- <!-- Page Header -->
17
- <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
- <!-- Page Header -->
19
-
20
- <!-- Page Content -->
21
- <div class="row">
22
-
23
- <!-- Button Panel -->
24
- <div class="col-lg-4">
25
-
26
- <div class="panel panel-inverse">
27
- <div class="panel-heading text-center">
28
- <h4 class="panel-title">Options Panel</h4>
29
- </div>
30
- <div class="panel-body">
31
-
32
- <div class="btn-group d-flex" role="group">
33
- <%= link_to 'Update', phcdevworks_real_estate.edit_property_listing_path, class: "btn btn-primary" %>
34
- <%= link_to 'Remove', phcdevworks_real_estate.property_listing_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
35
- </div>
36
-
37
- </div>
38
- </div>
39
-
40
- </div>
41
- <!-- Button Panel -->
42
-
43
- <!-- Main Panel -->
44
- <div class="col-lg-8">
45
-
46
- </div>
47
- <!-- Main Panel -->
48
-
49
- </div>
50
- <!-- Page Content -->
1
+ <!-- -PHCDEV- Title System -->
2
+ <% phc_title "Property Listing Manager" %>
3
+ <% phc_title_tagline "Property Listing Details" %>
4
+ <% phc_breadcrumb_one link_to "Property" %>
5
+ <% phc_breadcrumb_two link_to "Listings" %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
+ <!-- -PHCDEV- Title System -->
8
+
9
+ <!-- -PHCDEV- Bradcrumbs -->
10
+ <ol class="breadcrumb float-xl-end">
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
13
+ </ol>
14
+ <!-- -PHCDEV- Bradcrumbs -->
15
+
16
+ <!-- -PHCDEV- Header -->
17
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
+ <!-- -PHCDEV- Header -->
19
+
20
+ <!-- -PHCDEV- Page Content -->
21
+ <div class="row">
22
+
23
+ <!-- -PHCDEV- Button Panel -->
24
+ <div class="col-lg-4">
25
+
26
+ <div class="panel panel-inverse">
27
+ <div class="panel-heading text-center">
28
+ <h4 class="panel-title">Options Panel</h4>
29
+ </div>
30
+ <div class="panel-body">
31
+
32
+ <div class="btn-group d-flex" role="group">
33
+ <%= link_to 'Update', phcdevworks_real_estate.edit_property_listing_path, class: "btn btn-primary" %>
34
+ <%= link_to 'Remove', phcdevworks_real_estate.property_listing_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
35
+ </div>
36
+
37
+ </div>
38
+ </div>
39
+
40
+ </div>
41
+ <!-- -PHCDEV- Button Panel -->
42
+
43
+ <!-- -PHCDEV- Main Panel -->
44
+ <div class="col-lg-8">
45
+
46
+ </div>
47
+ <!-- -PHCDEV- Main Panel -->
48
+
49
+ </div>
50
+ <!-- -PHCDEV- Page Content -->
data/config/routes.rb CHANGED
@@ -1,20 +1,15 @@
1
- PhcdevworksRealEstate::Engine.routes.draw do
2
-
3
- # Applications Admin Area
4
- namespace :admin do
5
- resources :listings
6
- resources :features
7
- end
8
-
9
- # Applications User Area
10
- namespace :property do
11
- resources :listings
12
- resources :features
13
- end
14
-
15
- # Mount Routes
16
- mount PhcdevworksAccounts::Engine, :at => '/'
17
- mount PhcdevworksAccountsStripe::Engine, :at => '/'
18
- mount PhcdevworksCoreModules::Engine, :at => '/'
19
-
20
- end
1
+ PhcdevworksRealEstate::Engine.routes.draw do
2
+
3
+ # Applications Admin Area
4
+ namespace :admin do
5
+ resources :listings
6
+ resources :features
7
+ end
8
+
9
+ # Applications User Area
10
+ namespace :property do
11
+ resources :listings
12
+ resources :features
13
+ end
14
+
15
+ end
data/config/spring.rb CHANGED
@@ -1,2 +1,2 @@
1
- Spring.application_root = './spec/test_app'
1
+ Spring.application_root = './spec/test_app'
2
2
 
@@ -1,36 +1,36 @@
1
- class CreatePhcdevworksRealEstatePropertyListings < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_real_estate_property_listings do |t|
4
-
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
27
-
28
- t.string :slug
29
- t.string :user_id
30
- t.string :org_id
31
-
32
- t.timestamps
33
-
34
- end
35
- end
36
- end
1
+ class CreatePhcdevworksRealEstatePropertyListings < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_real_estate_property_listings do |t|
4
+
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
27
+
28
+ t.string :slug
29
+ t.string :user_id
30
+ t.string :org_id
31
+
32
+ t.timestamps
33
+
34
+ end
35
+ end
36
+ end
@@ -1,17 +1,17 @@
1
- class CreatePhcdevworksRealEstatePropertyFeatures < ActiveRecord::Migration[6.0]
2
- def change
3
- create_table :phcdevworks_real_estate_property_features do |t|
4
-
5
- t.string :property_feature_name
6
-
7
- t.string :optimization_id
8
-
9
- t.string :slug
10
- t.string :user_id
11
- t.string :org_id
12
-
13
- t.timestamps
14
-
15
- end
16
- end
17
- end
1
+ class CreatePhcdevworksRealEstatePropertyFeatures < ActiveRecord::Migration[7.0]
2
+ def change
3
+ create_table :phcdevworks_real_estate_property_features do |t|
4
+
5
+ t.string :property_feature_name
6
+
7
+ t.string :optimization_id
8
+
9
+ t.string :slug
10
+ t.string :user_id
11
+ t.string :org_id
12
+
13
+ t.timestamps
14
+
15
+ end
16
+ end
17
+ end
@@ -1,10 +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
1
+ class CreatePhcdevworksRealEstatePropertyFeaturesListings < ActiveRecord::Migration[7.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
@@ -1,48 +1,47 @@
1
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_accounts_stripe"
35
- require "phcdevworks_core_modules"
36
-
37
- # Engine Namespace
38
- isolate_namespace PhcdevworksRealEstate
39
-
40
- # Rspec Generators
41
- config.generators do |g|
42
- g.test_framework :rspec
43
- g.fixture_replacement :factory_bot
44
- g.factory_bot dir: 'spec/factories'
45
- end
46
-
47
- end
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
48
47
  end
@@ -1,3 +1,3 @@
1
- module PhcdevworksRealEstate
2
- VERSION = '5.1.0'
3
- end
1
+ module PhcdevworksRealEstate
2
+ VERSION = "6.0.0"
3
+ end