phcdevworks_accounts 0.1.0

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.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +6 -0
  4. data/Rakefile +32 -0
  5. data/app/assets/config/phcdevworks_accounts_manifest.js +2 -0
  6. data/app/assets/javascripts/phcdevworks_accounts/application.js +2 -0
  7. data/app/assets/stylesheets/phcdevworks_accounts/application.scss +2 -0
  8. data/app/controllers/phcdevworks_accounts/account/dashboard_controller.rb +11 -0
  9. data/app/controllers/phcdevworks_accounts/admin/accounts_controller.rb +14 -0
  10. data/app/controllers/phcdevworks_accounts/application_controller.rb +30 -0
  11. data/app/helpers/phcdevworks_accounts/application_helper.rb +4 -0
  12. data/app/jobs/phcdevworks_accounts/application_job.rb +4 -0
  13. data/app/mailers/phcdevworks_accounts/application_mailer.rb +6 -0
  14. data/app/models/phcdevworks_accounts/application_record.rb +5 -0
  15. data/app/models/phcdevworks_accounts/user.rb +36 -0
  16. data/app/views/layouts/phcdevworks_accounts/application.html.erb +79 -0
  17. data/app/views/layouts/phcdevworks_accounts/application_full_width.html.erb +75 -0
  18. data/app/views/layouts/phcdevworks_accounts/application_no_sidebar.html.erb +68 -0
  19. data/app/views/layouts/phcdevworks_accounts/components/backend/footer/_footer.html.erb +16 -0
  20. data/app/views/layouts/phcdevworks_accounts/components/backend/navigation/_top_menu.html.erb +37 -0
  21. data/app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb +86 -0
  22. data/app/views/layouts/phcdevworks_accounts/devise.html.erb +48 -0
  23. data/app/views/phcdevworks_accounts/account/dashboard/index.html.erb +0 -0
  24. data/app/views/phcdevworks_accounts/admin/accounts/index.html.erb +0 -0
  25. data/app/views/phcdevworks_accounts/admin/accounts/users_index.html.erb +0 -0
  26. data/app/views/users/confirmations/new.html.erb +62 -0
  27. data/app/views/users/mailer/confirmation_instructions.html.erb +5 -0
  28. data/app/views/users/mailer/email_changed.html.erb +7 -0
  29. data/app/views/users/mailer/password_change.html.erb +3 -0
  30. data/app/views/users/mailer/reset_password_instructions.html.erb +8 -0
  31. data/app/views/users/mailer/unlock_instructions.html.erb +7 -0
  32. data/app/views/users/passwords/edit.html.erb +73 -0
  33. data/app/views/users/passwords/new.html.erb +65 -0
  34. data/app/views/users/registrations/edit.html.erb +101 -0
  35. data/app/views/users/registrations/new.html.erb +107 -0
  36. data/app/views/users/sessions/new.html.erb +81 -0
  37. data/app/views/users/shared/_links.html.erb +25 -0
  38. data/app/views/users/unlocks/new.html.erb +62 -0
  39. data/config/initializers/devise.rb +311 -0
  40. data/config/locales/devise.en.yml +65 -0
  41. data/config/routes.rb +13 -0
  42. data/db/migrate/20190701112047_devise_create_phcdevworks_accounts_users.rb +44 -0
  43. data/db/migrate/20190701120003_add_userinfo_to_users.rb +15 -0
  44. data/db/migrate/20190701120028_add_role_to_users.rb +7 -0
  45. data/db/migrate/20190701120045_add_terms_to_users.rb +7 -0
  46. data/lib/phcdevworks_accounts/engine.rb +35 -0
  47. data/lib/phcdevworks_accounts/version.rb +3 -0
  48. data/lib/phcdevworks_accounts.rb +5 -0
  49. data/lib/tasks/phcdevworks_accounts_tasks.rake +4 -0
  50. metadata +265 -0
