phcdevworks_accounts 3.2.4 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +7 -7
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_accounts_manifest.js +3 -3
- data/app/assets/stylesheets/phcdevworks_accounts/admin/pages.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_accounts/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_accounts/user/pages.scss +3 -3
- data/app/controllers/phcdevworks_accounts/admin/pages_controller.rb +25 -25
- data/app/controllers/phcdevworks_accounts/application_controller.rb +25 -25
- data/app/controllers/phcdevworks_accounts/user/pages_controller.rb +15 -15
- data/app/controllers/users/confirmations_controller.rb +30 -30
- data/app/controllers/users/omniauth_callbacks_controller.rb +30 -30
- data/app/controllers/users/passwords_controller.rb +34 -34
- data/app/controllers/users/registrations_controller.rb +74 -74
- data/app/controllers/users/sessions_controller.rb +27 -27
- data/app/controllers/users/unlocks_controller.rb +30 -30
- data/app/helpers/phcdevworks_accounts/admin/pages_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_accounts/user/pages_helper.rb +4 -4
- data/app/jobs/phcdevworks_accounts/application_job.rb +4 -4
- data/app/mailers/phcdevworks_accounts/application_mailer.rb +6 -6
- data/app/models/phcdevworks_accounts/application_record.rb +5 -5
- data/app/models/phcdevworks_accounts/user.rb +39 -39
- data/app/views/layouts/phcdevworks_accounts/application.html.erb +66 -66
- data/app/views/layouts/phcdevworks_accounts/application_full_width.html.erb +66 -66
- data/app/views/layouts/phcdevworks_accounts/application_no_sidebar.html.erb +59 -59
- data/app/views/layouts/phcdevworks_accounts/application_profile.html.erb +65 -65
- data/app/views/layouts/phcdevworks_accounts/components/backend/footer/_footer.html.erb +0 -0
- data/app/views/layouts/phcdevworks_accounts/components/backend/navigation/_top_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_accounts/devise.html.erb +0 -0
- data/app/views/phcdevworks_accounts/admin/pages/components/_profile_header.html.erb +27 -27
- data/app/views/phcdevworks_accounts/admin/pages/dashboard.html.erb +0 -0
- data/app/views/phcdevworks_accounts/admin/pages/user_profile.html.erb +22 -22
- data/app/views/phcdevworks_accounts/admin/pages/users_list.html.erb +72 -72
- data/app/views/phcdevworks_accounts/user/pages/dashboard.html.erb +0 -0
- data/app/views/phcdevworks_accounts/user/pages/profile.html.erb +0 -0
- data/app/views/users/confirmations/new.html.erb +62 -62
- data/app/views/users/mailer/confirmation_instructions.html.erb +5 -5
- data/app/views/users/mailer/email_changed.html.erb +7 -7
- data/app/views/users/mailer/password_change.html.erb +3 -3
- data/app/views/users/mailer/reset_password_instructions.html.erb +8 -8
- data/app/views/users/mailer/unlock_instructions.html.erb +7 -7
- data/app/views/users/passwords/edit.html.erb +78 -78
- data/app/views/users/passwords/new.html.erb +65 -65
- data/app/views/users/registrations/edit.html.erb +101 -101
- data/app/views/users/registrations/new.html.erb +114 -114
- data/app/views/users/sessions/new.html.erb +86 -86
- data/app/views/users/shared/_links.html.erb +25 -25
- data/app/views/users/unlocks/new.html.erb +62 -62
- data/config/initializers/devise.rb +310 -310
- data/config/locales/devise.en.yml +65 -65
- data/config/routes.rb +19 -19
- data/config/spring.rb +1 -1
- data/db/migrate/20191012042035_devise_create_phcdevworks_accounts_users.rb +46 -46
- data/db/migrate/20191012060241_add_userinfo_to_users.rb +15 -15
- data/db/migrate/20191012060308_add_role_to_users.rb +7 -7
- data/db/migrate/20191012060324_add_tos_to_users.rb +7 -7
- data/db/migrate/20210407121952_add_customer_id_to_users.rb +7 -7
- data/db/migrate/20210425060053_add_subscription_id_to_users.rb +7 -7
- data/lib/phcdevworks_accounts/engine.rb +48 -48
- data/lib/phcdevworks_accounts/version.rb +3 -3
- data/lib/phcdevworks_accounts.rb +6 -6
- data/lib/tasks/phcdevworks_accounts_tasks.rake +4 -4
- metadata +31 -31
@@ -1,78 +1,78 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
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.user_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- PHCTitleSEO Title Variables -->
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
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
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!-- Page Content -->
|
20
|
-
<div class="row">
|
21
|
-
<div class="col-lg-12">
|
22
|
-
|
23
|
-
<!-- Panel -->
|
24
|
-
<div class="panel panel-inverse">
|
25
|
-
|
26
|
-
<!-- Panel - Heading -->
|
27
|
-
<div class="panel-heading">
|
28
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel - Heading -->
|
31
|
-
|
32
|
-
<!-- Panel - Body -->
|
33
|
-
<div class="panel-body">
|
34
|
-
|
35
|
-
<!-- Edit Form -->
|
36
|
-
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |form| %>
|
37
|
-
|
38
|
-
<!-- Devise Error Message -->
|
39
|
-
<%= render "devise/shared/error_messages", resource: resource %>
|
40
|
-
<!-- Devise Error Message -->
|
41
|
-
|
42
|
-
<!-- Reset Password Token -->
|
43
|
-
<%= form.hidden_field :reset_password_token %>
|
44
|
-
<!-- Reset Password Token -->
|
45
|
-
|
46
|
-
<div class="form-group">
|
47
|
-
<%= form.label :password, "New password" %>
|
48
|
-
<% if @minimum_password_length %>
|
49
|
-
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
50
|
-
<% end %>
|
51
|
-
<%= form.password_field :password, autofocus: true, autocomplete: "off" %>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<div class="form-group">
|
55
|
-
<%= form.label :password_confirmation, "Confirm new password" %>
|
56
|
-
<%= form.password_field :password_confirmation, autocomplete: "off" %>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div class="actions">
|
60
|
-
<%= form.submit "Change my password" %>
|
61
|
-
</div>
|
62
|
-
|
63
|
-
<% end %>
|
64
|
-
<!-- Edit Form -->
|
65
|
-
|
66
|
-
<!-- Devise Links -->
|
67
|
-
<%= render "devise/shared/links" %>
|
68
|
-
<!-- Devise Links -->
|
69
|
-
|
70
|
-
</div>
|
71
|
-
<!-- Panel - Body -->
|
72
|
-
|
73
|
-
</div>
|
74
|
-
<!-- Panel -->
|
75
|
-
|
76
|
-
</div>
|
77
|
-
</div>
|
78
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
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.user_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
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
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
22
|
+
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
25
|
+
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
31
|
+
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
34
|
+
|
35
|
+
<!-- Edit Form -->
|
36
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |form| %>
|
37
|
+
|
38
|
+
<!-- Devise Error Message -->
|
39
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
40
|
+
<!-- Devise Error Message -->
|
41
|
+
|
42
|
+
<!-- Reset Password Token -->
|
43
|
+
<%= form.hidden_field :reset_password_token %>
|
44
|
+
<!-- Reset Password Token -->
|
45
|
+
|
46
|
+
<div class="form-group">
|
47
|
+
<%= form.label :password, "New password" %>
|
48
|
+
<% if @minimum_password_length %>
|
49
|
+
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
50
|
+
<% end %>
|
51
|
+
<%= form.password_field :password, autofocus: true, autocomplete: "off" %>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<div class="form-group">
|
55
|
+
<%= form.label :password_confirmation, "Confirm new password" %>
|
56
|
+
<%= form.password_field :password_confirmation, autocomplete: "off" %>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div class="actions">
|
60
|
+
<%= form.submit "Change my password" %>
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<% end %>
|
64
|
+
<!-- Edit Form -->
|
65
|
+
|
66
|
+
<!-- Devise Links -->
|
67
|
+
<%= render "devise/shared/links" %>
|
68
|
+
<!-- Devise Links -->
|
69
|
+
|
70
|
+
</div>
|
71
|
+
<!-- Panel - Body -->
|
72
|
+
|
73
|
+
</div>
|
74
|
+
<!-- Panel -->
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
<!-- Page Content -->
|
@@ -1,65 +1,65 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "Send Password Reset Link" %>
|
3
|
-
<% phc_title_tagline "Password Reset Form" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Home", phcdevworks_accounts.user_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- PHCTitleSEO Title Variables -->
|
7
|
-
|
8
|
-
<!-- Page Bradcrumbs -->
|
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
|
-
<!-- Page Bradcrumbs -->
|
14
|
-
|
15
|
-
<!-- Page Header -->
|
16
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
-
<!-- Page Header -->
|
18
|
-
|
19
|
-
<!-- Page Content -->
|
20
|
-
<div class="row">
|
21
|
-
<div class="col-lg-12">
|
22
|
-
|
23
|
-
<!-- Panel -->
|
24
|
-
<div class="panel panel-inverse">
|
25
|
-
|
26
|
-
<!-- Panel - Heading -->
|
27
|
-
<div class="panel-heading">
|
28
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
-
</div>
|
30
|
-
<!-- Panel - Heading -->
|
31
|
-
|
32
|
-
<!-- Panel - Body -->
|
33
|
-
<div class="panel-body">
|
34
|
-
|
35
|
-
<!-- New Form -->
|
36
|
-
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |form| %>
|
37
|
-
|
38
|
-
<!-- Devise Error Message -->
|
39
|
-
<%= render "devise/shared/error_messages", resource: resource %>
|
40
|
-
<!-- Devise Error Message -->
|
41
|
-
|
42
|
-
<div class="form-group">
|
43
|
-
<%= form.label :email %>
|
44
|
-
<%= form.email_field :email, autofocus: true, autocomplete: "email", class: "form-control form-control-lg" %>
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<div class="actions">
|
48
|
-
<%= form.button class: "btn btn-success" do %>
|
49
|
-
<i class="far fa-paper-plane"></i>
|
50
|
-
Send Password Reset Instructions
|
51
|
-
<% end %>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<% end %>
|
55
|
-
<!-- New Form -->
|
56
|
-
|
57
|
-
</div>
|
58
|
-
<!-- Panel - Body -->
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<!-- Panel -->
|
62
|
-
|
63
|
-
</div>
|
64
|
-
</div>
|
65
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "Send Password Reset Link" %>
|
3
|
+
<% phc_title_tagline "Password Reset Form" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Home", phcdevworks_accounts.user_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
|
+
|
8
|
+
<!-- Page Bradcrumbs -->
|
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
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
16
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
17
|
+
<!-- Page Header -->
|
18
|
+
|
19
|
+
<!-- Page Content -->
|
20
|
+
<div class="row">
|
21
|
+
<div class="col-lg-12">
|
22
|
+
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
25
|
+
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
31
|
+
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
34
|
+
|
35
|
+
<!-- New Form -->
|
36
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |form| %>
|
37
|
+
|
38
|
+
<!-- Devise Error Message -->
|
39
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
40
|
+
<!-- Devise Error Message -->
|
41
|
+
|
42
|
+
<div class="form-group">
|
43
|
+
<%= form.label :email %>
|
44
|
+
<%= form.email_field :email, autofocus: true, autocomplete: "email", class: "form-control form-control-lg" %>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="actions">
|
48
|
+
<%= form.button class: "btn btn-success" do %>
|
49
|
+
<i class="far fa-paper-plane"></i>
|
50
|
+
Send Password Reset Instructions
|
51
|
+
<% end %>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<% end %>
|
55
|
+
<!-- New Form -->
|
56
|
+
|
57
|
+
</div>
|
58
|
+
<!-- Panel - Body -->
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<!-- Panel -->
|
62
|
+
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
<!-- Page Content -->
|
@@ -1,101 +1,101 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
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", phcdevworks_accounts.admin_users_all_path %>
|
5
|
-
<% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.user_path %>
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- PHCTitleSEO Title Variables -->
|
8
|
-
|
9
|
-
<!-- Page Bradcrumbs -->
|
10
|
-
<ol class="breadcrumb pull-right">
|
11
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
-
</ol>
|
15
|
-
<!-- Page Bradcrumbs -->
|
16
|
-
|
17
|
-
<!-- Page Header -->
|
18
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
|
-
<!-- Page Header -->
|
20
|
-
|
21
|
-
<!-- Page Content -->
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
|
25
|
-
<!-- Panel -->
|
26
|
-
<div class="panel panel-inverse">
|
27
|
-
|
28
|
-
<!-- Panel - Heading -->
|
29
|
-
<div class="panel-heading">
|
30
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
-
</div>
|
32
|
-
<!-- Panel - Heading -->
|
33
|
-
|
34
|
-
<!-- Panel - Body -->
|
35
|
-
<div class="panel-body">
|
36
|
-
|
37
|
-
<!-- Edit Form -->
|
38
|
-
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |form| %>
|
39
|
-
|
40
|
-
<!-- Devise Error Message -->
|
41
|
-
<%= render "devise/shared/error_messages", resource: resource %>
|
42
|
-
<!-- Devise Error Message -->
|
43
|
-
|
44
|
-
<div class="form-group">
|
45
|
-
<%= form.label :firstname, "First Name" %>
|
46
|
-
<%= form.text_field :firstname, class: "form-control", placeholder: "First Name" %>
|
47
|
-
</div>
|
48
|
-
|
49
|
-
<div class="form-group">
|
50
|
-
<%= form.label :lastname, "Last Name" %>
|
51
|
-
<%= form.text_field :lastname, class: "form-control", placeholder: "Last Name" %>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<div class="form-group">
|
55
|
-
<%= form.label :username, "User Name" %>
|
56
|
-
<%= form.text_field :username, class: "form-control", placeholder: "User Name" %>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div class="form-group">
|
60
|
-
<%= form.label :email %>
|
61
|
-
<%= form.email_field :email, class: "form-control", placeholder: "Email Address", autofocus: true %>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
65
|
-
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
66
|
-
<% end %>
|
67
|
-
|
68
|
-
<div class="form-group">
|
69
|
-
<%= form.label :password, "New Password" %> <i>(leave blank if you don"t want to change it)</i>
|
70
|
-
<%= form.password_field :password, class: "form-control", placeholder: "New Password", autocomplete: "off" %>
|
71
|
-
</div>
|
72
|
-
|
73
|
-
<div class="form-group">
|
74
|
-
<%= form.password_field :password_confirmation, class: "form-control", placeholder: "Confirm New Password", autocomplete: "off" %>
|
75
|
-
</div>
|
76
|
-
|
77
|
-
<% if @minimum_password_length %>
|
78
|
-
<h6>Password (minimum <%= @minimum_password_length %> characters.)</h6>
|
79
|
-
<% end %>
|
80
|
-
|
81
|
-
<div class="form-group">
|
82
|
-
<%= form.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
83
|
-
<%= form.password_field :current_password, class: "form-control", placeholder: "Password" , autocomplete: "off" %>
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<div class="actions">
|
87
|
-
<%= form.submit "Update", class: "btn btn-w-m btn-primary" %>
|
88
|
-
</div>
|
89
|
-
|
90
|
-
<% end %>
|
91
|
-
<!-- Edit Form -->
|
92
|
-
|
93
|
-
</div>
|
94
|
-
<!-- Panel - Body -->
|
95
|
-
|
96
|
-
</div>
|
97
|
-
<!-- Panel -->
|
98
|
-
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
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", phcdevworks_accounts.admin_users_all_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.user_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- PHCTitleSEO Title Variables -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<!-- Panel -->
|
26
|
+
<div class="panel panel-inverse">
|
27
|
+
|
28
|
+
<!-- Panel - Heading -->
|
29
|
+
<div class="panel-heading">
|
30
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
+
</div>
|
32
|
+
<!-- Panel - Heading -->
|
33
|
+
|
34
|
+
<!-- Panel - Body -->
|
35
|
+
<div class="panel-body">
|
36
|
+
|
37
|
+
<!-- Edit Form -->
|
38
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |form| %>
|
39
|
+
|
40
|
+
<!-- Devise Error Message -->
|
41
|
+
<%= render "devise/shared/error_messages", resource: resource %>
|
42
|
+
<!-- Devise Error Message -->
|
43
|
+
|
44
|
+
<div class="form-group">
|
45
|
+
<%= form.label :firstname, "First Name" %>
|
46
|
+
<%= form.text_field :firstname, class: "form-control", placeholder: "First Name" %>
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<div class="form-group">
|
50
|
+
<%= form.label :lastname, "Last Name" %>
|
51
|
+
<%= form.text_field :lastname, class: "form-control", placeholder: "Last Name" %>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<div class="form-group">
|
55
|
+
<%= form.label :username, "User Name" %>
|
56
|
+
<%= form.text_field :username, class: "form-control", placeholder: "User Name" %>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div class="form-group">
|
60
|
+
<%= form.label :email %>
|
61
|
+
<%= form.email_field :email, class: "form-control", placeholder: "Email Address", autofocus: true %>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
65
|
+
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
66
|
+
<% end %>
|
67
|
+
|
68
|
+
<div class="form-group">
|
69
|
+
<%= form.label :password, "New Password" %> <i>(leave blank if you don"t want to change it)</i>
|
70
|
+
<%= form.password_field :password, class: "form-control", placeholder: "New Password", autocomplete: "off" %>
|
71
|
+
</div>
|
72
|
+
|
73
|
+
<div class="form-group">
|
74
|
+
<%= form.password_field :password_confirmation, class: "form-control", placeholder: "Confirm New Password", autocomplete: "off" %>
|
75
|
+
</div>
|
76
|
+
|
77
|
+
<% if @minimum_password_length %>
|
78
|
+
<h6>Password (minimum <%= @minimum_password_length %> characters.)</h6>
|
79
|
+
<% end %>
|
80
|
+
|
81
|
+
<div class="form-group">
|
82
|
+
<%= form.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
83
|
+
<%= form.password_field :current_password, class: "form-control", placeholder: "Password" , autocomplete: "off" %>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div class="actions">
|
87
|
+
<%= form.submit "Update", class: "btn btn-w-m btn-primary" %>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
<% end %>
|
91
|
+
<!-- Edit Form -->
|
92
|
+
|
93
|
+
</div>
|
94
|
+
<!-- Panel - Body -->
|
95
|
+
|
96
|
+
</div>
|
97
|
+
<!-- Panel -->
|
98
|
+
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
<!-- Page Content -->
|