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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/phcdevworks_real_estate/property/features.coffee +0 -0
- data/app/assets/javascripts/phcdevworks_real_estate/property/listings.coffee +0 -0
- data/app/assets/stylesheets/phcdevworks_real_estate/property/features.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.scss +0 -0
- data/app/views/layouts/phcdevworks_real_estate/application.html.erb +62 -77
- data/app/views/layouts/phcdevworks_real_estate/components/backend/footer/_footer.html.erb +7 -7
- data/app/views/layouts/phcdevworks_real_estate/components/backend/navigation/_top_menu.html.erb +37 -37
- data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +257 -239
- data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +16 -12
- data/app/views/phcdevworks_real_estate/property/features/edit.html.erb +28 -16
- data/app/views/phcdevworks_real_estate/property/features/index.html.erb +58 -38
- data/app/views/phcdevworks_real_estate/property/features/new.html.erb +28 -16
- data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +101 -84
- data/app/views/phcdevworks_real_estate/property/listings/edit.html.erb +28 -16
- data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +71 -51
- data/app/views/phcdevworks_real_estate/property/listings/new.html.erb +28 -16
- data/lib/phcdevworks_real_estate/engine.rb +6 -8
- data/lib/phcdevworks_real_estate/version.rb +1 -1
- metadata +26 -11
- data/app/assets/stylesheets/phcdevworks_real_estate/property/features.css +0 -4
- data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.css +0 -4
- data/config/initializers/friendly_id.rb +0 -107
@@ -1,10 +1,10 @@
|
|
1
|
-
<!-- Title
|
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
|
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
|
-
<
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
19
|
<!-- Page Header -->
|
20
|
-
|
20
|
+
|
21
21
|
<!-- Page Content -->
|
22
|
-
<div class="
|
23
|
-
<div class="
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
-
<!--
|
78
|
+
<!-- Panel -->
|
79
|
+
|
60
80
|
</div>
|
61
81
|
</div>
|
62
82
|
<!-- Page Content -->
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<!-- Title
|
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
|
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
|
-
<
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
19
|
<!-- Page Header -->
|
20
|
-
|
20
|
+
|
21
21
|
<!-- Page Content -->
|
22
|
-
<div class="
|
23
|
-
<div class="
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
30
|
-
|
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
|
-
<!--
|
2
|
-
<%= form_with(model: property_listing, local: true, html: {class: "add-listing-form"}) do |
|
1
|
+
<!-- Form - Property - Listings -->
|
2
|
+
<%= form_with(model: property_listing, local: true, html: {class: "add-listing-form"}) do |form| %>
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
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
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
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
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
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
|
-
|
92
|
-
|
93
|
-
|
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
|
-
<!--
|
113
|
+
<!-- Form - Property - Listings -->
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<!-- Title
|
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
|
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
|
-
<
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
19
|
<!-- Page Header -->
|
20
|
-
|
20
|
+
|
21
21
|
<!-- Page Content -->
|
22
|
-
<div class="
|
23
|
-
<div class="
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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
|
-
|
30
|
-
|
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
|
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
|
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
|
-
<
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
19
|
<!-- Page Header -->
|
20
|
-
|
20
|
+
|
21
21
|
<!-- Page Content -->
|
22
|
-
<div class="
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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 -->
|