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,64 +1,64 @@
1
- <!-- Title System -->
2
- <% phc_title "Property Features Manager" %>
3
- <% phc_title_tagline "Property Features Details" %>
4
- <% phc_breadcrumb_one link_to "Property" %>
5
- <% phc_breadcrumb_two link_to "Features" %>
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
- <div class="btn-group d-flex" role="group">
32
- <%= link_to 'Update', phcdevworks_real_estate.edit_property_feature_path, class: "btn btn-primary" %>
33
- <%= link_to 'Remove', phcdevworks_real_estate.property_features_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
34
- </div>
35
- </div>
36
- </div>
37
-
38
- </div>
39
- <!-- Button Panel -->
40
-
41
- <!-- Main Panel -->
42
- <div class="col-lg-8">
43
- <!-- Panel Content -->
44
- <div class="panel panel-inverse">
45
- <div class="panel-heading">
46
- <div class="panel-heading-btn">
47
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
48
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
49
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
50
- </div>
51
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
52
- </div>
53
- <div class="panel-body">
54
- <p>
55
- <strong>Feature Name</strong>
56
- <%= @property_feature.property_feature_name %>
57
- </p>
58
- </div>
59
- </div>
60
- <!-- Panel Content -->
61
- </div>
62
- <!-- Main Panel -->
63
- </div>
64
- <!-- Page Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "Property Features Manager" %>
3
+ <% phc_title_tagline "Property Features Details" %>
4
+ <% phc_breadcrumb_one link_to "Property" %>
5
+ <% phc_breadcrumb_two link_to "Features" %>
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
+ <div class="btn-group d-flex" role="group">
32
+ <%= link_to 'Update', phcdevworks_real_estate.edit_property_feature_path, class: "btn btn-primary" %>
33
+ <%= link_to 'Remove', phcdevworks_real_estate.property_features_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
34
+ </div>
35
+ </div>
36
+ </div>
37
+
38
+ </div>
39
+ <!-- Button Panel -->
40
+
41
+ <!-- Main Panel -->
42
+ <div class="col-lg-8">
43
+ <!-- Panel Content -->
44
+ <div class="panel panel-inverse">
45
+ <div class="panel-heading">
46
+ <div class="panel-heading-btn">
47
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
48
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
49
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
50
+ </div>
51
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
52
+ </div>
53
+ <div class="panel-body">
54
+ <p>
55
+ <strong>Feature Name</strong>
56
+ <%= @property_feature.property_feature_name %>
57
+ </p>
58
+ </div>
59
+ </div>
60
+ <!-- Panel Content -->
61
+ </div>
62
+ <!-- Main Panel -->
63
+ </div>
64
+ <!-- Page Content -->
@@ -1,113 +1,113 @@
1
- <!-- Form - Property - Listings -->
2
- <%= form_with(model: property_listing, local: true, html: {class: "add-listing-form"}) do |form| %>
3
-
4
- <!-- PHCNotifi Render Validation -->
5
- <%= render "phcdevworks_notifications/bootstrap/validations", :object => @property_listing %>
6
- <!-- PHCNotifi Render Validation -->
7
-
8
- <!-- Form Input Fields -->
9
- <div class="form-group">
10
- <%= form.label :property_listing_title, "Listing TItle" %>
11
- <%= form.text_field :property_listing_title, placeholder: "Listing Title", class: "form-control" %>
12
- </div>
13
-
14
- <div class="form-group">
15
- <%= form.label :property_listing_description, "Listing Description" %>
16
- <%= form.text_area :property_listing_description, placeholder: "Listing Description", class: "form-control" %>
17
- </div>
18
-
19
- <div class="form-group">
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
- </div>
23
-
24
- <div class="form-group">
25
- <%= form.label :property_listing_price, "Listing Price" %>
26
- <%= form.text_field :property_listing_price, placeholder: "Listing Price", class: "form-control" %>
27
- </div>
28
-
29
- <hr>
30
-
31
- <div class="form-group">
32
- <%= form.label :property_listing_area, "Listing Area" %>
33
- <%= form.text_field :property_listing_area, placeholder: "Listing Area", class: "form-control" %>
34
- </div>
35
-
36
- <div class="form-group">
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
- </div>
40
-
41
- <div class="form-group">
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
- </div>
45
-
46
- <hr>
47
-
48
- <div class="form-group">
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
- </div>
52
-
53
- <div class="form-group">
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
- </div>
57
-
58
- <div class="form-group">
59
- <%= form.label :property_listing_bath, "Listing How Many Bathrooms" %>
60
- <%= form.select(:property_listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
61
- </div>
62
-
63
- <div class="form-group">
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
- </div>
67
-
68
- <hr>
69
-
70
- <div class="form-group">
71
- <%= form.label :property_listing_type, "Listing Type" %>
72
- <%= form.select(:property_listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
73
- </div>
74
-
75
- <div class="form-group">
76
- <%= form.label :property_listing_status, "Listing Status" %>
77
- <%= form.select(:property_listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
78
- </div>
79
-
80
- <div class="form-group">
81
- <%= form.label :property_listing_year_built, "" %>
82
- <%= form.select(:property_listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
83
- </div>
84
-
85
- <div class="form-group">
86
- <%= form.label :property_listing_energy_class, "Listing Energy Class" %>
87
- <%= form.select(:property_listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
88
- </div>
89
-
90
- <div class="form-group">
91
- <%= form.label :property_listing_leed_rating, "Listing LEED Rating" %>
92
- <%= form.select(:property_listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
93
- </div>
94
-
95
- <div class="form-group">
96
- <%= form.label :property_listing_upload, "" %>
97
- <%= form.file_field :property_listing_upload, placeholder: "", class: "form-control" %>
98
- </div>
99
-
100
- <div class="form-group">
101
- <%= form.label :property_gallery_upload, "" %>
102
- <%= form.file_field :property_gallery_upload, multiple: true , placeholder: "", class: "form-control" %>
103
- </div>
104
- <!-- Form Input Fields -->
105
-
106
- <!-- Form Submition Button -->
107
- <div class="actions">
108
- <%= form.submit class: "btn btn-primary" %>
109
- </div>
110
- <!-- For Submition Button -->
111
-
112
- <% end %>
113
- <!-- Form - Property - Listings -->
1
+ <!-- Form - Property - Listings -->
2
+ <%= form_with(model: property_listing, local: true, html: {class: "add-listing-form"}) do |form| %>
3
+
4
+ <!-- PHCNotifi Render Validation -->
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @property_listing %>
6
+ <!-- PHCNotifi Render Validation -->
7
+
8
+ <!-- Form Input Fields -->
9
+ <div class="form-group">
10
+ <%= form.label :property_listing_title, "Listing TItle" %>
11
+ <%= form.text_field :property_listing_title, placeholder: "Listing Title", class: "form-control" %>
12
+ </div>
13
+
14
+ <div class="form-group">
15
+ <%= form.label :property_listing_description, "Listing Description" %>
16
+ <%= form.text_area :property_listing_description, placeholder: "Listing Description", class: "form-control" %>
17
+ </div>
18
+
19
+ <div class="form-group">
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
+ </div>
23
+
24
+ <div class="form-group">
25
+ <%= form.label :property_listing_price, "Listing Price" %>
26
+ <%= form.text_field :property_listing_price, placeholder: "Listing Price", class: "form-control" %>
27
+ </div>
28
+
29
+ <hr>
30
+
31
+ <div class="form-group">
32
+ <%= form.label :property_listing_area, "Listing Area" %>
33
+ <%= form.text_field :property_listing_area, placeholder: "Listing Area", class: "form-control" %>
34
+ </div>
35
+
36
+ <div class="form-group">
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
+ </div>
40
+
41
+ <div class="form-group">
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
+ </div>
45
+
46
+ <hr>
47
+
48
+ <div class="form-group">
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
+ </div>
52
+
53
+ <div class="form-group">
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
+ </div>
57
+
58
+ <div class="form-group">
59
+ <%= form.label :property_listing_bath, "Listing How Many Bathrooms" %>
60
+ <%= form.select(:property_listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
61
+ </div>
62
+
63
+ <div class="form-group">
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
+ </div>
67
+
68
+ <hr>
69
+
70
+ <div class="form-group">
71
+ <%= form.label :property_listing_type, "Listing Type" %>
72
+ <%= form.select(:property_listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
73
+ </div>
74
+
75
+ <div class="form-group">
76
+ <%= form.label :property_listing_status, "Listing Status" %>
77
+ <%= form.select(:property_listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
78
+ </div>
79
+
80
+ <div class="form-group">
81
+ <%= form.label :property_listing_year_built, "" %>
82
+ <%= form.select(:property_listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
83
+ </div>
84
+
85
+ <div class="form-group">
86
+ <%= form.label :property_listing_energy_class, "Listing Energy Class" %>
87
+ <%= form.select(:property_listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
88
+ </div>
89
+
90
+ <div class="form-group">
91
+ <%= form.label :property_listing_leed_rating, "Listing LEED Rating" %>
92
+ <%= form.select(:property_listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
93
+ </div>
94
+
95
+ <div class="form-group">
96
+ <%= form.label :property_listing_upload, "" %>
97
+ <%= form.file_field :property_listing_upload, placeholder: "", class: "form-control" %>
98
+ </div>
99
+
100
+ <div class="form-group">
101
+ <%= form.label :property_gallery_upload, "" %>
102
+ <%= form.file_field :property_gallery_upload, multiple: true , placeholder: "", class: "form-control" %>
103
+ </div>
104
+ <!-- Form Input Fields -->
105
+
106
+ <!-- Form Submition Button -->
107
+ <div class="actions">
108
+ <%= form.submit class: "btn btn-primary" %>
109
+ </div>
110
+ <!-- For Submition Button -->
111
+
112
+ <% end %>
113
+ <!-- Form - Property - Listings -->
@@ -1,49 +1,49 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Property Listings" %>
3
- <% phc_title_tagline "Edit 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
- <!-- Edit Form -->
38
- <%= render "form", property_listing: @property_listing %>
39
- <!-- Edit 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 Listings" %>
3
+ <% phc_title_tagline "Edit 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
+ <!-- Edit Form -->
38
+ <%= render "form", property_listing: @property_listing %>
39
+ <!-- Edit Form -->
40
+
41
+ </div>
42
+ <!-- Panel - Body -->
43
+
44
+ </div>
45
+ <!-- Panel -->
46
+
47
+ </div>
48
+ </div>
49
+ <!-- Page Content -->
@@ -1,90 +1,90 @@
1
- <!-- PHCTitleSEO Title Variables -->
2
- <% phc_title "Property Listings" %>
3
- <% phc_title_tagline "Property Listings Index" %>
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
- <!-- Index - Table -->
38
- <div class="table-responsive">
39
- <table class="table table-striped table-bordered">
40
-
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>
51
-
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>
70
-
71
- </table>
72
- </div>
73
- <!-- Index - Table -->
74
-
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 -->
81
-
82
- </div>
83
- <!-- Panel - Body -->
84
-
85
- </div>
86
- <!-- Panel -->
87
-
88
- </div>
89
- </div>
90
- <!-- Page Content -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Property Listings" %>
3
+ <% phc_title_tagline "Property Listings Index" %>
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
+ <!-- Index - Table -->
38
+ <div class="table-responsive">
39
+ <table class="table table-striped table-bordered">
40
+
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>
51
+
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>
70
+
71
+ </table>
72
+ </div>
73
+ <!-- Index - Table -->
74
+
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 -->
81
+
82
+ </div>
83
+ <!-- Panel - Body -->
84
+
85
+ </div>
86
+ <!-- Panel -->
87
+
88
+ </div>
89
+ </div>
90
+ <!-- Page Content -->