phcdevworks_real_estate 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +0 -0
  4. data/Rakefile +32 -0
  5. data/app/assets/config/phcdevworks_real_estate_manifest.js +2 -0
  6. data/app/assets/javascripts/phcdevworks_real_estate/application.js +2 -0
  7. data/app/assets/stylesheets/phcdevworks_real_estate/application.scss +2 -0
  8. data/app/assets/stylesheets/phcdevworks_real_estate/property/features.css +4 -0
  9. data/app/assets/stylesheets/phcdevworks_real_estate/property/listings.css +4 -0
  10. data/app/controllers/phcdevworks_real_estate/application_controller.rb +13 -0
  11. data/app/controllers/phcdevworks_real_estate/property/features_controller.rb +80 -0
  12. data/app/controllers/phcdevworks_real_estate/property/listings_controller.rb +80 -0
  13. data/app/helpers/phcdevworks_real_estate/application_helper.rb +4 -0
  14. data/app/helpers/phcdevworks_real_estate/property/features_helper.rb +4 -0
  15. data/app/helpers/phcdevworks_real_estate/property/listings_helper.rb +4 -0
  16. data/app/jobs/phcdevworks_real_estate/application_job.rb +4 -0
  17. data/app/mailers/phcdevworks_real_estate/application_mailer.rb +6 -0
  18. data/app/models/phcdevworks_real_estate/application_record.rb +5 -0
  19. data/app/models/phcdevworks_real_estate/property.rb +7 -0
  20. data/app/models/phcdevworks_real_estate/property/feature.rb +12 -0
  21. data/app/models/phcdevworks_real_estate/property/listing.rb +25 -0
  22. data/app/views/layouts/phcdevworks_real_estate/application.html.erb +94 -0
  23. data/app/views/layouts/phcdevworks_real_estate/components/backend/footer/_footer.html.erb +16 -0
  24. data/app/views/layouts/phcdevworks_real_estate/components/backend/navigation/_top_menu.html.erb +37 -0
  25. data/app/views/layouts/phcdevworks_real_estate/components/backend/sidebars/_side_menu.html.erb +213 -0
  26. data/app/views/phcdevworks_real_estate/property/features/_form.html.erb +18 -0
  27. data/app/views/phcdevworks_real_estate/property/features/edit.html.erb +37 -0
  28. data/app/views/phcdevworks_real_estate/property/features/index.html.erb +62 -0
  29. data/app/views/phcdevworks_real_estate/property/features/new.html.erb +37 -0
  30. data/app/views/phcdevworks_real_estate/property/features/show.html.erb +64 -0
  31. data/app/views/phcdevworks_real_estate/property/listings/_form.html.erb +96 -0
  32. data/app/views/phcdevworks_real_estate/property/listings/edit.html.erb +37 -0
  33. data/app/views/phcdevworks_real_estate/property/listings/index.html.erb +70 -0
  34. data/app/views/phcdevworks_real_estate/property/listings/new.html.erb +37 -0
  35. data/app/views/phcdevworks_real_estate/property/listings/show.html.erb +50 -0
  36. data/config/initializers/friendly_id.rb +107 -0
  37. data/config/routes.rb +18 -0
  38. data/db/migrate/20180918034641_create_join_table_features_listings.rb +8 -0
  39. data/db/migrate/20190824010811_create_phcdevworks_real_estate_property_listings.rb +34 -0
  40. data/db/migrate/20190824011000_create_phcdevworks_real_estate_property_features.rb +15 -0
  41. data/lib/phcdevworks_real_estate.rb +5 -0
  42. data/lib/phcdevworks_real_estate/engine.rb +33 -0
  43. data/lib/phcdevworks_real_estate/version.rb +3 -0
  44. data/lib/tasks/phcdevworks_real_estate_tasks.rake +4 -0
  45. metadata +302 -0
