phcdevworks_real_estate 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/phcdevworks_real_estate/property/features.coffee +0 -0
  3. data/app/assets/javascripts/phcdevworks_real_estate/property/listings.coffee +0 -0
  4. data/app/assets/stylesheets/phcdevworks_real_estate/property/features.scss +0 -0
  5. data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss +0 -0
  6. data/app/views/layouts/phcdevworks_real_estate/application.html.erb +62 -77
  7. data/app/views/layouts/phcdevworks_real_estate/components/backend/footer/_footer.html.erb +7 -7
  8. data/app/views/layouts/phcdevworks_real_estate/components/backend/navigation/_top_menu.html.erb +37 -37
  9. data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +257 -239
  10. data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +16 -12
  11. data/app/views/phcdevworks_real_estate/property/features/edit.html.erb +28 -16
  12. data/app/views/phcdevworks_real_estate/property/features/index.html.erb +58 -38
  13. data/app/views/phcdevworks_real_estate/property/features/new.html.erb +28 -16
  14. data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +101 -84
  15. data/app/views/phcdevworks_real_estate/property/listings/edit.html.erb +28 -16
  16. data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +71 -51
  17. data/app/views/phcdevworks_real_estate/property/listings/new.html.erb +28 -16
  18. data/lib/phcdevworks_real_estate/engine.rb +6 -8
  19. data/lib/phcdevworks_real_estate/version.rb +1 -1
  20. metadata +26 -11
  21. data/app/assets/stylesheets/phcdevworks_real_estate/property/features.css +0 -4
  22. data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.css +0 -4
  23. data/config/initializers/friendly_id.rb +0 -107
@@ -1,10 +1,10 @@
1
- <!-- Title System -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Admin - Property Listing Features" %>
3
3
  <% phc_title_tagline "Listing Features" %>
4
4
  <% phc_breadcrumb_one link_to "Property" %>
5
5
  <% phc_breadcrumb_two link_to "Features" %>
6
6
  <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
- <!-- Title System -->
7
+ <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
10
  <ol class="breadcrumb pull-right">
@@ -15,48 +15,68 @@
15
15
  <!-- Page Bradcrumbs -->
16
16
 
17
17
  <!-- Page Header -->
18
- <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
- <div class="panel panel-inverse">
23
- <div class="panel-heading">
24
- <div class="panel-heading-btn">
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
26
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
- </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
- </div>
31
- <div class="panel-body">
32
- <!-- Table - Features for Listings -->
33
- <div class="table-responsive">
34
- <table class="table table-striped table-bordered table-hover">
35
- <thead class="thead-inverse">
36
- <tr>
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>
37
43
  <th>Feature Name</th>
38
44
  <th></th>
39
- </tr>
40
- </thead>
41
- <tbody>
42
- <% @property_features.each do |property_feature| %>
43
- <tr>
44
- <td class="highlight"><%= link_to property_feature.feature_name, property_feature %></td>
45
- <td><div class="btn-group d-flex" role="group" aria-label="Property Listings">
46
- <%= link_to 'Details', property_feature, class: "btn btn-primary btn-xs" %>
47
- <%= link_to 'Update', edit_property_feature_path(property_feature), class: "btn btn-primary btn-xs" %>
48
- <%= link_to 'Remove', property_feature, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
49
- </div></td>
50
45
  </tr>
51
- <% end %>
52
- </tbody>
53
- </table>
54
- <%= link_to phcdevworks_real_estate.new_property_feature_path, class: "btn btn-primary" do %>
55
- <i class="fas fa-plus-circle"></i>
56
- <%= "Add a New Feature" %>
57
- <% end %>
46
+ </thead>
47
+
48
+ <tbody>
49
+ <% @property_features.each do |property_feature| %>
50
+ <tr>
51
+ <td class="highlight"><%= link_to property_feature.feature_name, property_feature %></td>
52
+ <td>
53
+ <div class="btn-group d-flex" role="group" aria-label="Property Listings">
54
+ <%= link_to "Feature Details", property_feature, class: "btn btn-primary btn-xs" %>
55
+ <%= link_to "Update Feature", edit_property_feature_path(property_feature), class: "btn btn-primary btn-xs" %>
56
+ <%= link_to "Remove Feature", property_feature, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
57
+ </div>
58
+ </td>
59
+ </tr>
60
+ <% end %>
61
+ </tbody>
62
+
63
+ </table>
64
+ </div>
65
+ <!-- Index - Table -->
66
+
67
+ <!-- New Button -->
68
+ <%= link_to phcdevworks_real_estate.new_property_feature_path, class: "btn btn-primary" do %>
69
+ <i class="fad fa-plus-circle"></i>
70
+ <%= "Add a New Feature" %>
71
+ <% end %>
72
+ <!-- New Button -->
73
+
74
+ </div>
75
+ <!-- Panel - Body -->
76
+
58
77
  </div>
