phcdevworks_accounts_devise 0.1.0.pre.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -0,0 +1,73 @@
|
|
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
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
24
|
+
<%= stylesheet_link_tag "coloradmin/default/phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
25
|
+
<!-- CSS Styles -->
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
|
30
|
+
<!-- -PHCDev- Page Container -->
|
31
|
+
<div id="app" class="app app-header-fixed app-sidebar-fixed app-with-wide-sidebar">
|
32
|
+
|
33
|
+
<!-- -PHCDev- Page Container - Header -->
|
34
|
+
<div id="header" class="app-header">
|
35
|
+
<%= render "layouts/phcdevworks_accounts_devise/components/backend/navigation/top_menu" %>
|
36
|
+
</div>
|
37
|
+
<!-- -PHCDev- Page Container - Header -->
|
38
|
+
|
39
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
40
|
+
<div id="sidebar" class="app-sidebar" data-disable-slide-animation="true">
|
41
|
+
<%= render "layouts/phcdevworks_accounts_devise/components/backend/sidebars/side_menu" %>
|
42
|
+
</div>
|
43
|
+
<div class="app-sidebar-bg"></div>
|
44
|
+
<div class="app-sidebar-mobile-backdrop"><a href="#" data-dismiss="app-sidebar-mobile" class="stretched-link"></a></div>
|
45
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
46
|
+
|
47
|
+
<!-- -PHCDev- Page Container - Content -->
|
48
|
+
<div id="app" class="app app-content-full-height">
|
49
|
+
<div id="content" class="app-content d-flex flex-column p-0">
|
50
|
+
<!-- -PHCDev- Page Container - Main -->
|
51
|
+
<div class="app-content-padding flex-grow-1 overflow-hidden" data-scrollbar="true" data-height="100%">
|
52
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
53
|
+
<%= yield %>
|
54
|
+
</div>
|
55
|
+
<!-- -PHCDev- Page Container - Main -->
|
56
|
+
<!-- -PHCDev- Page Container - Footer -->
|
57
|
+
<div id="footer" class="app-footer m-0">
|
58
|
+
<%= render "layouts/phcdevworks_accounts_devise/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- -PHCDev- Page Container - Footer -->
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<!-- -PHCDev- Page Container - Content -->
|
64
|
+
|
65
|
+
</div>
|
66
|
+
<!-- -PHCDev- Page Container -->
|
67
|
+
|
68
|
+
<!-- JavaScript -->
|
69
|
+
<%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
|
70
|
+
<!-- JavaScript -->
|
71
|
+
|
72
|
+
</body>
|
73
|
+
</html>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!-- -PHCDev- Page Container - Footer - Left -->
|
2
|
+
<span>
|
3
|
+
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
4
|
+
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
+
<span class="font-weight-bold">PHC</span>Devworks Accounts (Devise) - Engine v<%= Gem.loaded_specs["phcdevworks_accounts_devise"].version.to_s %>
|
6
|
+
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
7
|
+
</span>
|
8
|
+
<!-- -PHCDev- Page Container - Footer - Left -->
|
9
|
+
|
10
|
+
<!-- -PHCDev- Page Container - Footer - Right -->
|
11
|
+
<span class="float-right">
|
12
|
+
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
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
|
+
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
16
|
+
</span>
|
17
|
+
<!-- -PHCDev- Page Container - Footer - Right -->
|
data/app/views/layouts/phcdevworks_accounts_devise/components/backend/navigation/_top_menu.html.erb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
<!-- -PHC- Topbar - Navigation Header -->
|
2
|
+
<div class="navbar-header">
|
3
|
+
|
4
|
+
<button type="button" class="navbar-mobile-toggler" data-toggle="app-sidebar-mobile">
|
5
|
+
<span class="icon-bar"></span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
</button>
|
9
|
+
|
10
|
+
<%= link_to phcdevworks_accounts_devise.user_path, class: "navbar-brand" do %>
|
11
|
+
<strong>PHCDevworks</strong>Accounts
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
</div>
|
15
|
+
<!-- -PHC- Topbar - Navigation Header -->
|
16
|
+
|
17
|
+
<!-- -PHC- Topbar - Navigation Main -->
|
18
|
+
<% if current_user %>
|
19
|
+
<div class="navbar-nav">
|
20
|
+
<div class="navbar-item navbar-user dropdown">
|
21
|
+
<a href="#" class="navbar-link dropdown-toggle d-flex align-items-center" data-bs-toggle="dropdown">
|
22
|
+
<%= image_tag current_user.gravatar_url %>
|
23
|
+
<span>
|
24
|
+
<span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span>
|
25
|
+
<b class="caret"></b>
|
26
|
+
</span>
|
27
|
+
</a>
|
28
|
+
<div class="dropdown-menu dropdown-menu-end me-1">
|
29
|
+
<%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "dropdown-item" do %>
|
30
|
+
<i class="fad fa-cogs"></i> Account Settings
|
31
|
+
<% end %>
|
32
|
+
<%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
|
33
|
+
<i class="fad fa-sign-out-alt"></i> Logout
|
34
|
+
<% end %>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
<% end %>
|
39
|
+
|
40
|
+
</div>
|
41
|
+
<!-- -PHC- Topbar - Navigation Main -->
|