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,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
+ <!-- -PHCDEV- Form - Property - Listings -->
2
+ <%= form_with(model: property_listing, local: true, html: {class: "add-listing-form"}) do |form| %>
3
+
4
+ <!-- -PHCDEV- Form Validation -->
5
+ <%= render "phcdevworks_notifications/bootstrap/validations", :object => @property_listing %>
6
+ <!-- -PHCDEV- Form Validation -->
7
+
8
+ <!-- -PHCDEV- Form Input Fields -->
9
+ <div class="mb-3">
10
+ <%= form.label :property_listing_title, "Listing TItle", class: "form-label" %>
11
+ <%= form.text_field :property_listing_title, placeholder: "Listing Title", class: "form-control" %>
12
+ </div>
13
+
14
+ <div class="mb-3">
15
+ <%= form.label :property_listing_description, "Listing Description", class: "form-label" %>
16
+ <%= form.text_area :property_listing_description, placeholder: "Listing Description", class: "form-control" %>
17
+ </div>
18
+
19
+ <div class="mb-3">
20
+ <%= form.label :property_listing_street_address, "Listing Street Address", class: "form-label" %>
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="mb-3">
25
+ <%= form.label :property_listing_price, "Listing Price", class: "form-label" %>
26
+ <%= form.text_field :property_listing_price, placeholder: "Listing Price", class: "form-control" %>
27
+ </div>
28
+
29
+ <hr>
30
+
31
+ <div class="mb-3">
32
+ <%= form.label :property_listing_area, "Listing Area", class: "form-label" %>
33
+ <%= form.text_field :property_listing_area, placeholder: "Listing Area", class: "form-control" %>
34
+ </div>
35
+
36
+ <div class="mb-3">
37
+ <%= form.label :property_listing_property_area, "Listing Property Area", class: "form-label" %>
38
+ <%= form.text_field :property_listing_property_area, placeholder: "Listing Property Area", class: "form-control" %>
39
+ </div>
40
+
41
+ <div class="mb-3">
42
+ <%= form.label :property_listing_garage_area, "Listing Garage Area", class: "form-label" %>
43
+ <%= form.text_field :property_listing_garage_area, placeholder: "Listing Garage Area", class: "form-control" %>
44
+ </div>
45
+
46
+ <hr>
47
+
48
+ <div class="mb-3">
49
+ <%= form.label :property_isting_room, "Listing How Many Rooms", class: "form-label" %>
50
+ <%= form.select(:property_listing_room, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
51
+ </div>
52
+
53
+ <div class="mb-3">
54
+ <%= form.label :property_listing_bed, "Listing How Many Bedrooms", class: "form-label" %>
55
+ <%= form.select(:property_listing_bed, ["1","2","3","4","5","6","7+"], {}, { :class => "form-control" }) %>
56
+ </div>
57
+
58
+ <div class="mb-3">
59
+ <%= form.label :property_listing_bath, "Listing How Many Bathrooms", class: "form-label" %>
60
+ <%= form.select(:property_listing_bath, ["1","2","3","4+"], {}, { :class => "form-control" }) %>
61
+ </div>
62
+
63
+ <div class="mb-3">
64
+ <%= form.label :property_listing_garage, "Listing Garage", class: "form-label" %>
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="mb-3">
71
+ <%= form.label :property_listing_type, "Listing Type", class: "form-label" %>
72
+ <%= form.select(:property_listing_type, ["House","Condominium","Cottage","Land"], {}, { :class => "form-control" }) %>
73
+ </div>
74
+
75
+ <div class="mb-3">
76
+ <%= form.label :property_listing_status, "Listing Status", class: "form-label" %>
77
+ <%= form.select(:property_listing_status, ["For Sale","Sold"], {}, { :class => "form-control" }) %>
78
+ </div>
79
+
80
+ <div class="mb-3">
81
+ <%= form.label :property_listing_year_built, "Year Built", class: "form-label" %>
82
+ <%= form.select(:property_listing_year_built, ["1990","2018"], {}, { :class => "form-control" }) %>
83
+ </div>
84
+
85
+ <div class="mb-3">
86
+ <%= form.label :property_listing_energy_class, "Listing Energy Class", class: "form-label" %>
87
+ <%= form.select(:property_listing_energy_class, ["A","B"], {}, { :class => "form-control" }) %>
88
+ </div>
89
+
90
+ <div class="mb-3">
91
+ <%= form.label :property_listing_leed_rating, "Listing LEED Rating", class: "form-label" %>
92
+ <%= form.select(:property_listing_leed_rating, ["Certified","Silver", "Gold", ""], {}, { :class => "form-control" }) %>
93
+ </div>
94
+
95
+ <div class="mb-3">
96
+ <%= form.label :property_listing_upload, "" %>
97
+ <%= form.file_field :property_listing_upload, placeholder: "", class: "form-control" %>
98
+ </div>
99
+
100
+ <div class="mb-3">
101
+ <%= form.label :property_gallery_upload, "" %>
102
+ <%= form.file_field :property_gallery_upload, multiple: true , placeholder: "", class: "form-control" %>
103
+ </div>
104
+ <!-- -PHCDEV- Form Input Fields -->
105
+
106
+ <!-- -PHCDEV- Form Submition Button -->
107
+ <div class="actions">
108
+ <%= form.submit class: "btn btn-primary" %>
109
+ </div>
110
+ <!-- -PHCDEV- For Submition Button -->
111
+
112
+ <% end %>
113
+ <!-- -PHCDEV- Form - Property - Listings -->
@@ -1,49 +1,41 @@
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
+ <!-- -PHCDEV- 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
+ <!-- -PHCDEV- Title Variables -->
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"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- -PHCDEV- Bradcrumbs -->
16
+
17
+ <!-- -PHCDEV- Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- -PHCDEV- Header -->
20
+
21
+ <!-- -PHCDEV- Panel -->
22
+ <div class="panel panel-inverse">
23
+
24
+ <!-- -PHCDEV- Panel - Heading -->
25
+ <div class="panel-heading">
26
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
27
+ </div>
28
+ <!-- -PHCDEV- Panel - Heading -->
29
+
30
+ <!-- -PHCDEV- Panel - Body -->
31
+ <div class="panel-body">
32
+
33
+ <!-- -PHCDEV- Edit Form -->
34
+ <%= render "form", property_listing: @property_listing %>
35
+ <!-- -PHCDEV- Edit Form -->
36
+
37
+ </div>
38
+ <!-- -PHCDEV- Panel - Body -->
39
+
40
+ </div>
41
+ <!-- -PHCDEV- Panel -->
@@ -1,90 +1,82 @@
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
+ <!-- -PHCDEV- 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
+ <!-- -PHCDEV- Title Variables -->
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"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- -PHCDEV- Bradcrumbs -->
16
+
17
+ <!-- -PHCDEV- Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- -PHCDEV- Header -->
20
+
21
+ <!-- -PHCDEV- Panel -->
22
+ <div class="panel panel-inverse">
23
+
24
+ <!-- -PHCDEV- Panel - Heading -->
25
+ <div class="panel-heading">
26
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
27
+ </div>
28
+ <!-- -PHCDEV- Panel - Heading -->
29
+
30
+ <!-- -PHCDEV- Panel - Body -->
31
+ <div class="panel-body">
32
+
33
+ <!-- -PHCDEV- Index - Table -->
34
+ <div class="table-responsive">
35
+ <table class="table table-striped table-bordered">
36
+
37
+ <thead>
38
+ <tr>
39
+ <th>Listing Title</th>
40
+ <th>Listing Price</th>
41
+ <th>Year Built</th>
42
+ <th>Listing Type</th>
43
+ <th>Listing Status</th>
44
+ <th></th>
45
+ </tr>
46
+ </thead>
47
+
48
+ <tbody>
49
+ <% @property_listings.each do |property_listing| %>
50
+ <tr>
51
+ <td><%= property_listing.property_listing_title %></td>
52
+ <td><%= property_listing.property_listing_price %></td>
53
+ <td><%= property_listing.property_listing_year_built %></td>
54
+ <td><%= property_listing.property_listing_type %></td>
55
+ <td><%= property_listing.property_listing_status %></td>
56
+ <td>
57
+ <div class="btn-group d-flex" role="group" aria-label="Property Listings">
58
+ <%= link_to "Listing Details", property_listing, class: "btn btn-primary btn-xs" %>
59
+ <%= link_to "Update Listing", edit_property_listing_path(property_listing), class: "btn btn-primary btn-xs" %>
60
+ <%= link_to "Remove Listing", property_listing, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
61
+ </div>
62
+ </td>
63
+ </tr>
64
+ <% end %>
65
+ </tbody>
66
+
67
+ </table>
68
+ </div>
69
+ <!-- -PHCDEV- Index - Table -->
70
+
71
+ <!-- -PHCDEV- New Button -->
72
+ <%= link_to phcdevworks_real_estate.new_property_listing_path, class: "btn btn-primary" do %>
73
+ <i class="fad fa-plus-circle"></i>
74
+ <%= "Add a New Listing" %>
75
+ <% end %>
76
+ <!-- -PHCDEV- New Button -->
77
+
78
+ </div>
79
+ <!-- -PHCDEV- Panel - Body -->
80
+
81
+ </div>
82
+ <!-- -PHCDEV- Panel -->
@@ -1,49 +1,41 @@
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
+ <!-- -PHCDEV- 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
+ <!-- -PHCDEV- Title Variables -->
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"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- -PHCDEV- Bradcrumbs -->
16
+
17
+ <!-- -PHCDEV- Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- -PHCDEV- Header -->
20
+
21
+ <!-- -PHCDEV- Panel -->
22
+ <div class="panel panel-inverse">
23
+
24
+ <!-- -PHCDEV- Panel - Heading -->
25
+ <div class="panel-heading">
26
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
27
+ </div>
28
+ <!-- -PHCDEV- Panel - Heading -->
29
+
30
+ <!-- -PHCDEV- Panel - Body -->
31
+ <div class="panel-body">
32
+
33
+ <!-- -PHCDEV- New Form -->
34
+ <%= render "form", property_listing: @property_listing %>
35
+ <!-- -PHCDEV- New Form -->
36
+
37
+ </div>
38
+ <!-- -PHCDEV- Panel - Body -->
39
+
40
+ </div>
41
+ <!-- -PHCDEV- Panel -->