59
- <!-- Table - Features for Listings -->
78
+ <!-- Panel -->
79
+
60
80
  </div>
61
81
  </div>
62
82
  <!-- Page Content -->
@@ -1,10 +1,10 @@
1
- <!-- Title System -->
1
+ <!-- PHCTitleSEO 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
- <!-- Title System -->
7
+ <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
10
  <ol class="breadcrumb pull-right">
@@ -15,23 +15,35 @@
15
15
  <!-- Page Bradcrumbs -->
16
16
 
17
17
  <!-- Page Header -->
18
- <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
- <div class="panel panel-inverse">
23
- <div class="panel-heading">
24
- <div class="panel-heading-btn">
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
26
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
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_feature: @property_feature %>
39
+ <!-- New Form -->
40
+
41
+ </div>
42
+ <!-- Panel - Body -->
43
+
28
44
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
- </div>
31
- <div class="panel-body">
32
- <!-- New Form Property Listings -->
33
- <%= render 'form', property_feature: @property_feature %>
34
- <!-- New Form Property Listings -->
45
+ <!-- Panel -->
46
+
35
47
  </div>
36
48
  </div>
37
49
  <!-- Page Content -->
@@ -1,96 +1,113 @@
1
- <!-- PHCRealListings(Pro) Form - Property Listings -->
2
- <%= form_with(model: property_listing, local: true, html: {class: "add-listing-form"}) do |phc_pro_property_listing| %>
1
+ <!-- Form - Property - Listings -->
2
+ <%= form_with(model: property_listing, local: true, html: {class: "add-listing-form"}) do |form| %>
3
3
 
4
- <!-- PHCNotifi Render Validation -->
5
- <%= render "phcdevworks_notifications/bootstrap/validations", :object => @property_listing %>
6
- <!-- PHCNotifi Render Validation -->
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 :listing_title, "Listing TItle" %>
11
+ <%= form.text_field :listing_title, placeholder: "Listing Title", class: "form-control" %>
12
+ </div>
7
13
 
8
- <div class="form-group">
9
- <%= phc_pro_property_listing.label :listing_title %>
10
- <%= phc_pro_property_listing.text_field :listing_title, class: "form-control" %>
11
- </div>
12
- <div class="form-group">
13
- <%= phc_pro_property_listing.label :listing_description %>
14
- <%= phc_pro_property_listing.text_field :listing_description, class: "form-control" %>
15
- </div>
16
- <div class="form-group">
17
- <%= phc_pro_property_listing.label :listing_street_address %>
18
- <%= phc_pro_property_listing.text_field :listing_street_address, class: "form-control", id: "phc-gmaps-input-address" %>
19
- </div>
20
- <div class="form-group">
21
- <%= phc_pro_property_listing.label :listing_price %>
22
- <%= phc_pro_property_listing.text_field :listing_price, class: "form-control" %>
23
- </div>
14
+ <div class="form-group">
15
+ <%= form.label :listing_description, "Listing Description" %>
16
+ <%= form.text_field :listing_description, placeholder: "Listing Description", class: "form-control" %>
17
+ </div>
24
18
 
25
- <hr>
19
+ <div class="form-group">
20
+ <%= form.label :listing_street_address, "Listing Street Address" %>
21
+ <%= form.text_field :listing_street_address, placeholder: "Listing Street Address", class: "form-control", id: "phc-gmaps-input-address" %>
22
+ </div>
26
23
 
27
- <div class="form-group">
28
- <%= phc_pro_property_listing.label :listing_area %>
29
- <%= phc_pro_property_listing.text_field :listing_area, class: "form-control" %>
30
- </div>
31
- <div class="form-group">
32
- <%= phc_pro_property_listing.label :listing_property_area %>
33
- <%= phc_pro_property_listing.text_field :listing_property_area, class: "form-control" %>
34
- </div>
35
- <div class="form-group">
36
- <%= phc_pro_property_listing.label :listing_garage_area %>
37
- <%= phc_pro_property_listing.text_field :listing_garage_area, class: "form-control" %>
38
- </div>
24
+ <div class="form-group">
25
+ <%= form.label :listing_price, "Listing Price" %>
26
+ <%= form.text_field :listing_price, placeholder: "Listing Price", class: "form-control" %>
27
+ </div>
28
+
29
+ <hr>
30
+
31
+ <div class="form-group">
32
+ <%= form.label :listing_area, "Listing Area" %>
33
+ <%= form.text_field :listing_area, placeholder: "Listing Area", class: "form-control" %>
34
+ </div>
39
35
 
