phcdevworks_accounts_devise 0.1.0.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +11 -0
- data/Rakefile +8 -0
- data/app/assets/config/phcdevworks_accounts_devise_manifest.js +2 -0
- data/app/controllers/phcdevworks_accounts_devise/admin/pages_controller.rb +25 -0
- data/app/controllers/phcdevworks_accounts_devise/application_controller.rb +25 -0
- data/app/controllers/phcdevworks_accounts_devise/user/pages_controller.rb +15 -0
- data/app/controllers/users/confirmations_controller.rb +30 -0
- data/app/controllers/users/omniauth_callbacks_controller.rb +30 -0
- data/app/controllers/users/passwords_controller.rb +34 -0
- data/app/controllers/users/registrations_controller.rb +74 -0
- data/app/controllers/users/sessions_controller.rb +27 -0
- data/app/controllers/users/unlocks_controller.rb +30 -0
- data/app/helpers/phcdevworks_accounts_devise/admin/pages_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts_devise/application_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts_devise/user/pages_helper.rb +4 -0
- data/app/jobs/phcdevworks_accounts_devise/application_job.rb +4 -0
- data/app/mailers/phcdevworks_accounts_devise/application_mailer.rb +6 -0
- data/app/models/phcdevworks_accounts_devise/application_record.rb +5 -0
- data/app/models/phcdevworks_accounts_devise/user.rb +39 -0
- data/app/views/layouts/phcdevworks_accounts_devise/application.html.erb +73 -0
- data/app/views/layouts/phcdevworks_accounts_devise/application_full_width.html.erb +73 -0
- data/app/views/layouts/phcdevworks_accounts_devise/application_no_sidebar.html.erb +64 -0
- data/app/views/layouts/phcdevworks_accounts_devise/application_profile.html.erb +73 -0
- data/app/views/layouts/phcdevworks_accounts_devise/components/backend/footer/_footer.html.erb +17 -0
- data/app/views/layouts/phcdevworks_accounts_devise/components/backend/navigation/_top_menu.html.erb +41 -0
- data/app/views/layouts/phcdevworks_accounts_devise/components/backend/sidebars/_side_menu.html.erb +529 -0
- data/app/views/layouts/phcdevworks_accounts_devise/devise.html.erb +38 -0
- data/app/views/phcdevworks_accounts_devise/admin/pages/components/_profile_header.html.erb +27 -0
- data/app/views/phcdevworks_accounts_devise/admin/pages/dashboard.html.erb +0 -0
- data/app/views/phcdevworks_accounts_devise/admin/pages/user_profile.html.erb +22 -0
- data/app/views/phcdevworks_accounts_devise/admin/pages/users_list.html.erb +68 -0
- data/app/views/phcdevworks_accounts_devise/user/pages/dashboard.html.erb +0 -0
- data/app/views/phcdevworks_accounts_devise/user/pages/profile.html.erb +0 -0
- data/app/views/users/confirmations/new.html.erb +48 -0
- data/app/views/users/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/users/mailer/email_changed.html.erb +7 -0
- data/app/views/users/mailer/password_change.html.erb +3 -0
- data/app/views/users/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/users/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/users/passwords/edit.html.erb +59 -0
- data/app/views/users/passwords/new.html.erb +51 -0
- data/app/views/users/registrations/edit.html.erb +100 -0
- data/app/views/users/registrations/new.html.erb +109 -0
- data/app/views/users/sessions/new.html.erb +92 -0
- data/app/views/users/shared/_links.html.erb +25 -0
- data/app/views/users/unlocks/new.html.erb +50 -0
- data/config/initializers/devise.rb +310 -0
- data/config/locales/devise.en.yml +65 -0
- data/config/routes.rb +19 -0
- data/config/spring.rb +2 -0
- data/db/migrate/20191012042035_devise_create_phcdevworks_accounts_devise_users.rb +46 -0
- data/db/migrate/20191012060241_add_userinfo_to_users.rb +15 -0
- data/db/migrate/20191012060308_add_role_to_users.rb +7 -0
- data/db/migrate/20191012060324_add_tos_to_users.rb +7 -0
- data/db/migrate/20210407121952_add_customer_id_to_users.rb +7 -0
- data/db/migrate/20210425060053_add_subscription_id_to_users.rb +7 -0
- data/lib/phcdevworks_accounts_devise/engine.rb +43 -0
- data/lib/phcdevworks_accounts_devise/version.rb +3 -0
- data/lib/phcdevworks_accounts_devise.rb +6 -0
- data/lib/tasks/phcdevworks_accounts_devise_tasks.rake +4 -0
- metadata +417 -0
data/app/views/layouts/phcdevworks_accounts_devise/components/backend/sidebars/_side_menu.html.erb
ADDED
@@ -0,0 +1,529 @@
|
|
1
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
2
|
+
<div class="app-sidebar-content" data-scrollbar="true" data-height="100%">
|
3
|
+
<div class="menu">
|
4
|
+
|
5
|
+
<!-- -PHCDev- Page Container - Sidebar - Profile -->
|
6
|
+
<div class="menu-profile">
|
7
|
+
<% if current_user %>
|
8
|
+
<a href="javascript:;" class="menu-profile-link" data-toggle="app-sidebar-profile" data-target="#appSidebarProfileMenu">
|
9
|
+
<div class="menu-profile-cover with-shadow"></div>
|
10
|
+
<div class="menu-profile-image">
|
11
|
+
<%= image_tag current_user.gravatar_url %>
|
12
|
+
</div>
|
13
|
+
<div class="menu-profile-info">
|
14
|
+
<div class="d-flex align-items-center">
|
15
|
+
<div class="flex-grow-1">
|
16
|
+
<%= current_user.firstname + " " + current_user.lastname %>
|
17
|
+
</div>
|
18
|
+
<div class="menu-caret ms-auto"></div>
|
19
|
+
</div>
|
20
|
+
<small><%= current_user.username %></small>
|
21
|
+
</div>
|
22
|
+
</a>
|
23
|
+
<% end %>
|
24
|
+
</div>
|
25
|
+
<!-- -PHCDev- Page Container - Sidebar - Profile -->
|
26
|
+
|
27
|
+
<!-- -PHCDev- Page Container - Sidebar - Profile - Menu -->
|
28
|
+
<div id="appSidebarProfileMenu" class="collapse">
|
29
|
+
<div class="menu-item pt-5px">
|
30
|
+
<%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "menu-link" do %>
|
31
|
+
<div class="menu-icon"><i class="fad fa-cogs"></i></div>
|
32
|
+
<div class="menu-text">Account Settings</div>
|
33
|
+
<% end %>
|
34
|
+
<%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "menu-link" do %>
|
35
|
+
<div class="menu-icon"><i class="fad fa-sign-out-alt"></i></div>
|
36
|
+
<div class="menu-text">Logout</div>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
<div class="menu-divider m-0"></div>
|
40
|
+
</div>
|
41
|
+
<!-- -PHCDev- Page Container - Sidebar - Profile - Menu -->
|
42
|
+
|
43
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCMembers -->
|
44
|
+
<% if defined?phcdevworks_members %>
|
45
|
+
<div class="menu-header">PHCMembers</div>
|
46
|
+
<div class="menu-item has-sub">
|
47
|
+
<a href="javascript:;" class="menu-link">
|
48
|
+
<div class="menu-icon"><i class="material-icons">people</i></div>
|
49
|
+
<div class="menu-text">Membership Manager</div>
|
50
|
+
<div class="menu-caret"></div>
|
51
|
+
</a>
|
52
|
+
<div class="menu-submenu">
|
53
|
+
<div class="menu-item has-sub">
|
54
|
+
<a href="javascript:;" class="menu-link">
|
55
|
+
<div class="menu-text">Member's Data</div>
|
56
|
+
<div class="menu-caret"></div>
|
57
|
+
</a>
|
58
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>">
|
59
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/member/profiles", "Index") %>">
|
60
|
+
<%= link_to phcdevworks_members.member_profiles_path, class: "menu-link" do %>
|
61
|
+
<div class="menu-text">Member Index</div>
|
62
|
+
<% end %>
|
63
|
+
</div>
|
64
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/member/profiles", "New") %>">
|
65
|
+
<%= link_to phcdevworks_members.new_member_profile_path, class: "menu-link" do %>
|
66
|
+
<div class="menu-text">Add a New Member</div>
|
67
|
+
<% end %>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
<div class="menu-item has-sub">
|
72
|
+
<a href="javascript:;" class="menu-link">
|
73
|
+
<div class="menu-text">Member's Directory</div>
|
74
|
+
<div class="menu-caret"></div>
|
75
|
+
</a>
|
76
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_members/modules/categories") %>">
|
77
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/modules/categories", "Index") %>">
|
78
|
+
<%= link_to phcdevworks_members.directory_categories_path, class: "menu-link" do %>
|
79
|
+
<div class="menu-text">Category Index</div>
|
80
|
+
<% end %>
|
81
|
+
</div>
|
82
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_members/modules/categories", "New") %>">
|
83
|
+
<%= link_to phcdevworks_members.new_directory_category_path, class: "menu-link" do %>
|
84
|
+
<div class="menu-text">Add a New Category</div>
|
85
|
+
<% end %>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
<% end %>
|
92
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCMembers -->
|
93
|
+
|
94
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCPress -->
|
95
|
+
<% if defined?phcdevworks_press %>
|
96
|
+
<div class="menu-header">PHCPress</div>
|
97
|
+
<div class="menu-item has-sub">
|
98
|
+
<a href="javascript:;" class="menu-link">
|
99
|
+
<div class="menu-icon"><i class="material-icons">newspaper</i></div>
|
100
|
+
<div class="menu-text">Blogging</div>
|
101
|
+
<div class="menu-caret"></div>
|
102
|
+
</a>
|
103
|
+
<div class="menu-submenu">
|
104
|
+
<div class="menu-item has-sub">
|
105
|
+
<a href="javascript:;" class="menu-link">
|
106
|
+
<div class="menu-text">Article Posts</div>
|
107
|
+
<div class="menu-caret"></div>
|
108
|
+
</a>
|
109
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_press/article/posts") %>">
|
110
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_press/article/posts", "Index") %>">
|
111
|
+
<%= link_to phcdevworks_press.article_posts_path, class: "menu-link" do %>
|
112
|
+
<div class="menu-text">All Articles</div>
|
113
|
+
<% end %>
|
114
|
+
</div>
|
115
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_press/article/posts", "New") %>">
|
116
|
+
<%= link_to phcdevworks_press.new_article_post_path, class: "menu-link" do %>
|
117
|
+
<div class="menu-text">Add a New Article</div>
|
118
|
+
<% end %>
|
119
|
+
</div>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
<% end %>
|
125
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCPress -->
|
126
|
+
|
127
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCPortfolio -->
|
128
|
+
<% if defined?phcdevworks_portfolio %>
|
129
|
+
<div class="menu-header">PHCPortfolio</div>
|
130
|
+
<div class="menu-item has-sub">
|
131
|
+
<a href="javascript:;" class="menu-link">
|
132
|
+
<div class="menu-icon"><i class="material-icons">business_center</i></div>
|
133
|
+
<div class="menu-text">Portfolio & Projects</div>
|
134
|
+
<div class="menu-caret"></div>
|
135
|
+
</a>
|
136
|
+
<div class="menu-submenu">
|
137
|
+
<div class="menu-item has-sub">
|
138
|
+
<a href="javascript:;" class="menu-link">
|
139
|
+
<div class="menu-text">Project Portfolio</div>
|
140
|
+
<div class="menu-caret"></div>
|
141
|
+
</a>
|
142
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>">
|
143
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/posts", "Index") %>">
|
144
|
+
<%= link_to phcdevworks_portfolio.project_posts_path, class: "menu-link" do %>
|
145
|
+
<div class="menu-text">Project Index</div>
|
146
|
+
<% end %>
|
147
|
+
</div>
|
148
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/posts", "New") %>">
|
149
|
+
<%= link_to phcdevworks_portfolio.new_project_post_path, class: "menu-link" do %>
|
150
|
+
<div class="menu-text">Add a New Project</div>
|
151
|
+
<% end %>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
<div class="menu-item has-sub">
|
156
|
+
<a href="javascript:;" class="menu-link">
|
157
|
+
<div class="menu-text">Project Types</div>
|
158
|
+
<div class="menu-caret"></div>
|
159
|
+
</a>
|
160
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_portfolio/project/types") %>">
|
161
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/types", "Index") %>">
|
162
|
+
<%= link_to phcdevworks_portfolio.project_types_path, class: "menu-link" do %>
|
163
|
+
<div class="menu-text">Project Types</div>
|
164
|
+
<% end %>
|
165
|
+
</div>
|
166
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_portfolio/project/types", "New") %>">
|
167
|
+
<%= link_to phcdevworks_tutorials.new_project_type_path, class: "menu-link" do %>
|
168
|
+
<div class="menu-text">Add a New Project Type</div>
|
169
|
+
<% end %>
|
170
|
+
</div>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
</div>
|
175
|
+
<% end %>
|
176
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCPortfolio -->
|
177
|
+
|
178
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCRealEstate -->
|
179
|
+
<% if defined?phcdevworks_real_estate %>
|
180
|
+
<div class="menu-header">PHCRealEstate</div>
|
181
|
+
<div class="menu-item has-sub">
|
182
|
+
<a href="javascript:;" class="menu-link">
|
183
|
+
<div class="menu-icon"><i class="material-icons">holiday_village</i></div>
|
184
|
+
<div class="menu-text">Property Listings</div>
|
185
|
+
<div class="menu-caret"></div>
|
186
|
+
</a>
|
187
|
+
<div class="menu-submenu">
|
188
|
+
<div class="menu-item has-sub">
|
189
|
+
<a href="javascript:;" class="menu-link">
|
190
|
+
<div class="menu-text">Property Listings</div>
|
191
|
+
<div class="menu-caret"></div>
|
192
|
+
</a>
|
193
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_real_estate/property/listings") %>">
|
194
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/listings", "Index") %>">
|
195
|
+
<%= link_to phcdevworks_real_estate.property_listings_path, class: "menu-link" do %>
|
196
|
+
<div class="menu-text">Property Listings</div>
|
197
|
+
<% end %>
|
198
|
+
</div>
|
199
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/listings", "New") %>">
|
200
|
+
<%= link_to phcdevworks_real_estate.new_property_listing_path, class: "menu-link" do %>
|
201
|
+
<div class="menu-text">Add a New Listing</div>
|
202
|
+
<% end %>
|
203
|
+
</div>
|
204
|
+
</div>
|
205
|
+
</div>
|
206
|
+
<div class="menu-item has-sub">
|
207
|
+
<a href="javascript:;" class="menu-link">
|
208
|
+
<div class="menu-text">Project Types</div>
|
209
|
+
<div class="menu-caret"></div>
|
210
|
+
</a>
|
211
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_real_estate/property/features") %>">
|
212
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/features", "Index") %>">
|
213
|
+
<%= link_to phcdevworks_real_estate.property_features_path, class: "menu-link" do %>
|
214
|
+
<div class="menu-text">Property Features List</div>
|
215
|
+
<% end %>
|
216
|
+
</div>
|
217
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_real_estate/property/features", "New") %>">
|
218
|
+
<%= link_to phcdevworks_real_estate.new_property_feature_path, class: "menu-link" do %>
|
219
|
+
<div class="menu-text">Add a New Property Feature</div>
|
220
|
+
<% end %>
|
221
|
+
</div>
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
</div>
|
225
|
+
</div>
|
226
|
+
<% end %>
|
227
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCRealEstate -->
|
228
|
+
|
229
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCScripts -->
|
230
|
+
<% if defined?phcdevworks_scripts %>
|
231
|
+
<div class="menu-header">PHCScripts</div>
|
232
|
+
<div class="menu-item has-sub">
|
233
|
+
<a href="javascript:;" class="menu-link">
|
234
|
+
<div class="menu-icon"><i class="material-icons">code</i></div>
|
235
|
+
<div class="menu-text">Script CDN Listing</div>
|
236
|
+
<div class="menu-caret"></div>
|
237
|
+
</a>
|
238
|
+
<div class="menu-submenu">
|
239
|
+
<div class="menu-item has-sub">
|
240
|
+
<a href="javascript:;" class="menu-link">
|
241
|
+
<div class="menu-text">Script Listing</div>
|
242
|
+
<div class="menu-caret"></div>
|
243
|
+
</a>
|
244
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/script/listings") %>">
|
245
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/listings", "Index") %>">
|
246
|
+
<%= link_to phcdevworks_scripts.script_listings_path, class: "menu-link" do %>
|
247
|
+
<div class="menu-text">Script Listings</div>
|
248
|
+
<% end %>
|
249
|
+
</div>
|
250
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/listings", "New") %>">
|
251
|
+
<%= link_to phcdevworks_scripts.new_script_listing_path, class: "menu-link" do %>
|
252
|
+
<div class="menu-text">Add a New Listing</div>
|
253
|
+
<% end %>
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
</div>
|
257
|
+
<div class="menu-item has-sub">
|
258
|
+
<a href="javascript:;" class="menu-link">
|
259
|
+
<div class="menu-text">Script Listing Extras</div>
|
260
|
+
<div class="menu-caret"></div>
|
261
|
+
</a>
|
262
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/script/authors") %>">
|
263
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/authors", "Index") %>">
|
264
|
+
<%= link_to phcdevworks_scripts.script_authors_path, class: "menu-link" do %>
|
265
|
+
<div class="menu-text">Script Authors</div>
|
266
|
+
<% end %>
|
267
|
+
</div>
|
268
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/extensions", "Index") %>">
|
269
|
+
<%= link_to phcdevworks_scripts.script_extensions_path, class: "menu-link" do %>
|
270
|
+
<div class="menu-text">Script Extensions</div>
|
271
|
+
<% end %>
|
272
|
+
</div>
|
273
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/script/versions", "Index") %>">
|
274
|
+
<%= link_to phcdevworks_scripts.script_versions_path, class: "menu-link" do %>
|
275
|
+
<div class="menu-text">Script Versions</div>
|
276
|
+
<% end %>
|
277
|
+
</div>
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
<div class="menu-item has-sub">
|
281
|
+
<a href="javascript:;" class="menu-link">
|
282
|
+
<div class="menu-text">Code Snippets</div>
|
283
|
+
<div class="menu-caret"></div>
|
284
|
+
</a>
|
285
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_scripts/snippet/posts") %>">
|
286
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/snippet/posts", "Index") %>">
|
287
|
+
<%= link_to phcdevworks_scripts.snippet_posts_path, class: "menu-link" do %>
|
288
|
+
<div class="menu-text">Code Snippets</div>
|
289
|
+
<% end %>
|
290
|
+
</div>
|
291
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_scripts/snippet/posts", "New") %>">
|
292
|
+
<%= link_to phcdevworks_scripts.new_snippet_post_path, class: "menu-link" do %>
|
293
|
+
<div class="menu-text">Add a New Code Snippet</div>
|
294
|
+
<% end %>
|
295
|
+
</div>
|
296
|
+
</div>
|
297
|
+
</div>
|
298
|
+
</div>
|
299
|
+
</div>
|
300
|
+
<% end %>
|
301
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCScripts -->
|
302
|
+
|
303
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCTutorials -->
|
304
|
+
<% if defined?phcdevworks_tutorials %>
|
305
|
+
<div class="menu-header">PHCTutorials</div>
|
306
|
+
<div class="menu-item has-sub">
|
307
|
+
<a href="javascript:;" class="menu-link">
|
308
|
+
<div class="menu-icon"><i class="material-icons">school</i></div>
|
309
|
+
<div class="menu-text">Tutorials</div>
|
310
|
+
<div class="menu-caret"></div>
|
311
|
+
</a>
|
312
|
+
<div class="menu-submenu">
|
313
|
+
<div class="menu-item has-sub">
|
314
|
+
<a href="javascript:;" class="menu-link">
|
315
|
+
<div class="menu-text">Tutorials</div>
|
316
|
+
<div class="menu-caret"></div>
|
317
|
+
</a>
|
318
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>">
|
319
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/tutorials/posts", "Index") %>">
|
320
|
+
<%= link_to phcdevworks_tutorials.tutorial_posts_path, class: "menu-link" do %>
|
321
|
+
<div class="menu-text">Tutorial Index</div>
|
322
|
+
<% end %>
|
323
|
+
</div>
|
324
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/tutorials/posts", "New") %>">
|
325
|
+
<%= link_to phcdevworks_tutorials.new_tutorial_post_path, class: "menu-link" do %>
|
326
|
+
<div class="menu-text">Add a New Tutorial</div>
|
327
|
+
<% end %>
|
328
|
+
</div>
|
329
|
+
</div>
|
330
|
+
</div>
|
331
|
+
<div class="menu-item has-sub">
|
332
|
+
<a href="javascript:;" class="menu-link">
|
333
|
+
<div class="menu-text">Command Lists</div>
|
334
|
+
<div class="menu-caret"></div>
|
335
|
+
</a>
|
336
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>">
|
337
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/command/posts", "Index") %>">
|
338
|
+
<%= link_to phcdevworks_tutorials.command_posts_path, class: "menu-link" do %>
|
339
|
+
<div class="menu-text">Command List Index</div>
|
340
|
+
<% end %>
|
341
|
+
</div>
|
342
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_tutorials/command/posts", "New") %>">
|
343
|
+
<%= link_to phcdevworks_tutorials.new_command_post_path, class: "menu-link" do %>
|
344
|
+
<div class="menu-text">Add a New Command List</div>
|
345
|
+
<% end %>
|
346
|
+
</div>
|
347
|
+
</div>
|
348
|
+
</div>
|
349
|
+
</div>
|
350
|
+
</div>
|
351
|
+
<% end %>
|
352
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCTutorials -->
|
353
|
+
|
354
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCCoreModules -->
|
355
|
+
<% if defined?phcdevworks_core_modules %>
|
356
|
+
<div class="menu-header">Categories</div>
|
357
|
+
<div class="menu-item has-sub">
|
358
|
+
<a href="javascript:;" class="menu-link">
|
359
|
+
<div class="menu-icon"><i class="material-icons">view_list</i></div>
|
360
|
+
<div class="menu-text">Categories</div>
|
361
|
+
<div class="menu-caret"></div>
|
362
|
+
</a>
|
363
|
+
<div class="menu-submenu">
|
364
|
+
<div class="menu-item has-sub">
|
365
|
+
<a href="javascript:;" class="menu-link">
|
366
|
+
<div class="menu-text">Categories</div>
|
367
|
+
<div class="menu-caret"></div>
|
368
|
+
</a>
|
369
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>">
|
370
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/post/categories", "Index") %>">
|
371
|
+
<%= link_to phcdevworks_core_modules.post_categories_path, class: "menu-link" do %>
|
372
|
+
<div class="menu-text">Category Index</div>
|
373
|
+
<% end %>
|
374
|
+
</div>
|
375
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/post/categories", "New") %>">
|
376
|
+
<%= link_to phcdevworks_core_modules.new_post_category_path, class: "menu-link" do %>
|
377
|
+
<div class="menu-text">Add a New Category</div>
|
378
|
+
<% end %>
|
379
|
+
</div>
|
380
|
+
</div>
|
381
|
+
</div>
|
382
|
+
</div>
|
383
|
+
</div>
|
384
|
+
<div class="menu-header">Marketing</div>
|
385
|
+
<div class="menu-item has-sub">
|
386
|
+
<a href="javascript:;" class="menu-link">
|
387
|
+
<div class="menu-icon"><i class="material-icons">query_stats</i></div>
|
388
|
+
<div class="menu-text">Search Optimization</div>
|
389
|
+
<div class="menu-caret"></div>
|
390
|
+
</a>
|
391
|
+
<div class="menu-submenu">
|
392
|
+
<div class="menu-item has-sub">
|
393
|
+
<a href="javascript:;" class="menu-link">
|
394
|
+
<div class="menu-text">SEO Data</div>
|
395
|
+
<div class="menu-caret"></div>
|
396
|
+
</a>
|
397
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>">
|
398
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/marketing/optimizations", "Index") %>">
|
399
|
+
<%= link_to phcdevworks_core_modules.marketing_optimizations_path, class: "menu-link" do %>
|
400
|
+
<div class="menu-text">SEO Data Index</div>
|
401
|
+
<% end %>
|
402
|
+
</div>
|
403
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/marketing/optimizations", "New") %>">
|
404
|
+
<%= link_to phcdevworks_core_modules.new_marketing_optimization_path, class: "menu-link" do %>
|
405
|
+
<div class="menu-text">Add New SEO Data</div>
|
406
|
+
<% end %>
|
407
|
+
</div>
|
408
|
+
</div>
|
409
|
+
</div>
|
410
|
+
</div>
|
411
|
+
</div>
|
412
|
+
<div class="menu-item has-sub">
|
413
|
+
<a href="javascript:;" class="menu-link">
|
414
|
+
<div class="menu-icon"><i class="material-icons">link</i></div>
|
415
|
+
<div class="menu-text">Affiliate Linking</div>
|
416
|
+
<div class="menu-caret"></div>
|
417
|
+
</a>
|
418
|
+
<div class="menu-submenu">
|
419
|
+
<div class="menu-item has-sub">
|
420
|
+
<a href="javascript:;" class="menu-link">
|
421
|
+
<div class="menu-text">Affiliate Links</div>
|
422
|
+
<div class="menu-caret"></div>
|
423
|
+
</a>
|
424
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_core_modules/affiliate/links") %>">
|
425
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/affiliate/links", "Index") %>">
|
426
|
+
<%= link_to phcdevworks_core_modules.affiliate_links_path, class: "menu-link" do %>
|
427
|
+
<div class="menu-text">Affiliate Link Index</div>
|
428
|
+
<% end %>
|
429
|
+
</div>
|
430
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_core_modules/affiliate/links", "New") %>">
|
431
|
+
<%= link_to phcdevworks_core_modules.new_affiliate_link_path, class: "menu-link" do %>
|
432
|
+
<div class="menu-text">Add a New Affiliate Link</div>
|
433
|
+
<% end %>
|
434
|
+
</div>
|
435
|
+
</div>
|
436
|
+
</div>
|
437
|
+
</div>
|
438
|
+
</div>
|
439
|
+
<% end %>
|
440
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCCoreModules -->
|
441
|
+
|
442
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCAccounts -->
|
443
|
+
|
444
|
+
<% if defined?phcdevworks_accounts_stripe and current_user.admin? %>
|
445
|
+
<div class="menu-header">Subscription Administration</div>
|
446
|
+
<div class="menu-item has-sub">
|
447
|
+
<a href="javascript:;" class="menu-link">
|
448
|
+
<div class="menu-icon"><i class="material-icons">payments</i></div>
|
449
|
+
<div class="menu-text">Stripe</div>
|
450
|
+
<div class="menu-caret"></div>
|
451
|
+
</a>
|
452
|
+
<div class="menu-submenu">
|
453
|
+
<div class="menu-item has-sub">
|
454
|
+
<a href="javascript:;" class="menu-link">
|
455
|
+
<div class="menu-text">Accounting</div>
|
456
|
+
<div class="menu-caret"></div>
|
457
|
+
</a>
|
458
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions") %>">
|
459
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/subscriptions", "admin_subscription_list") %>">
|
460
|
+
<%= link_to phcdevworks_accounts_stripe.admin_invoices_path, class: "menu-link" do %>
|
461
|
+
<div class="menu-text">Invoices</div>
|
462
|
+
<% end %>
|
463
|
+
</div>
|
464
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/subscriptions", "admin_subscription_list") %>">
|
465
|
+
<%= link_to phcdevworks_accounts_stripe.admin_subscriptions_path, class: "menu-link" do %>
|
466
|
+
<div class="menu-text">Subscriptions</div>
|
467
|
+
<% end %>
|
468
|
+
</div>
|
469
|
+
</div>
|
470
|
+
</div>
|
471
|
+
<div class="menu-item has-sub">
|
472
|
+
<a href="javascript:;" class="menu-link">
|
473
|
+
<div class="menu-text">Services & Products</div>
|
474
|
+
<div class="menu-caret"></div>
|
475
|
+
</a>
|
476
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products") %>">
|
477
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/products", "admin_products_list") %>">
|
478
|
+
<%= link_to phcdevworks_accounts_stripe.admin_products_path, class: "menu-link" do %>
|
479
|
+
<div class="menu-text">Product List</div>
|
480
|
+
<% end %>
|
481
|
+
</div>
|
482
|
+
</div>
|
483
|
+
</div>
|
484
|
+
<div class="menu-item has-sub">
|
485
|
+
<a href="javascript:;" class="menu-link">
|
486
|
+
<div class="menu-text">Subscribers</div>
|
487
|
+
<div class="menu-caret"></div>
|
488
|
+
</a>
|
489
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers") %>">
|
490
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_stripe/admin/customers", "admin_customer_list") %>">
|
491
|
+
<%= link_to phcdevworks_accounts_stripe.admin_customers_path, class: "menu-link" do %>
|
492
|
+
<div class="menu-text">Subscriber List</div>
|
493
|
+
<% end %>
|
494
|
+
</div>
|
495
|
+
</div>
|
496
|
+
</div>
|
497
|
+
</div>
|
498
|
+
</div>
|
499
|
+
<% end %>
|
500
|
+
<% if current_user and current_user.admin? %>
|
501
|
+
<div class="menu-header">Login Administration</div>
|
502
|
+
<div class="menu-item has-sub">
|
503
|
+
<a href="javascript:;" class="menu-link">
|
504
|
+
<div class="menu-icon"><i class="material-icons">admin_panel_settings</i></div>
|
505
|
+
<div class="menu-text">Auth Administration</div>
|
506
|
+
<div class="menu-caret"></div>
|
507
|
+
</a>
|
508
|
+
<div class="menu-submenu">
|
509
|
+
<div class="menu-item has-sub">
|
510
|
+
<a href="javascript:;" class="menu-link">
|
511
|
+
<div class="menu-text">Users</div>
|
512
|
+
<div class="menu-caret"></div>
|
513
|
+
</a>
|
514
|
+
<div class="menu-submenu <%= phc_menu_active_controller("phcdevworks_accounts_devise/admin/users") %>">
|
515
|
+
<div class="menu-item <%= phc_menu_active_action_controller("phcdevworks_accounts_devise/admin/users", "admin_subscription_list") %>">
|
516
|
+
<%= link_to phcdevworks_accounts_devise.admin_users_all_path, class: "menu-link" do %>
|
517
|
+
<div class="menu-text">User List</div>
|
518
|
+
<% end %>
|
519
|
+
</div>
|
520
|
+
</div>
|
521
|
+
</div>
|
522
|
+
</div>
|
523
|
+
</div>
|
524
|
+
<% end %>
|
525
|
+
<!-- -PHCDev- Page Container - Sidebar - Navigation - PHCAccounts -->
|
526
|
+
|
527
|
+
</div>
|
528
|
+
</div>
|
529
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Accounts" %>
|
7
|
+
<% phc_seo_description "Ruby on Rails 6 Authentication and User Management Engine." %>
|
8
|
+
<!-- SEO System -->
|
9
|
+
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
16
|
+
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
21
|
+
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<%= stylesheet_link_tag "coloradmin/default/phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
+
<!-- CSS Styles -->
|
25
|
+
|
26
|
+
</head>
|
27
|
+
<body>
|
28
|
+
|
29
|
+
<!-- Page Content -->
|
30
|
+
<%= yield %>
|
31
|
+
<!-- Page Content -->
|
32
|
+
|
33
|
+
<!-- JavaScript -->
|
34
|
+
<%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
|
35
|
+
<!-- JavaScript -->
|
36
|
+
|
37
|
+
</body>
|
38
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<div class="profile-header">
|
2
|
+
|
3
|
+
<!-- User Profiles - Header - Cover -->
|
4
|
+
<div class="profile-header-cover"></div>
|
5
|
+
<!-- User Profiles - Header - Cover -->
|
6
|
+
|
7
|
+
<!-- User Profiles - Header - Content -->
|
8
|
+
<div class="profile-header-content">
|
9
|
+
<div class="profile-header-img">
|
10
|
+
<%= image_tag @admin_user.gravatar_url :secure => true, :filetype => :png, :size => 128 %>
|
11
|
+
</div>
|
12
|
+
<div class="profile-header-info">
|
13
|
+
<h4 class="m-t-10 m-b-5"><%= @admin_user.firstname + ' ' + @admin_user.lastname %></h4>
|
14
|
+
<p class="m-b-10"><%= @admin_user.username %></p>
|
15
|
+
<%= link_to edit_user_registration_path(@admin_user), class: "btn btn-xs btn-yellow" do %>
|
16
|
+
<i class="fad fa-user-edit"></i> Update Member Information
|
17
|
+
<% end %>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<!-- User Profiles - Header - Content -->
|
21
|
+
|
22
|
+
<!-- User Profiles - Header - Tab Bar -->
|
23
|
+
<ul class="profile-header-tab nav nav-tabs">
|
24
|
+
</ul>
|
25
|
+
<!-- User Profiles - Header - Tab Bar -->
|
26
|
+
|
27
|
+
</div>
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "User Manager" %>
|
3
|
+
<% phc_title_tagline "Useer Profile" %>
|
4
|
+
<% phc_breadcrumb_one yield(:phc_title) %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
|
+
|
8
|
+
<!-- User Profiles - Header -->
|
9
|
+
<div class="profile">
|
10
|
+
<%= render 'phcdevworks_accounts_devise/admin/pages/components/profile_header' %>
|
11
|
+
</div>
|
12
|
+
<!-- User Profiles - Header -->
|
13
|
+
|
14
|
+
<!-- User Profiles - Remove Full Page Width -->
|
15
|
+
<div class="profile-content">
|
16
|
+
<div class="tab-content p-0">
|
17
|
+
|
18
|
+
<%= render 'phcdevworks_notifications/bootstrap/notifications' %>
|
19
|
+
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<!-- User Profiles - Remove Full Page Width -->
|