phcdevworks_real_estate 5.1.1 → 5.2.0

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 +1 -0
  4. data/Rakefile +8 -8
  5. data/app/assets/config/phcdevworks_real_estate_manifest.js +3 -3
  6. data/app/assets/stylesheets/phcdevworks_real_estate/application.scss +0 -0
  7. data/app/assets/stylesheets/phcdevworks_real_estate/property/features.scss +0 -0
  8. data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss +0 -0
  9. data/app/controllers/phcdevworks_real_estate/application_controller.rb +13 -13
  10. data/app/controllers/phcdevworks_real_estate/property/features_controller.rb +82 -82
  11. data/app/controllers/phcdevworks_real_estate/property/listings_controller.rb +82 -82
  12. data/app/helpers/phcdevworks_real_estate/application_helper.rb +4 -4
  13. data/app/helpers/phcdevworks_real_estate/property/features_helper.rb +4 -4
  14. data/app/helpers/phcdevworks_real_estate/property/listings_helper.rb +4 -4
  15. data/app/jobs/phcdevworks_real_estate/application_job.rb +4 -4
  16. data/app/mailers/phcdevworks_real_estate/application_mailer.rb +6 -6
  17. data/app/models/phcdevworks_real_estate/application_record.rb +5 -5
  18. data/app/models/phcdevworks_real_estate/property/feature.rb +22 -22
  19. data/app/models/phcdevworks_real_estate/property/listing.rb +35 -35
  20. data/app/models/phcdevworks_real_estate/property.rb +7 -7
  21. data/app/views/layouts/phcdevworks_real_estate/application.html.erb +66 -66
  22. data/app/views/layouts/phcdevworks_real_estate/components/backend/footer/_footer.html.erb +0 -0
  23. data/app/views/layouts/phcdevworks_real_estate/components/backend/navigation/_top_menu.html.erb +0 -0
  24. data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +0 -0
  25. data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +22 -22
  26. data/app/views/phcdevworks_real_estate/property/features/edit.html.erb +49 -49
  27. data/app/views/phcdevworks_real_estate/property/features/index.html.erb +82 -82
  28. data/app/views/phcdevworks_real_estate/property/features/new.html.erb +49 -49
  29. data/app/views/phcdevworks_real_estate/property/features/show.html.erb +64 -64
  30. data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +113 -113
  31. data/app/views/phcdevworks_real_estate/property/listings/edit.html.erb +49 -49
  32. data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +90 -90
  33. data/app/views/phcdevworks_real_estate/property/listings/new.html.erb +49 -49
  34. data/app/views/phcdevworks_real_estate/property/listings/show.html.erb +50 -50
  35. data/config/routes.rb +19 -19
  36. data/config/spring.rb +1 -1
  37. data/db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb +36 -36
  38. data/db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb +17 -17
  39. data/db/migrate/20191024232111_create_phcdevworks_real_estate_property_features_listings.rb +10 -10
  40. data/lib/phcdevworks_real_estate/engine.rb +47 -47
  41. data/lib/phcdevworks_real_estate/version.rb +3 -3
  42. data/lib/phcdevworks_real_estate.rb +6 -6
  43. data/lib/tasks/phcdevworks_real_estate_tasks.rake +4 -4
  44. metadata +33 -33
@@ -1,49 +1,49 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Property Listing Manager" %>
3
- <% phc_title_tagline "New Property Listing" %>
4
- <% phc_breadcrumb_one link_to "Property" %>
5
- <% phc_breadcrumb_two link_to "Listings" %>
6
- <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- PHCTitleSEO Title Variables -->
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"><%= yield(:phc_breadcrumb_two) %></li>
13
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
- </ol>
15
- <!-- Page Bradcrumbs -->
16
-
17
- <!-- Page Header -->
18
- <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
- <!-- Page Header -->
20
-
21
- <!-- Page Content -->
22
- <div class="row">
23
- <div class="col-lg-12">
24
-
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 -->
40
-
41
- </div>
42
- <!-- Panel - Body -->
43
-
44
- </div>
45
- <!-- Panel -->
46
-
47
- </div>
48
- </div>
49
- <!-- Page Content -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Property Listing Manager" %>
3
+ <% phc_title_tagline "New Property Listing" %>
4
+ <% phc_breadcrumb_one link_to "Property" %>
5
+ <% phc_breadcrumb_two link_to "Listings" %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
+ <!-- PHCTitleSEO Title Variables -->
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"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- Page Bradcrumbs -->
16
+
17
+ <!-- Page Header -->
18
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
+ <!-- Page Header -->
20
+
21
+ <!-- Page Content -->
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+
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 -->
40
+
41
+ </div>
42
+ <!-- Panel - Body -->
43
+
44
+ </div>
45
+ <!-- Panel -->
46
+
47
+ </div>
48
+ </div>
49
+ <!-- Page Content -->
@@ -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
+ <!-- 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 -->
data/config/routes.rb CHANGED
@@ -1,19 +1,19 @@
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 PhcdevworksCoreModules::Engine, :at => '/'
18
-
19
- 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
+ # Mount Routes
16
+ mount PhcdevworksAccounts::Engine, :at => '/'
17
+ mount PhcdevworksCoreModules::Engine, :at => '/'
18
+
19
+ 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[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,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[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,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[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,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
+ # 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,3 +1,3 @@
1
- module PhcdevworksRealEstate
2
- VERSION = "5.1.1"
3
- end
1
+ module PhcdevworksRealEstate
2
+ VERSION = "5.2.0"
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