40
- <hr>
36
+ <div class="form-group">
37
+ <%= form.label :listing_property_area, "Listing Property Area" %>
38
+ <%= form.text_field :listing_property_area, placeholder: "Listing Property Area", class: "form-control" %>
39
+ </div>
41
40
 
42
- <div class="form-group">
43
- <%= phc_pro_property_listing.label :listing_room %>
44
- <%= phc_pro_property_listing.select(:listing_room, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
45
- </div>
46
- <div class="form-group">
47
- <%= phc_pro_property_listing.label :listing_bed %>
48
- <%= phc_pro_property_listing.select(:listing_bed, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
49
- </div>
50
- <div class="form-group">
51
- <%= phc_pro_property_listing.label :listing_bath %>
52
- <%= phc_pro_property_listing.select(:listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
53
- </div>
54
- <div class="form-group">
55
- <%= phc_pro_property_listing.label :listing_garage %>
56
- <%= phc_pro_property_listing.select(:listing_garage, ["1 Car","2 Cars","3 Cars","4+ Cars"], {}, { :class => "form-control" }) %>
57
- </div>
41
+ <div class="form-group">
42
+ <%= form.label :listing_garage_area, "Listing Garage Area" %>
43
+ <%= form.text_field :listing_garage_area, placeholder: "Listing Garage Area", class: "form-control" %>
44
+ </div>
45
+
46
+ <hr>
47
+
48
+ <div class="form-group">
49
+ <%= form.label :listing_room, "Listing How Many Rooms" %>
50
+ <%= form.select(:listing_room, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
51
+ </div>
58
52
 
59
- <hr>
53
+ <div class="form-group">
54
+ <%= form.label :listing_bed, "Listing How Many Bedrooms" %>
55
+ <%= form.select(:listing_bed, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
56
+ </div>
60
57
 
61
- <div class="form-group">
62
- <%= phc_pro_property_listing.label :listing_type %>
63
- <%= phc_pro_property_listing.select(:listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
64
- </div>
65
- <div class="form-group">
66
- <%= phc_pro_property_listing.label :listing_status %>
67
- <%= phc_pro_property_listing.select(:listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
68
- </div>
69
- <div class="form-group">
70
- <%= phc_pro_property_listing.label :listing_year_built %>
71
- <%= phc_pro_property_listing.select(:listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
72
- </div>
73
- <div class="form-group">
74
- <%= phc_pro_property_listing.label :listing_energy_class %>
75
- <%= phc_pro_property_listing.select(:listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
76
- </div>
77
- <div class="form-group">
78
- <%= phc_pro_property_listing.label :listing_leed_rating %>
79
- <%= phc_pro_property_listing.select(:listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
80
- </div>
58
+ <div class="form-group">
59
+ <%= form.label :listing_bath, "Listing How Many Bathrooms" %>
60
+ <%= form.select(:listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
61
+ </div>
81
62
 
82
- <div class="form-group">
83
- <%= phc_pro_property_listing.label :listing_upload %>
84
- <%= phc_pro_property_listing.file_field :listing_upload, class: "form-control" %>
85
- </div>
86
- <div class="form-group">
87
- <%= phc_pro_property_listing.label :gallery_upload %>
88
- <%= phc_pro_property_listing.file_field :gallery_upload, multiple: true , class: "form-control" %>
89
- </div>
63
+ <div class="form-group">
64
+ <%= form.label :listing_garage, "Listing Garage" %>
65
+ <%= form.select(: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 :listing_type, "Listing Type" %>
72
+ <%= form.select(:listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
73
+ </div>
90
74
 
91
- <div class="actions">
92
- <%= phc_pro_property_listing.submit class: "btn btn-primary" %>
93
- </div>
75
+ <div class="form-group">
76
+ <%= form.label :listing_status, "Listing Status" %>
77
+ <%= form.select(:listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
78
+ </div>
79
+
80
+ <div class="form-group">
81
+ <%= form.label :listing_year_built, "" %>
82
+ <%= form.select(:listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
83
+ </div>
84
+
85
+ <div class="form-group">
86
+ <%= form.label :listing_energy_class, "Listing Energy Class" %>
87
+ <%= form.select(:listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
88
+ </div>
89
+
90
+ <div class="form-group">
91
+ <%= form.label :listing_leed_rating, "Listing LEED Rating" %>
92
+ <%= form.select(:listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
93
+ </div>
94
+
95
+ <div class="form-group">
96
+ <%= form.label :listing_upload, "" %>
97
+ <%= form.file_field :listing_upload, placeholder: "", class: "form-control" %>
98
+ </div>
99
+
100
+ <div class="form-group">
101
+ <%= form.label :gallery_upload, "" %>
102
+ <%= form.file_field :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 -->
94
111
 
95
112
  <% end %>
96
- <!-- PHCRealListings(Pro) Form - Property Listings -->
113
+ <!-- Form - Property - Listings -->
@@ -1,10 +1,10 @@
1
- <!-- Title System -->
1
+ <!-- PHCTitleSEO Title Variables -->
2
2
  <% phc_title "Property Listings" %>
3
3
  <% phc_title_tagline "Edit 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
- <!-- Title System -->
7
+ <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
10
  <ol class="breadcrumb pull-right">
@@ -15,23 +15,35 @@
15
15
  <!-- Page Bradcrumbs -->
16
16
 
17
17
  <!-- Page Header -->
18
- <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
- <div class="panel panel-inverse">
23
- <div class="panel-heading">
24
- <div class="panel-heading-btn">
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
26
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
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
+
28
44
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
- </div>
31
- <div class="panel-body">
32
- <!-- Edit Form Property Listings -->
33
- <%= render 'form', property_listing: @property_listing %>
34
- <!-- Edit Form Property Listings -->
45
+ <!-- Panel -->
46
+
35
47
  </div>
36
48
  </div>
37
49
  <!-- Page Content -->
@@ -1,10 +1,10 @@
1
- <!-- Title System -->
1
+ <!-- PHCTitleSEO 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
- <!-- Title System -->
7
+ <!-- PHCTitleSEO Title Variables -->
8
8
 
9
9
  <!-- Page Bradcrumbs -->
10
10
  <ol class="breadcrumb pull-right">
@@ -15,56 +15,76 @@
15
15
  <!-- Page Bradcrumbs -->
16
16
 
17
17
  <!-- Page Header -->
18
- <h1 class="page-header"><%= yield(:phc_title) %></h1>
18
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
- <div class="panel panel-inverse">
23
- <div class="panel-heading">
24
- <div class="panel-heading-btn">
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
26
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
- </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
- </div>
31
- <div class="panel-body">
32
- <!-- Table - Property Index -->
33
- <div class="table-responsive">
34
- <table class="table table-striped table-bordered">
35
- <thead>
36
- <tr>
37
- <th>Listing Title</th>
38
- <th>Listing Price</th>
39
- <th>Year Built</th>
40
- <th>Listing Type</th>
41
- <th>Listing Status</th>
42
- <th></th>
43
- </tr>
44
- </thead>
45
- <tbody>
46
- <% @property_listings.each do |property_listing| %>
47
- <tr>
48
- <td><%= property_listing.listing_title %></td>
49
- <td><%= property_listing.listing_price %></td>
50
- <td><%= property_listing.listing_year_built %></td>
51
- <td><%= property_listing.listing_type %></td>
52
- <td><%= property_listing.listing_status %></td>
53
- <td><div class="btn-group d-flex" role="group" aria-label="Property Listings">
54
- <%= link_to 'Details', property_listing, class: "btn btn-primary btn-xs" %>
55
- <%= link_to 'Update', edit_property_listing_path(property_listing), class: "btn btn-primary btn-xs" %>
56
- <%= link_to 'Remove', property_listing, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
57
- </div></td>
58
- </tr>
59
- <% end %>
60
- </tbody>
61
- </table>
62
- <%= link_to phcdevworks_real_estate.new_property_listing_path, class: "btn btn-primary" do %>
63
- <i class="fas fa-plus-circle"></i>
64
- <%= "Add a New Listing" %>
65
- <% end %>
66
- </div>
67
- <!-- Table - Property Index -->
68
- </div>
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.listing_title %></td>
56
+ <td><%= property_listing.listing_price %></td>
57
+ <td><%= property_listing.listing_year_built %></td>
58
+ <td><%= property_listing.listing_type %></td>
59
+ <td><%= property_listing.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>
69
89
  </div>
70
90
  <!-- Page Content -->