devise_materialize 0.0.4.test2
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/.gitignore +50 -0
- data/.rubocop.yml +859 -0
- data/.ruby-version +1 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +126 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/Rakefile +10 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/circle.yml +0 -0
- data/devise_materialize.gemspec +41 -0
- data/lib/devise_materialize.rb +5 -0
- data/lib/devise_materialize/version.rb +4 -0
- data/lib/generators/devise_materialize/USAGE +5 -0
- data/lib/generators/devise_materialize/install_generator.rb +47 -0
- data/lib/generators/templates/.keep +0 -0
- data/lib/generators/templates/erb/default/confirmations/new.html.erb +0 -0
- data/lib/generators/templates/erb/default/mailer/confirmation_instructions.html.erb +0 -0
- data/lib/generators/templates/erb/default/mailer/password_change.html.erb +0 -0
- data/lib/generators/templates/erb/default/mailer/reset_password_instructions.html.erb +0 -0
- data/lib/generators/templates/erb/default/mailer/unlock_instructions.html.erb +0 -0
- data/lib/generators/templates/erb/default/passwords/edit.html.erb +0 -0
- data/lib/generators/templates/erb/default/passwords/new.html.erb +0 -0
- data/lib/generators/templates/erb/default/registrations/edit.html.erb +0 -0
- data/lib/generators/templates/erb/default/registrations/new.html.erb +0 -0
- data/lib/generators/templates/erb/default/sessions/new.html.erb +0 -0
- data/lib/generators/templates/erb/default/shared/_links.html.erb +0 -0
- data/lib/generators/templates/erb/default/unlocks/new.html.erb +0 -0
- data/lib/generators/templates/erb/simple_form/confirmations/new.html.erb +31 -0
- data/lib/generators/templates/erb/simple_form/mailer/confirmation_instructions.html.erb +37 -0
- data/lib/generators/templates/erb/simple_form/mailer/password_change.html.erb +39 -0
- data/lib/generators/templates/erb/simple_form/mailer/reset_password_instructions.html.erb +46 -0
- data/lib/generators/templates/erb/simple_form/mailer/unlock_instructions.html.erb +36 -0
- data/lib/generators/templates/erb/simple_form/passwords/edit.html.erb +0 -0
- data/lib/generators/templates/erb/simple_form/passwords/new.html.erb +0 -0
- data/lib/generators/templates/erb/simple_form/registrations/edit.html.erb +0 -0
- data/lib/generators/templates/erb/simple_form/registrations/new.html.erb +0 -0
- data/lib/generators/templates/erb/simple_form/sessions/new.html.erb +0 -0
- data/lib/generators/templates/erb/simple_form/shared/_links.html.erb +0 -0
- data/lib/generators/templates/erb/simple_form/unlocks/new.html.erb +0 -0
- data/lib/generators/templates/haml/default/confirmations/new.html.haml +0 -0
- data/lib/generators/templates/haml/default/mailer/confirmation_instructions.html.haml +0 -0
- data/lib/generators/templates/haml/default/mailer/password_change.html.haml +0 -0
- data/lib/generators/templates/haml/default/mailer/reset_password_instructions.html.haml +0 -0
- data/lib/generators/templates/haml/default/mailer/unlock_instructions.html.haml +0 -0
- data/lib/generators/templates/haml/default/passwords/edit.html.haml +0 -0
- data/lib/generators/templates/haml/default/passwords/new.html.haml +0 -0
- data/lib/generators/templates/haml/default/registrations/edit.html.haml +0 -0
- data/lib/generators/templates/haml/default/registrations/new.html.haml +0 -0
- data/lib/generators/templates/haml/default/sessions/new.html.haml +0 -0
- data/lib/generators/templates/haml/default/shared/_links.html.haml +0 -0
- data/lib/generators/templates/haml/default/unlocks/new.html.haml +0 -0
- data/lib/generators/templates/haml/simple_form/confirmations/new.html.haml +20 -0
- data/lib/generators/templates/haml/simple_form/mailer/confirmation_instructions.html.haml +30 -0
- data/lib/generators/templates/haml/simple_form/mailer/password_change.html.haml +31 -0
- data/lib/generators/templates/haml/simple_form/mailer/reset_password_instructions.html.haml +37 -0
- data/lib/generators/templates/haml/simple_form/mailer/unlock_instructions.html.haml +34 -0
- data/lib/generators/templates/haml/simple_form/passwords/edit.html.haml +16 -0
- data/lib/generators/templates/haml/simple_form/passwords/new.html.haml +12 -0
- data/lib/generators/templates/haml/simple_form/registrations/edit.html.haml +29 -0
- data/lib/generators/templates/haml/simple_form/registrations/new.html.haml +16 -0
- data/lib/generators/templates/haml/simple_form/sessions/new.html.haml +15 -0
- data/lib/generators/templates/haml/simple_form/shared/_links.html.haml +34 -0
- data/lib/generators/templates/haml/simple_form/unlocks/new.html.haml +12 -0
- data/lib/generators/templates/slim/default/confirmations/new.html.slim +0 -0
- data/lib/generators/templates/slim/default/mailer/confirmation_instructions.html.slim +0 -0
- data/lib/generators/templates/slim/default/mailer/password_change.html.slim +0 -0
- data/lib/generators/templates/slim/default/mailer/reset_password_instructions.html.slim +0 -0
- data/lib/generators/templates/slim/default/mailer/unlock_instructions.html.slim +0 -0
- data/lib/generators/templates/slim/default/passwords/edit.html.slim +0 -0
- data/lib/generators/templates/slim/default/passwords/new.html.slim +0 -0
- data/lib/generators/templates/slim/default/registrations/edit.html.slim +0 -0
- data/lib/generators/templates/slim/default/registrations/new.html.slim +0 -0
- data/lib/generators/templates/slim/default/sessions/new.html.slim +0 -0
- data/lib/generators/templates/slim/default/shared/_links.html.slim +0 -0
- data/lib/generators/templates/slim/default/unlocks/new.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/confirmations/new.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/mailer/confirmation_instructions.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/mailer/password_change.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/mailer/reset_password_instructions.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/mailer/unlock_instructions.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/passwords/edit.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/passwords/new.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/registrations/edit.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/registrations/new.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/sessions/new.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/shared/_links.html.slim +0 -0
- data/lib/generators/templates/slim/simple_form/unlocks/new.html.slim +0 -0
- metadata +206 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div class="row login-form">
|
|
2
|
+
<div class="col s12">
|
|
3
|
+
<div class="card hoverable">
|
|
4
|
+
<div class="card-content">
|
|
5
|
+
<span class="card-title center">Resend Confirmation Instructions</span>
|
|
6
|
+
<div class="divider"></div>
|
|
7
|
+
<%= simple_form_for resource, as: resource_name,
|
|
8
|
+
url: confirmation_path(resource_name), html: { method: :post } do |f| %>
|
|
9
|
+
<%- if devise_error_messages? || alert %>
|
|
10
|
+
<div class="form-errors red lighten-1">
|
|
11
|
+
<%= devise_error_messages! %>
|
|
12
|
+
<%= alert %>
|
|
13
|
+
</div>
|
|
14
|
+
<% end %>
|
|
15
|
+
<div class="form-inputs row">
|
|
16
|
+
<%= f.input :email, autofocus: true, required: true,
|
|
17
|
+
value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="form-actions center">
|
|
20
|
+
<%= f.button :submit, "Resend Confirmation Instructions" %>
|
|
21
|
+
</div>
|
|
22
|
+
<% end %>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="card-action">
|
|
25
|
+
<div class="devise-links">
|
|
26
|
+
<%= render 'devise/shared/links' %>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|
4
|
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet"/>
|
|
5
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/>
|
|
6
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"/>
|
|
7
|
+
<style type="text/scss">
|
|
8
|
+
.form {
|
|
9
|
+
max-width: 650px;
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.btn {
|
|
14
|
+
margin-top: 20px;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
<body class="blue-grey">
|
|
19
|
+
<div class="row form">
|
|
20
|
+
<div class="col s12">
|
|
21
|
+
<div class="card hoverable">
|
|
22
|
+
<div class="card-content">
|
|
23
|
+
<span class="card-title center">
|
|
24
|
+
Welcome <%= @resource.email %>!
|
|
25
|
+
</span>
|
|
26
|
+
<div class="divider"></div>
|
|
27
|
+
<div class="center">
|
|
28
|
+
<p> You can confirm your account email through the link below:</p>
|
|
29
|
+
<%= link_to 'Confirm my Account', class: 'btn waves-effect cyan',
|
|
30
|
+
confirmation_url(@resource, confirmation_token: @token) %>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</body>
|
|
37
|
+
</html>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|
4
|
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet"/>
|
|
5
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/>
|
|
6
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"/>
|
|
7
|
+
<style type="text/scss">
|
|
8
|
+
.form {
|
|
9
|
+
max-width: 650px;
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.btn {
|
|
14
|
+
margin-bottom: 20px;
|
|
15
|
+
margin-top: 20px;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body class="blue-grey">
|
|
20
|
+
<div class="row form">
|
|
21
|
+
<div class="col s12">
|
|
22
|
+
<div class="card hoverable">
|
|
23
|
+
<div class="card-content">
|
|
24
|
+
<span class="card-title center">
|
|
25
|
+
Hello <%= @resource.email %>!
|
|
26
|
+
</span>
|
|
27
|
+
<div class"divider"></div>
|
|
28
|
+
<div class="center">
|
|
29
|
+
<p>
|
|
30
|
+
We're contacting you to notify you that your password has
|
|
31
|
+
been changed.
|
|
32
|
+
</p>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</body>
|
|
39
|
+
</html>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|
4
|
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet"/>
|
|
5
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/>
|
|
6
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"/>
|
|
7
|
+
<style type="text/scss">
|
|
8
|
+
.form {
|
|
9
|
+
max-width: 650px;
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.btn {
|
|
14
|
+
margin-bottom: 20px;
|
|
15
|
+
margin-top: 20px;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body class="blue-grey">
|
|
20
|
+
<div class="row form">
|
|
21
|
+
<div class="col s12">
|
|
22
|
+
<div class="card hoverable">
|
|
23
|
+
<div class="card-content">
|
|
24
|
+
<span class="card-title center">
|
|
25
|
+
Hello <%= @resource.email %>!
|
|
26
|
+
</span>
|
|
27
|
+
<div class"divider"></div>
|
|
28
|
+
<div class="center">
|
|
29
|
+
<p>
|
|
30
|
+
Someone has requested a link to change your password. You can
|
|
31
|
+
do this through the link below.
|
|
32
|
+
</p>
|
|
33
|
+
= link_to 'Change my Password', class: 'btn waves-effect cyan',
|
|
34
|
+
edit_password_url(@resource, reset_password_token: @token)
|
|
35
|
+
<p> If you didn't request this, please ignore this email.<p>
|
|
36
|
+
%p
|
|
37
|
+
Your password won't change until you access the link above and
|
|
38
|
+
create a new one.
|
|
39
|
+
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</body>
|
|
46
|
+
</html>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
|
4
|
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet"/>
|
|
5
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"/>
|
|
6
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"/>
|
|
7
|
+
<style type="text/scss">
|
|
8
|
+
.form {
|
|
9
|
+
max-width: 650px;
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.btn {
|
|
14
|
+
margin-bottom: 20px;
|
|
15
|
+
margin-top: 20px;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body class="blue-grey">
|
|
20
|
+
<div class="row form">
|
|
21
|
+
<div class="col s12">
|
|
22
|
+
<div class="card hoverable">
|
|
23
|
+
<div class="card-content">
|
|
24
|
+
<span class="card-title center">
|
|
25
|
+
Hello <%= @resource.email %>!
|
|
26
|
+
</span>
|
|
27
|
+
<div class"divider"></div>
|
|
28
|
+
<div class="center">
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
%span.card-title.center Resend Confirmation Instructions
|
|
6
|
+
.divider
|
|
7
|
+
= simple_form_for resource, as: resource_name,
|
|
8
|
+
url: confirmation_path(resource_name), html: { method: :post } do |f|
|
|
9
|
+
- if devise_error_messages? || alert
|
|
10
|
+
.form-errors.red.lighten-1
|
|
11
|
+
= devise_error_messages!
|
|
12
|
+
= alert
|
|
13
|
+
.form-inputs.row
|
|
14
|
+
= f.input :email, autofocus: true, required: true,
|
|
15
|
+
value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email)
|
|
16
|
+
.form-actions.center
|
|
17
|
+
= f.button :submit, "Resend Confirmation Instructions"
|
|
18
|
+
.card-action
|
|
19
|
+
.devise-links
|
|
20
|
+
= render 'devise/shared/links'
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
!!!
|
|
2
|
+
%html
|
|
3
|
+
%head
|
|
4
|
+
%meta{ content: "text/html; charset=utf-8", "http-equiv": "Content-Type" }/
|
|
5
|
+
%link{ href: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css", rel: "stylesheet" }/
|
|
6
|
+
%script{ src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" }
|
|
7
|
+
%script{ src: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js" }
|
|
8
|
+
:scss
|
|
9
|
+
.form {
|
|
10
|
+
max-width: 650px;
|
|
11
|
+
margin: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.btn {
|
|
15
|
+
margin-top: 20px;
|
|
16
|
+
}
|
|
17
|
+
%body.blue-grey
|
|
18
|
+
.row.form
|
|
19
|
+
.col.s12
|
|
20
|
+
.card.hoverable
|
|
21
|
+
.card-content
|
|
22
|
+
%span.card-title.center
|
|
23
|
+
Welcome
|
|
24
|
+
= @resource.email
|
|
25
|
+
!
|
|
26
|
+
.divider
|
|
27
|
+
.center
|
|
28
|
+
%p You can confirm your account email through the link below:
|
|
29
|
+
= link_to 'Confirm my Account', class: 'btn waves-effect cyan',
|
|
30
|
+
confirmation_url(@resource, confirmation_token: @token)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
!!!
|
|
2
|
+
%html
|
|
3
|
+
%head
|
|
4
|
+
%meta{ content: "text/html; charset=utf-8", "http-equiv": "Content-Type" }/
|
|
5
|
+
%link{ href: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css", rel: "stylesheet" }/
|
|
6
|
+
%script{ src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" }
|
|
7
|
+
%script{ src: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js" }
|
|
8
|
+
:scss
|
|
9
|
+
.form {
|
|
10
|
+
max-width: 650px;
|
|
11
|
+
margin: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.btn {
|
|
15
|
+
margin-bottom: 20px;
|
|
16
|
+
margin-top: 20px;
|
|
17
|
+
}
|
|
18
|
+
%body.blue-grey
|
|
19
|
+
.row.form
|
|
20
|
+
.col.s12
|
|
21
|
+
.card.hoverable
|
|
22
|
+
.card-content
|
|
23
|
+
%span.card-title.center
|
|
24
|
+
Hello
|
|
25
|
+
= @resource.email
|
|
26
|
+
!
|
|
27
|
+
.divider
|
|
28
|
+
.center
|
|
29
|
+
%p
|
|
30
|
+
We're contacting you to notify you that your password has
|
|
31
|
+
been changed.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
!!!
|
|
2
|
+
%html
|
|
3
|
+
%head
|
|
4
|
+
%meta{ content: "text/html; charset=utf-8", "http-equiv": "Content-Type" }/
|
|
5
|
+
%link{ href: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css", rel: "stylesheet" }/
|
|
6
|
+
%script{ src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" }
|
|
7
|
+
%script{ src: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js" }
|
|
8
|
+
:scss
|
|
9
|
+
.form {
|
|
10
|
+
max-width: 650px;
|
|
11
|
+
margin: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.btn {
|
|
15
|
+
margin-bottom: 20px;
|
|
16
|
+
margin-top: 20px;
|
|
17
|
+
}
|
|
18
|
+
%body.blue-grey
|
|
19
|
+
.row.form
|
|
20
|
+
.col.s12
|
|
21
|
+
.card.hoverable
|
|
22
|
+
.card-content
|
|
23
|
+
%span.card-title.center
|
|
24
|
+
Hello
|
|
25
|
+
= @resource.email
|
|
26
|
+
!
|
|
27
|
+
.divider
|
|
28
|
+
.center
|
|
29
|
+
%p
|
|
30
|
+
Someone has requested a link to change your password. You can
|
|
31
|
+
do this through the link below.
|
|
32
|
+
= link_to 'Change my Password', class: 'btn waves-effect cyan',
|
|
33
|
+
edit_password_url(@resource, reset_password_token: @token)
|
|
34
|
+
%p If you didn't request this, please ignore this email.
|
|
35
|
+
%p
|
|
36
|
+
Your password won't change until you access the link above and
|
|
37
|
+
create a new one.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
!!!
|
|
2
|
+
%html
|
|
3
|
+
%head
|
|
4
|
+
%meta{ content: "text/html; charset=utf-8", "http-equiv": "Content-Type" }/
|
|
5
|
+
%link{ href: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css", rel: "stylesheet" }/
|
|
6
|
+
%script{ src: "https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" }
|
|
7
|
+
%script{ src: "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js" }
|
|
8
|
+
:scss
|
|
9
|
+
.form {
|
|
10
|
+
max-width: 650px;
|
|
11
|
+
margin: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.btn {
|
|
15
|
+
margin-bottom: 20px;
|
|
16
|
+
margin-top: 20px;
|
|
17
|
+
}
|
|
18
|
+
%body.blue-grey
|
|
19
|
+
.row.form
|
|
20
|
+
.col.s12
|
|
21
|
+
.card.hoverable
|
|
22
|
+
.card-content
|
|
23
|
+
%span.card-title.center
|
|
24
|
+
Hello
|
|
25
|
+
= @resource.email
|
|
26
|
+
!
|
|
27
|
+
.divider
|
|
28
|
+
.center
|
|
29
|
+
%p
|
|
30
|
+
Your account has been locked due to an excessive number of
|
|
31
|
+
unsuccessful sign in attempts.
|
|
32
|
+
%p Click the link below to unlock your account:
|
|
33
|
+
= link_to 'Unlock my Account', class: 'btn waves-effect cyan',
|
|
34
|
+
unlock_url(@resource, unlock_token: @token)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
%span.card-title.center Change your Password
|
|
2
|
+
.divider
|
|
3
|
+
= simple_form_for resource, as: resource_name,
|
|
4
|
+
url: password_path(resource_name), html: { method: :put } do |f|
|
|
5
|
+
- if devise_error_messages? || alert
|
|
6
|
+
.form-errors.red.lighten-1
|
|
7
|
+
= devise_error_messages!
|
|
8
|
+
= alert
|
|
9
|
+
.form-inputs.row
|
|
10
|
+
= f.hidden_field :reset_password_token
|
|
11
|
+
= f.input :password, autofocus: true, required: true, autocomplete: false,
|
|
12
|
+
hint: "#{@minimum_password_length} Characters Minimum"
|
|
13
|
+
= f.input :password_confirmation, autofocus: true, required: true,
|
|
14
|
+
autocomplete: false
|
|
15
|
+
.form-actions.center
|
|
16
|
+
= f.button :submit, "Change my Password"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
%span.card-title.center Forgot your Password?
|
|
2
|
+
.divider
|
|
3
|
+
= simple_form_for resource, as: resource_name,
|
|
4
|
+
url: password_path(resource_name), html: { method: :post } do |f|
|
|
5
|
+
- if devise_error_messages? || alert
|
|
6
|
+
.form-errors.red.lighten-1
|
|
7
|
+
= devise_error_messages!
|
|
8
|
+
= alert
|
|
9
|
+
.form-inputs.row
|
|
10
|
+
= f.input :email, autofocus: true, required: true
|
|
11
|
+
.form-actions.center
|
|
12
|
+
= f.button :submit, "Send Me Reset Instructions"
|