@@ -0,0 +1,16 @@
1
+ <!-- Footer Content - Left -->
2
+ <span>
3
+ <!-- Footer Content - Left - Time in Production -->
4
+ <i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
5
+ <span class="font-weight-bold">PHC</span>Devworks RealEstate -
6
+ Engine v<%= Gem.loaded_specs["phcdevworks_real_estate"].version.to_s %>
7
+ <!-- Footer Content - Left - Time in Production -->
8
+ </span>
9
+ <!-- Footer Content - Left -->
10
+
11
+ <!-- Footer Content - Right -->
12
+ <span class="float-right">
13
+ Developed with <i class="fas fa-heart hanna_hearts"></i> by
14
+ <a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
15
+ </span>
16
+ <!-- Footer Content - Right -->
@@ -0,0 +1,37 @@
1
+ <!-- Topbar - Navigation Header -->
2
+ <div class="navbar-header">
3
+ <%= link_to phcdevworks_real_estate.property_listings_path, class: "navbar-brand" do %>
4
+ <b>PHCDevworks</b> RealEstate
5
+ <% end %>
6
+ <button type="button" class="navbar-toggle" data-click="sidebar-toggled">
7
+ <span class="icon-bar"></span>
8
+ <span class="icon-bar"></span>
9
+ <span class="icon-bar"></span>
10
+ </button>
11
+ </div>
12
+ <!-- Topbar - Navigation Header -->
13
+
14
+ <!-- Topbar - Navigation Main -->
15
+ <% if current_user %>
16
+ <ul class="navbar-nav navbar-right">
17
+
18
+ <!-- Topbar - Navigation Main - User Menu -->
19
+ <li class="dropdown navbar-user">
20
+ <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
21
+ <%= image_tag current_user.gravatar_url %>
22
+ <span class="d-none d-md-inline"><%= current_user.firstname + ' ' + current_user.lastname %></span> <b class="caret"></b>
23
+ </a>
24
+ <div class="dropdown-menu dropdown-menu-right">
25
+ <%= link_to phcdevworks_accounts.edit_user_registration_path, class: "dropdown-item" do %>
26
+ <i class="fad fa-cogs"></i> Account Settings
27
+ <% end %>
28
+ <%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
29
+ <i class="fad fa-sign-out-alt"></i> Logout
30
+ <% end %>
31
+ </div>
32
+ </li>
33
+ <!-- Topbar - Navigation Main - User Menu -->
34
+
35
+ </ul>
36
+ <% end %>
37
+ <!-- Topbar - Navigation Main -->
@@ -0,0 +1,213 @@
1
+ <!-- Sidebar for PHCDevworks Engines -->
2
+ <div data-scrollbar="true" data-height="100%">
3
+
4
+ <!-- Sidebar - User Profile Menu -->
5
+ <ul class="nav">
6
+ <% if current_user %>
7
+ <li class="nav-profile">
8
+ <a href="javascript:;" data-toggle="nav-profile">
9
+ <div class="cover with-shadow"></div>
10
+ <div class="image">
11
+ <%= image_tag current_user.gravatar_url %>
12
+ </div>
13
+ <div class="info">
14
+ <b class="caret pull-right"></b>
15
+ <%= current_user.firstname + ' ' + current_user.lastname %>
16
+ <small><%= current_user.username %></small>
17
+ </div>
18
+ </a>
19
+ </li>
20
+ <li>
21
+ <ul class="nav nav-profile">
22
+ <li>
23
+ <%= link_to phcdevworks_accounts.edit_user_registration_path do %>
24
+ <i class="fad fa-cogs"></i> Account Settings
25
+ <% end %>
26
+ </li>
27
+ <li>
28
+ <%= link_to phcdevworks_accounts.destroy_user_session_path do %>
29
+ <i class="fad fa-sign-out-alt"></i> Logout
30
+ <% end %>
31
+ </li>
32
+ </ul>
33
+ </li>
34
+ <% end %>
35
+ </ul>
36
+ <!-- Sidebar - User Profile Menu -->
37
+
38
+ <!-- Sidebar - Sidebar Navigation -->
39
+ <ul class="nav">
40
+
41
+ <% if defined?phcdevworks_members %>
42
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Members -->
43
+ <li class="nav-header">Membership Manager</li>
44
+ <li class="has-sub">
45
+ <a href="javascript:;">
46
+ <b class="caret"></b>
47
+ <i class="fad fa-users"></i>
48
+ <span>Member's Data</span>
49
+ </a>
50
+ <ul class="sub-menu">
51
+ <li class="<%= phc_menu_active_controller('phcdevworks_members/member/profiles') %>"><%= link_to('Profile Index', phcdevworks_members.member_profiles_path) %></li>
52
+ <li class="<%= phc_menu_active_controller('phcdevworks_members/member/profiles#new') %>"><%= link_to('New Member Profile', phcdevworks_members.new_member_profile_path) %></li>
53
+ </ul>
54
+ </li>
55
+ <li class="has-sub">
56
+ <a href="javascript:;">
57
+ <b class="caret"></b>
58
+ <i class="fad fa-list-alt"></i>
59
+ <span>Member's Directory</span>
60
+ </a>
61
+ <ul class="sub-menu">
62
+ <li class="<%= phc_menu_active_controller('phcdevworks_members/directory/categories') %>"><%= link_to('Directory Index', phcdevworks_members.directory_categories_path) %></li>
63
+ <li class="<%= phc_menu_active_controller('phcdevworks_members/directory/categories#new') %>"><%= link_to('New Directory Listing', phcdevworks_members.new_directory_category_path) %></li>
64
+ </ul>
65
+ </li>
66
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Members -->
67
+ <% end %>
68
+
69
+ <% if defined?phcdevworks_press %>
70
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Press -->
71
+ <li class="nav-header">Article Management</li>
72
+ <li class="has-sub">
73
+ <a href="javascript:;">
74
+ <b class="caret"></b>
75
+ <i class="fad fa-newspaper"></i>
76
+ <span>Article Posts</span>
77
+ </a>
78
+ <ul class="sub-menu">
79
+ <li class="<%= phc_menu_active_controller('phcdevworks_press/article/posts') %>"><%= link_to('Article Index', phcdevworks_press.article_posts_path) %></li>
80
+ <li class="<%= phc_menu_active_controller('phcdevworks_press/article/posts#new') %>"><%= link_to('New Aritcle', phcdevworks_press.new_article_post_path) %></li>
81
+ </ul>
82
+ </li>
83
+ <li class="has-sub">
84
+ <a href="javascript:;">
85
+ <b class="caret"></b>
86
+ <i class="fad fa-sitemap"></i>
87
+ <span>Article Categories</span>
88
+ </a>
89
+ <ul class="sub-menu">
90
+ <li class="<%= phc_menu_active_controller('phcdevworks_press/article/categories') %>"><%= link_to('Category Index', phcdevworks_press.article_categories_path) %></li>
91
+ <li class="<%= phc_menu_active_controller('phcdevworks_press/article/categories#new') %>"><%= link_to('New Category', phcdevworks_press.new_article_category_path) %></li>
92
+ </ul>
93
+ </li>
94
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Press -->
95
+ <% end %>
96
+
97
+ <% if defined?phcdevworks_scripts %>
98
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
99
+ <li class="nav-header">Script Management</li>
100
+ <li class="has-sub">
101
+ <a href="javascript:;">
102
+ <b class="caret"></b>
103
+ <i class="fad fa-laptop-code"></i>
104
+ <span>Script Posts</span>
105
+ </a>
106
+ <ul class="sub-menu">
107
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/listings') %>"><%= link_to "All Script Listings", phcdevworks_scripts.script_listings_path %></li>
108
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/listings#new') %>"><%= link_to "Add a New Listing", phcdevworks_scripts.new_script_listing_path %></li>
109
+ </ul>
110
+ </li>
111
+ <li class="has-sub">
112
+ <a href="javascript:;">
113
+ <b class="caret"></b>
114
+ <i class="fad fa-sitemap"></i>
115
+ <span>Script Extras</span>
116
+ </a>
117
+ <ul class="sub-menu">
118
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/authors') %>"><%= link_to "Script Authors", phcdevworks_scripts.script_authors_path %></li>
119
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/extensions') %>"><%= link_to "Script Extensions", phcdevworks_scripts.script_extensions_path %></li>
120
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/versions') %>"><%= link_to "Script Versions", phcdevworks_scripts.script_versions_path %></li>
121
+ </ul>
122
+ </li>
123
+ <li class="nav-header">Code Snippets</li>
124
+ <li class="has-sub">
125
+ <a href="javascript:;">
126
+ <b class="caret"></b>
127
+ <i class="fad fa-code"></i>
128
+ <span>Code Snippets</span>
129
+ </a>
130
+ <ul class="sub-menu">
131
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/posts') %>"><%= link_to 'Snippet Index', phcdevworks_scripts.snippet_posts_path %></li>
132
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/posts#new') %>"><%= link_to 'New Snippet', phcdevworks_scripts.new_snippet_post_path %></li>
133
+ </ul>
134
+ </li>
135
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
136
+ <% end %>
137
+
138
+ <% if defined?phcdevworks_real_estate %>
139
+
140
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
141
+ <li class="nav-header">Listing Management</li>
142
+ <li class="has-sub">
143
+ <a href="javascript:;">
144
+ <b class="caret"></b>
145
+ <i class="fad fa-home-lg"></i>
146
+ <span>Property Listings</span>
147
+ </a>
148
+ <ul class="sub-menu">
149
+ <li class="<%= phc_menu_active_controller('phcdevworks_real_estate/property/listings') %>"><%= link_to 'Listing Index', phcdevworks_real_estate.property_listings_path %></li>
150
+ <li class="<%= phc_menu_active_controller('phcdevworks_real_estate/property/listings#new') %>"><%= link_to 'New Listing', phcdevworks_real_estate.new_property_listing_path %></li>
151
+ </ul>
152
+ </li>
153
+ <li class="has-sub">
154
+ <a href="javascript:;">
155
+ <b class="caret"></b>
156
+ <i class="fad fa-list-alt"></i>
157
+ <span>Listing Features</span>
158
+ </a>
159
+ <ul class="sub-menu">
160
+ <li class="<%= phc_menu_active_controller('phcdevworks_real_estate/property/listings') %>"><%= link_to 'Features Index', phcdevworks_real_estate.property_features_path %></li>
161
+ <li class="<%= phc_menu_active_controller('phcdevworks_real_estate/property/listings#new') %>"><%= link_to 'New Features', phcdevworks_real_estate.new_property_feature_path %></li>
162
+ </ul>
163
+ </li>
164
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
165
+
166
+ <% end %>
167
+
168
+ <% if current_user && current_user.admin? %>
169
+ <!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
170
+ <li class="nav-header">User Administration</li>
171
+ <li class="has-sub">
172
+ <a href="javascript:;">
173
+ <b class="caret"></b>
174
+ <i class="fad fa-user"></i>
175
+ <span>Admin</span>
176
+ </a>
177
+ <ul class="sub-menu">
178
+ <li class="<%= phc_menu_active_controller('phcdevworks_accounts/admin/users') %>"><%= link_to 'User List', phcdevworks_accounts.admin_users_index_path %></li>
179
+ </ul>
180
+ </li>
181
+ <!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
182
+ <% end %>
183
+
184
+ <% if current_user %>
185
+ <!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
186
+ <li class="nav-header">Your Account</li>
187
+ <li class="has-sub">
188
+ <a href="javascript:;">
189
+ <b class="caret"></b>
190
+ <i class="fad fa-user"></i>
191
+ <span>Accounts Settings</span>
192
+ </a>
193
+ <ul class="sub-menu">
194
+ <li class="<%= phc_menu_active_controller('phcdevworks_accounts/user/edit') %>"><%= link_to 'Settings', phcdevworks_accounts.edit_user_registration_path %></li>
195
+ <li class="<%= phc_menu_active_controller('phcdevworks_accounts/user/new') %>"><%= link_to 'Logout', phcdevworks_accounts.destroy_user_session_path, method: :delete %></li>
196
+ </ul>
197
+ </li>
198
+ <!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
199
+ <% end %>
200
+
201
+ <!-- Sidebar - Sidebar Minifier -->
202
+ <li>
203
+ <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
204
+ <i class="fa fa-angle-double-left"></i>
205
+ </a>
206
+ </li>
207
+ <!-- Sidebar - Sidebar Minifier -->
208
+
209
+ </ul>
210
+ <!-- Sidebar - Sidebar Navigation -->
211
+
212
+ </div>
213
+ <!-- Sidebar for PHCDevworks Engines -->
@@ -0,0 +1,18 @@
1
+ <!-- PHCRealListings(Pro) Form - Property Features -->
2
+ <%= form_with(model: property_feature, local: true) do |phc_pro_property_feature| %>
3
+
4
+ <!-- PHCNotifi Render Validation -->
5
+ <%= render 'phcdevworks_notifications/bootstrap/validations', :object => @property_feature %>
6
+ <!-- PHCNotifi Render Validation -->
7
+
8
+ <div class="form-group">
9
+ <%= phc_pro_property_feature.label :feature_name %>
10
+ <%= phc_pro_property_feature.text_field :feature_name, class: "form-control" %>
11
+ </div>
12
+
13
+ <div class="actions">
14
+ <%= phc_pro_property_feature.submit class: "btn btn-primary" %>
15
+ </div>
16
+
17
+ <% end %>
18
+ <!-- PHCRealListings(Pro) Form - Property Features -->
@@ -0,0 +1,37 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Property Listing Features" %>
3
+ <% phc_title_tagline "Edit Listing Features" %>
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"><%= 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
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
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
+ <!-- Edit Form Property Listings -->
33
+ <%= render 'form', property_feature: @property_feature %>
34
+ <!-- Edit Form Property Listings -->
35
+ </div>
36
+ </div>
37
+ <!-- Page Content -->
@@ -0,0 +1,62 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Admin - Property Listing Features" %>
3
+ <% phc_title_tagline "Listing Features" %>
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"><%= 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
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
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>
37
+ <th>Feature Name</th>
38
+ <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
+ </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 %>
58
+ </div>
59
+ <!-- Table - Features for Listings -->
60
+ </div>
61
+ </div>
62
+ <!-- Page Content -->
@@ -0,0 +1,37 @@
1
+ <!-- Title System -->
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
+ <!-- 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"><%= 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
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
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
+ <!-- New Form Property Listings -->
33
+ <%= render 'form', property_feature: @property_feature %>
34
+ <!-- New Form Property Listings -->
35
+ </div>
36
+ </div>
37
+ <!-- Page Content -->
@@ -0,0 +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.feature_name %>
57
+ </p>
58
+ </div>
59
+ </div>
60
+ <!-- Panel Content -->
61
+ </div>
62
+ <!-- Main Panel -->
63
+ </div>
64
+ <!-- Page Content -->