@@ -0,0 +1,62 @@
1
+ <!-- Title System -->
2
+ <% phc_title resource_name.to_s.humanize + " Unlock Password" %>
3
+ <% phc_title_tagline "Unlock Your " + resource_name.to_s.humanize + " Unlock Password" %>
4
+ <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.welcome_status_page_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- BreakCrumbs & Header -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
14
+ <!-- BreakCrumbs & Header -->
15
+
16
+ <!-- Page Content -->
17
+ <div class="row">
18
+ <div class="col-lg-12">
19
+
20
+ <!-- Panel -->
21
+ <div class="panel panel-inverse">
22
+
23
+ <!-- Panel - Heading -->
24
+ <div class="panel-heading">
25
+ <!-- Panel - Actions -->
26
+ <div class="panel-heading-btn">
27
+ <a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
28
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
29
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
30
+ </div>
31
+ <!-- Panel - Actions -->
32
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
33
+ </div>
34
+ <!-- Panel - Heading -->
35
+
36
+ <!-- Panel - Body -->
37
+ <div class="panel-body">
38
+
39
+ <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |form| %>
40
+
41
+ <%= devise_error_messages! %>
42
+
43
+ <div class="form-group">
44
+ <%= form.label :email %>
45
+ <%= form.email_field :email, class: "form-control", autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
46
+ </div>
47
+
48
+ <div class="actions">
49
+ <%= form.submit "Resend Confirmation Instructions", class: "btn btn-primary block full-width" %>
50
+ </div>
51
+
52
+ <% end %>
53
+
54
+ </div>
55
+ <!-- Panel - Body -->
56
+
57
+ </div>
58
+ <!-- Panel -->
59
+
60
+ </div>
61
+ </div>
62
+ <!-- Page Content -->
@@ -0,0 +1,5 @@
1
+ <p>Welcome <%= @email %>!</p>
2
+
3
+ <p>You can confirm your account email through the link below:</p>
4
+
5
+ <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
@@ -0,0 +1,7 @@
1
+ <p>Hello <%= @email %>!</p>
2
+
3
+ <% if @resource.try(:unconfirmed_email?) %>
4
+ <p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>
5
+ <% else %>
6
+ <p>We're contacting you to notify you that your email has been changed to <%= @resource.email %>.</p>
7
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>We're contacting you to notify you that your password has been changed.</p>
@@ -0,0 +1,8 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Someone has requested a link to change your password. You can do this through the link below.</p>
4
+
5
+ <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
6
+
7
+ <p>If you didn't request this, please ignore this email.</p>
8
+ <p>Your password won't change until you access the link above and create a new one.</p>
@@ -0,0 +1,7 @@
1
+ <p>Hello <%= @resource.email %>!</p>
2
+
3
+ <p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
4
+
5
+ <p>Click the link below to unlock your account:</p>
6
+
7
+ <p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p>
@@ -0,0 +1,73 @@
1
+ <!-- Title System -->
2
+ <% phc_title resource_name.to_s.humanize + " Edit Password" %>
3
+ <% phc_title_tagline "Edit Your " + resource_name.to_s.humanize + " Edit Password" %>
4
+ <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Accounts Home", phcdevworks_accounts.welcome_status_page_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- BreakCrumbs & Header -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
14
+ <!-- BreakCrumbs & Header -->
15
+
16
+ <!-- Page Content -->
17
+ <div class="row">
18
+ <div class="col-lg-12">
19
+
20
+ <!-- Panel -->
21
+ <div class="panel panel-inverse">
22
+
23
+ <!-- Panel - Heading -->
24
+ <div class="panel-heading">
25
+ <!-- Panel - Actions -->
26
+ <div class="panel-heading-btn">
27
+ <a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
28
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
29
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
30
+ </div>
31
+ <!-- Panel - Actions -->
32
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
33
+ </div>
34
+ <!-- Panel - Heading -->
35
+
36
+ <!-- Panel - Body -->
37
+ <div class="panel-body">
38
+
39
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |form| %>
40
+
41
+ <%= devise_error_messages! %>
42
+ <%= form.hidden_field :reset_password_token %>
43
+
44
+ <div class="form-group">
45
+ <%= form.label :password, "New password" %>
46
+ <% if @minimum_password_length %>
47
+ <em>(<%= @minimum_password_length %> characters minimum)</em>
48
+ <% end %>
49
+ <%= form.password_field :password, autofocus: true, autocomplete: "off" %>
50
+ </div>
51
+
52
+ <div class="form-group">
53
+ <%= form.label :password_confirmation, "Confirm new password" %>
54
+ <%= form.password_field :password_confirmation, autocomplete: "off" %>
55
+ </div>
56
+
57
+ <div class="actions">
58
+ <%= form.submit "Change my password" %>
59
+ </div>
60
+
61
+ <% end %>
62
+
63
+ <%= render "devise/shared/links" %>
64
+
65
+ </div>
66
+ <!-- Panel - Body -->
67
+
68
+ </div>
69
+ <!-- Panel -->
70
+
71
+ </div>
72
+ </div>
73
+ <!-- Page Content -->
@@ -0,0 +1,65 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Send Password Reset Link" %>
3
+ <% phc_title_tagline "Password Reset Form" %>
4
+ <% phc_breadcrumb_one link_to "Home", main_app.root_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- BreakCrumbs & Header -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
14
+ <!-- BreakCrumbs & Header -->
15
+
16
+ <!-- Page Content -->
17
+ <div class="row">
18
+ <div class="col-lg-12">
19
+
20
+ <!-- Panel -->
21
+ <div class="panel panel-inverse">
22
+
23
+ <!-- Panel - Heading -->
24
+ <div class="panel-heading">
25
+ <!-- Panel - Actions -->
26
+ <div class="panel-heading-btn">
27
+ <a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
28
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
29
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
30
+ </div>
31
+ <!-- Panel - Actions -->
32
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
33
+ </div>
34
+ <!-- Panel - Heading -->
35
+
36
+ <!-- Panel - Body -->
37
+ <div class="panel-body">
38
+
39
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |form| %>
40
+
41
+ <%= devise_error_messages! %>
42
+
43
+ <div class="form-group">
44
+ <%= form.label :email %>
45
+ <%= form.email_field :email, autofocus: true, autocomplete: "email", class: "form-control form-control-lg" %>
46
+ </div>
47
+
48
+ <div class="actions">
49
+ <%= form.button class: "btn btn-success" do %>
50
+ <i class="far fa-paper-plane"></i>
51
+ Send Password Reset Instructions
52
+ <% end %>
53
+ </div>
54
+
55
+ <% end %>
56
+
57
+ </div>
58
+ <!-- Panel - Body -->
59
+
60
+ </div>
61
+ <!-- Panel -->
62
+
63
+ </div>
64
+ </div>
65
+ <!-- Page Content -->
@@ -0,0 +1,101 @@
1
+ <!-- Title System -->
2
+ <% phc_title resource_name.to_s.humanize + " Account Information" %>
3
+ <% phc_title_tagline "Edit Your " + resource_name.to_s.humanize + " Account Information" %>
4
+ <% phc_breadcrumb_one link_to "Home", main_app.root_path %>
5
+ <% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.dashboard_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
7
+ <!-- Title System -->
8
+
9
+ <!-- BreakCrumbs & Header -->
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
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
16
+ <!-- BreakCrumbs & Header -->
17
+
18
+ <!-- Page Content -->
19
+ <div class="row">
20
+ <div class="col-lg-12">
21
+
22
+ <!-- Panel -->
23
+ <div class="panel panel-inverse">
24
+
25
+ <!-- Panel - Heading -->
26
+ <div class="panel-heading">
27
+ <!-- Panel - Actions -->
28
+ <div class="panel-heading-btn">
29
+ <a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
30
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
31
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
32
+ </div>
33
+ <!-- Panel - Actions -->
34
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
35
+ </div>
36
+ <!-- Panel - Heading -->
37
+
38
+ <!-- Panel - Body -->
39
+ <div class="panel-body">
40
+
41
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |form| %>
42
+
43
+ <%= devise_error_messages! %>
44
+
45
+ <div class="form-group">
46
+ <%= form.label :firstname, "First Name" %>
47
+ <%= form.text_field :firstname, class: "form-control", placeholder: "First Name" %>
48
+ </div>
49
+
50
+ <div class="form-group">
51
+ <%= form.label :lastname, "Last Name" %>
52
+ <%= form.text_field :lastname, class: "form-control", placeholder: "Last Name" %>
53
+ </div>
54
+
55
+ <div class="form-group">
56
+ <%= form.label :username, "User Name" %>
57
+ <%= form.text_field :username, class: "form-control", placeholder: "User Name" %>
58
+ </div>
59
+
60
+ <div class="form-group">
61
+ <%= form.label :email %>
62
+ <%= form.email_field :email, class: "form-control", placeholder: "Email Address", autofocus: true %>
63
+ </div>
64
+
65
+ <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
66
+ <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
67
+ <% end %>
68
+
69
+ <div class="form-group">
70
+ <%= form.label :password, "New Password" %> <i>(leave blank if you don't want to change it)</i>
71
+ <%= form.password_field :password, class: "form-control", placeholder: "New Password", autocomplete: "off" %>
72
+ </div>
73
+
74
+ <div class="form-group">
75
+ <%= form.password_field :password_confirmation, class: "form-control", placeholder: "Confirm New Password", autocomplete: "off" %>
76
+ </div>
77
+
78
+ <% if @minimum_password_length %>
79
+ <h6>Password (minimum <%= @minimum_password_length %> characters.)</h6>
80
+ <% end %>
81
+
82
+ <div class="form-group">
83
+ <%= form.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
84
+ <%= form.password_field :current_password, class: "form-control", placeholder: "Password" , autocomplete: "off" %>
85
+ </div>
86
+
87
+ <div class="actions">
88
+ <%= form.submit "Update", class: "btn btn-w-m btn-primary" %>
89
+ </div>
90
+
91
+ <% end %>
92
+
93
+ </div>
94
+ <!-- Panel - Body -->
95
+
96
+ </div>
97
+ <!-- Panel -->
98
+
99
+ </div>
100
+ </div>
101
+ <!-- Page Content -->
@@ -0,0 +1,107 @@
1
+ <!-- Page Container -->
2
+ <div id="page-container">
3
+
4
+ <!-- Registration Area -->
5
+ <div class="register register-with-news-feed">
6
+
7
+ <!-- Ad/News Feed Area -->
8
+ <div class="news-feed">
9
+ <div class="news-image" style="background-image: url(https://static.phcnetworks.net/phc_engines/phc_accounts_pro/tropical_house_beach.jpg)"></div>
10
+ <div class="news-caption">
11
+ <h4 class="caption-title"><strong>PHC</strong>Devworks</h4>
12
+ <p>Rails 6 User Accounts Engine</p>
13
+ </div>
14
+ </div>
15
+ <!-- Ad/News Feed Area -->
16
+
17
+ <!-- Registration Form -->
18
+ <div class="right-content">
19
+
20
+ <!-- Registration Form Header -->
21
+ <h1 class="register-header">
22
+ Accounts Signup
23
+ <small>No credit card requried on signup.</small>
24
+ </h1>
25
+ <!-- Registration Form Header -->
26
+
27
+ <!-- Registration Form Content -->
28
+ <div class="register-content">
29
+
30
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |form| %>
31
+
32
+ <%= devise_error_messages! %>
33
+
34
+ <label class="control-label">Name <span class="text-danger">*</span></label>
35
+ <div class="row row-space-10">
36
+ <div class="col-md-6 m-b-15">
37
+ <%= form.text_field :firstname, autocomplete: "First Name", placeholder: "First Name", class: "form-control" %>
38
+ </div>
39
+ <div class="col-md-6 m-b-15">
40
+ <%= form.text_field :lastname, autocomplete: "Last Name", placeholder: "Last Name", class: "form-control" %>
41
+ </div>
42
+ <div class="col-md-12 m-b-15">
43
+ <%= form.text_field :username, autocomplete: "User Name", placeholder: "User Name", class: "form-control" %>
44
+ </div>
45
+ </div>
46
+
47
+ <label class="control-label">Email <span class="text-danger">*</span></label>
48
+ <div class="row m-b-15">
49
+ <div class="col-md-12">
50
+ <%= form.email_field :email, autocomplete: "Email", placeholder: "Email", class: "form-control" %>
51
+ </div>
52
+ </div>
53
+
54
+ <label class="control-label">Password <span class="text-danger">*</span></label>
55
+ <div class="row m-b-15">
56
+ <div class="col-md-12">
57
+ <%= form.password_field :password, autocomplete: "off", placeholder: "Type in a Secure Password", class: "form-control" %>
58
+ </div>
59
+ </div>
60
+
61
+ <label class="control-label">Password Confirmation <span class="text-danger">*</span></label>
62
+ <div class="row m-b-15">
63
+ <div class="col-md-12">
64
+ <%= form.password_field :password, autocomplete: "off", placeholder: "Confirm your Password", class: "form-control" %>
65
+ </div>
66
+ </div>
67
+
68
+ <div class="checkbox-css m-b-30">
69
+ <div class="form-check checkbox-css m-b-30">
70
+ <%= form.check_box :terms_of_service, required: true, class: "form-check-input", id: "agreement_checkbox" %>
71
+ <label class="form-check-label">
72
+ By clicking Sign Up, you agree to our <a href="javascript:;">Terms</a> and that you have read our <a href="javascript:;">Data Policy</a>, including our <a href="javascript:;">Cookie Use</a>.
73
+ </label>
74
+ </div
75
+ </div>
76
+
77
+ <div class="register-buttons">
78
+ <%= form.button :submit, class: "btn btn-primary btn-block btn-lg" do %>
79
+ <i class="batch-icon batch-icon-key"></i>
80
+ Sign Up
81
+ <% end %>
82
+ </div>
83
+
84
+ <div class="m-t-20 m-b-40 p-b-40 text-inverse">
85
+ <%= render "users/shared/links" %>
86
+ </div>
87
+
88
+ <% end %>
89
+
90
+ <hr>
91
+ <p class="text-center">
92
+ <i class="fal fa-copyright"></i> <strong>PHC</strong>Devworks Accounts <%= Time.now.year %> <br>
93
+ Developed with <i class="fas fa-heart hanna_hearts"></i> by
94
+ <a class="phcnet_copyright" href="https://phcdevworks.com/"><strong>PHC</strong>Devworks</a>
95
+ </p>
96
+
97
+ </div>
98
+ <!-- Registration Form Content -->
99
+
100
+ </div>
101
+ <!-- Registration Form -->
102
+
103
+ </div>
104
+ <!-- Registration Area -->
105
+
106
+ </div>
107
+ <!-- Page Container -->
@@ -0,0 +1,81 @@
1
+ <!-- Page Container -->
2
+ <div id="page-container">
3
+
4
+ <!-- Registration Area -->
5
+ <div class="login login-with-news-feed">
6
+
7
+ <!-- Ad/News Feed Area -->
8
+ <div class="news-feed">
9
+ <div class="news-image" style="background-image: url(https://static.phcnetworks.net/phc_engines/phc_accounts_pro/tropical_house_beach.jpg)"></div>
10
+ <div class="news-caption">
11
+ <h4 class="caption-title"><strong>PHC</strong>Devworks</h4>
12
+ <p>Rails 6 User Accounts Engine</p>
13
+ </div>
14
+ </div>
15
+ <!-- Ad/News Feed Area -->
16
+
17
+ <!-- Registration Form -->
18
+ <div class="right-content">
19
+
20
+ <!-- Registration Form Header -->
21
+ <h1 class="login-header">
22
+ <div class="brand">
23
+ Accounts Sign-In
24
+ <small>To continue account sign-in is required.</small>
25
+ </div>
26
+ </h1>
27
+ <!-- Registration Form Header -->
28
+
29
+ <!-- Registration Form Content -->
30
+ <div class="login-content">
31
+
32
+ <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |form| %>
33
+
34
+ <%= devise_error_messages! %>
35
+
36
+ <div class="form-group m-b-15">
37
+ <%= form.email_field :email, autofocus: true, autocomplete: "email", placeholder: "Email", class: "form-control form-control-lg" %>
38
+ </div>
39
+
40
+ <div class="form-group m-b-15">
41
+ <%= form.password_field :password, autocomplete: "off", placeholder: "Your Password", class: "form-control form-control-lg" %>
42
+ </div>
43
+
44
+ <div class="checkbox checkbox-css m-b-30">
45
+ <% if devise_mapping.rememberable? -%>
46
+ <%= form.check_box :remember_me, class: "custom-control-input" %>
47
+ <%= form.label :remember_me, class: "custom-control-label" %>
48
+ <% end -%>
49
+ </div>
50
+
51
+ <div class="login-buttons">
52
+ <%= form.button :submit, class: "btn btn-success btn-block btn-lg" do %>
53
+ <i class="batch-icon batch-icon-key"></i>
54
+ Sign-In
55
+ <% end %>
56
+ </div>
57
+
58
+ <div class="m-t-20 m-b-40 p-b-40 text-inverse">
59
+ <%= render "users/shared/links" %>
60
+ </div>
61
+
62
+ <% end %>
63
+
64
+ <hr>
65
+ <p class="text-center">
66
+ <i class="fal fa-copyright"></i> <strong>PHC</strong>Devworks Accounts <%= Time.now.year %> <br>
67
+ Developed with <i class="fas fa-heart hanna_hearts"></i> by
68
+ <a class="phcnet_copyright" href="https://phcdevworks.com/"><strong>PHC</strong>Devworks</a>
69
+ </p>
70
+
71
+ </div>
72
+ <!-- Registration Form Content -->
73
+
74
+ </div>
75
+ <!-- Registration Form -->
76
+
77
+ </div>
78
+ <!-- Registration Area -->
79
+
80
+ </div>
81
+ <!-- Page Container -->
@@ -0,0 +1,25 @@
1
+ <%- if controller_name != 'sessions' %>
2
+ Already a member? Click <%= link_to "Here", new_session_path(resource_name) %> to login.</br>
3
+ <% end -%>
4
+
5
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
+ Not a member yet? Click <%= link_to "here", new_registration_path(resource_name) %> to register.</br>
7
+ <% end -%>
8
+
9
+ <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
10
+ <%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
11
+ <% end -%>
12
+
13
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %></br>
15
+ <% end -%>
16
+
17
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
+ <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %></br>
19
+ <% end -%>
20
+
21
+ <%- if devise_mapping.omniauthable? %>
22
+ <%- resource_class.omniauth_providers.each do |provider| %>
23
+ <%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %><br />
24
+ <% end -%>
25
+ <% end -%>
@@ -0,0 +1,62 @@
1
+ <!-- Title System -->
2
+ <% phc_title resource_name.to_s.humanize + " Unlock Password" %>
3
+ <% phc_title_tagline "Unlock Your " + resource_name.to_s.humanize + " Unlock Password" %>
4
+ <% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.welcome_status_page_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- BreakCrumbs & Header -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
14
+ <!-- BreakCrumbs & Header -->
15
+
16
+ <!-- Page Content -->
17
+ <div class="row">
18
+ <div class="col-lg-12">
19
+
20
+ <!-- Panel -->
21
+ <div class="panel panel-inverse">
22
+
23
+ <!-- Panel - Heading -->
24
+ <div class="panel-heading">
25
+ <!-- Panel - Actions -->
26
+ <div class="panel-heading-btn">
27
+ <a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
28
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
29
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
30
+ </div>
31
+ <!-- Panel - Actions -->
32
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
33
+ </div>
34
+ <!-- Panel - Heading -->
35
+
36
+ <!-- Panel - Body -->
37
+ <div class="panel-body">
38
+
39
+ <%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |form| %>
40
+
41
+ <%= devise_error_messages! %>
42
+
43
+ <div class="form-group">
44
+ <%= form.label :email %>
45
+ <%= form.email_field :email, class: "form-control", placeholder: "Email Address", autofocus: true %>
46
+ </div>
47
+
48
+ <div class="actions">
49
+ <%= form.submit "Resend unlock instructions", class: "btn btn-primary block full-width" %>
50
+ </div>
51
+
52
+ <% end %>
53
+
54
+ </div>
55
+ <!-- Panel - Body -->
56
+
57
+ </div>
58
+ <!-- Panel -->
59
+
60
+ </div>
61
+ </div>
62
+ <!-- Page Content -->