devise_materialize 0.0.5.alpha → 1.0.0.rc1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/devise_materialize/version.rb +1 -1
- data/lib/generators/devise_materialize/install_generator.rb +8 -7
- data/lib/generators/templates/assets/javascripts/init_form_materialize.coffee +16 -0
- data/lib/generators/templates/erb/default/confirmations/new.html.erb +36 -0
- data/lib/generators/templates/erb/default/mailer/confirmation_instructions.html.erb +37 -0
- data/lib/generators/templates/erb/default/mailer/password_change.html.erb +39 -0
- data/lib/generators/templates/erb/default/mailer/reset_password_instructions.html.erb +46 -0
- data/lib/generators/templates/erb/default/mailer/unlock_instructions.html.erb +43 -0
- data/lib/generators/templates/erb/default/passwords/edit.html.erb +48 -0
- data/lib/generators/templates/erb/default/passwords/new.html.erb +36 -0
- data/lib/generators/templates/erb/default/registrations/edit.html.erb +58 -0
- data/lib/generators/templates/erb/default/registrations/new.html.erb +50 -0
- data/lib/generators/templates/erb/default/sessions/new.html.erb +45 -0
- data/lib/generators/templates/erb/default/shared/_links.html.erb +40 -0
- data/lib/generators/templates/erb/default/unlocks/new.html.erb +36 -0
- data/lib/generators/templates/erb/simple_form/confirmations/new.html.erb +1 -1
- data/lib/generators/templates/erb/simple_form/passwords/edit.html.erb +1 -1
- data/lib/generators/templates/erb/simple_form/passwords/new.html.erb +1 -1
- data/lib/generators/templates/erb/simple_form/registrations/edit.html.erb +1 -1
- data/lib/generators/templates/erb/simple_form/registrations/new.html.erb +1 -1
- data/lib/generators/templates/erb/simple_form/sessions/new.html.erb +1 -1
- data/lib/generators/templates/erb/simple_form/unlocks/new.html.erb +1 -1
- data/lib/generators/templates/haml/default/confirmations/new.html.haml +23 -0
- data/lib/generators/templates/haml/default/mailer/confirmation_instructions.html.haml +30 -0
- data/lib/generators/templates/haml/default/mailer/password_change.html.haml +31 -0
- data/lib/generators/templates/haml/default/mailer/reset_password_instructions.html.haml +37 -0
- data/lib/generators/templates/haml/default/mailer/unlock_instructions.html.haml +34 -0
- data/lib/generators/templates/haml/default/passwords/edit.html.haml +32 -0
- data/lib/generators/templates/haml/default/passwords/new.html.haml +23 -0
- data/lib/generators/templates/haml/default/registrations/edit.html.haml +40 -0
- data/lib/generators/templates/haml/default/registrations/new.html.haml +34 -0
- data/lib/generators/templates/haml/default/sessions/new.html.haml +30 -0
- data/lib/generators/templates/haml/default/shared/_links.html.haml +34 -0
- data/lib/generators/templates/haml/default/unlocks/new.html.haml +23 -0
- data/lib/generators/templates/haml/simple_form/confirmations/new.html.haml +1 -1
- data/lib/generators/templates/haml/simple_form/passwords/edit.html.haml +1 -1
- data/lib/generators/templates/haml/simple_form/passwords/new.html.haml +1 -1
- data/lib/generators/templates/haml/simple_form/registrations/edit.html.haml +1 -1
- data/lib/generators/templates/haml/simple_form/registrations/new.html.haml +1 -1
- data/lib/generators/templates/haml/simple_form/sessions/new.html.haml +1 -1
- data/lib/generators/templates/haml/simple_form/unlocks/new.html.haml +1 -1
- data/lib/generators/templates/slim/default/confirmations/new.html.slim +24 -0
- data/lib/generators/templates/slim/default/mailer/confirmation_instructions.html.slim +30 -0
- data/lib/generators/templates/slim/default/mailer/password_change.html.slim +31 -0
- data/lib/generators/templates/slim/default/mailer/reset_password_instructions.html.slim +38 -0
- data/lib/generators/templates/slim/default/mailer/unlock_instructions.html.slim +35 -0
- data/lib/generators/templates/slim/default/passwords/edit.html.slim +33 -0
- data/lib/generators/templates/slim/default/passwords/new.html.slim +24 -0
- data/lib/generators/templates/slim/default/registrations/edit.html.slim +41 -0
- data/lib/generators/templates/slim/default/registrations/new.html.slim +35 -0
- data/lib/generators/templates/slim/default/sessions/new.html.slim +31 -0
- data/lib/generators/templates/slim/default/shared/_links.html.slim +29 -0
- data/lib/generators/templates/slim/default/unlocks/new.html.slim +24 -0
- data/lib/generators/templates/slim/simple_form/confirmations/new.html.slim +1 -1
- data/lib/generators/templates/slim/simple_form/passwords/edit.html.slim +1 -1
- data/lib/generators/templates/slim/simple_form/passwords/new.html.slim +1 -1
- data/lib/generators/templates/slim/simple_form/registrations/edit.html.slim +1 -1
- data/lib/generators/templates/slim/simple_form/registrations/new.html.slim +1 -1
- data/lib/generators/templates/slim/simple_form/sessions/new.html.slim +1 -1
- data/lib/generators/templates/slim/simple_form/unlocks/new.html.slim +1 -1
- data/test/lib/install_generator_test.rb +1 -0
- metadata +3 -4
- data/test/rails_app/log/test.log +0 -288
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
%span.card-title.center Sign Up
|
|
6
|
+
.divider
|
|
7
|
+
= form_for resource, as: resource_name,
|
|
8
|
+
url: registration_path(resource_name) 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
|
+
.input-field.col.s12
|
|
15
|
+
%i.material-icons.prefix email
|
|
16
|
+
= f.email_field :email, autofocus: true, required: true
|
|
17
|
+
= f.label :email
|
|
18
|
+
.input-field.col.s12
|
|
19
|
+
%i.material-icons.prefix lock
|
|
20
|
+
= f.password_field :password, autocomplete: "off", required: true
|
|
21
|
+
= f.label :password
|
|
22
|
+
%span.hint-text
|
|
23
|
+
= @minimum_password_length
|
|
24
|
+
Characters Minimum
|
|
25
|
+
.input-field.col.s12
|
|
26
|
+
%i.material-icons.prefix lock
|
|
27
|
+
= f.password_field :password_confirmation, autocomplete: "off",
|
|
28
|
+
required: true
|
|
29
|
+
= f.label :password_confirmation
|
|
30
|
+
.form-actions.center
|
|
31
|
+
= f.button :submit, "Sign Up", class: "btn waves-effect"
|
|
32
|
+
.card-action
|
|
33
|
+
.devise-links
|
|
34
|
+
= render "<%= file_name %>/shared/links"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
%span.card-title.center Log In
|
|
6
|
+
.divider
|
|
7
|
+
= form_for resource, as: resource_name,
|
|
8
|
+
url: session_path(resource_name) 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
|
+
.input-field.col.s12
|
|
15
|
+
%i.material-icons.prefix email
|
|
16
|
+
= f.email_field :email, required: true, autofocus: true
|
|
17
|
+
= f.label :email
|
|
18
|
+
.input-field.col.s12
|
|
19
|
+
%i.material-icons.prefix lock
|
|
20
|
+
= f.password_field :password, required: true, autocomplete: "off"
|
|
21
|
+
= f.label :password
|
|
22
|
+
- if devise_mapping.rememberable?
|
|
23
|
+
%p
|
|
24
|
+
= f.check_box :remember_me
|
|
25
|
+
= f.label :remember_me
|
|
26
|
+
.form-actions.center
|
|
27
|
+
= f.button :submit, "Log In", class: "btn waves-effect"
|
|
28
|
+
.card-action
|
|
29
|
+
.devise-links
|
|
30
|
+
= render "<%= file_name %>/shared/links"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
- if controller_name != 'sessions' && !current_user.present?
|
|
2
|
+
Already a Member?
|
|
3
|
+
= link_to "Log In", new_session_path(resource_name)
|
|
4
|
+
%br/
|
|
5
|
+
|
|
6
|
+
- if devise_mapping.registerable? && controller_name != 'registrations'
|
|
7
|
+
Not A Member?
|
|
8
|
+
= link_to "Sign Up", new_registration_path(resource_name)
|
|
9
|
+
%br/
|
|
10
|
+
|
|
11
|
+
- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
|
|
12
|
+
Forgot
|
|
13
|
+
= link_to "Password?", new_password_path(resource_name)
|
|
14
|
+
%br/
|
|
15
|
+
|
|
16
|
+
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
|
17
|
+
= link_to "Didn't Receive Confirmation Instructions?",
|
|
18
|
+
new_confirmation_path(resource_name)
|
|
19
|
+
%br/
|
|
20
|
+
|
|
21
|
+
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
|
22
|
+
= link_to "Didn't Receive Unlock Instructions?",
|
|
23
|
+
new_unlock_path(resource_name)
|
|
24
|
+
%br/
|
|
25
|
+
|
|
26
|
+
- if devise_mapping.omniauthable?
|
|
27
|
+
- resource_class.omniauth_providers.each do |provider|
|
|
28
|
+
= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}",
|
|
29
|
+
omniauth_authorize_path(resource_name, provider)
|
|
30
|
+
|
|
31
|
+
- if controller_name == 'registrations' && current_user.present?
|
|
32
|
+
= link_to "Cancel My Account", registration_path(resource_name),
|
|
33
|
+
data: { confirm: "Are You Sure you want to Delete Your Account?",
|
|
34
|
+
method: :delete }, class: "btn waves-effect red"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12.offset-m3
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
%span.card-title.center Resend Unlock Instructions
|
|
6
|
+
.divider
|
|
7
|
+
= form_for resource, as: resource_name, url: unlock_path(resource_name),
|
|
8
|
+
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
|
+
.input-field.col.s12
|
|
15
|
+
%i.material-icons.prefix email
|
|
16
|
+
= f.email_field :email, autofocus: true, required: true
|
|
17
|
+
= f.label :email
|
|
18
|
+
.form-actions.center
|
|
19
|
+
= f.button :submit, "Resend Unlock Instructions",
|
|
20
|
+
class: "btn waves-effect"
|
|
21
|
+
.card-action
|
|
22
|
+
.devise-links
|
|
23
|
+
= render "<%= file_name %>/shared/links"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
span.card-title.center Resend Confirmation Instructions
|
|
6
|
+
.divider
|
|
7
|
+
= 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
|
+
.input-field.col.s12
|
|
15
|
+
i.material-icons.prefix email
|
|
16
|
+
= f.email_field :email, autofocus: true, required: true, class: "validate"
|
|
17
|
+
| value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email)
|
|
18
|
+
| \#{f.label :email}
|
|
19
|
+
.form-actions.center
|
|
20
|
+
= f.button :submit, "Resend Confirmation Instructions", class: "btn wave-effects"
|
|
21
|
+
.card-action
|
|
22
|
+
.devise-links
|
|
23
|
+
= render "<%= file_name %>/shared/links"
|
|
24
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
doctype html
|
|
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
|
+
style type="text/scss"
|
|
9
|
+
cdata:
|
|
10
|
+
| \.form {
|
|
11
|
+
| max-width: 650px;
|
|
12
|
+
| margin: auto;
|
|
13
|
+
| }
|
|
14
|
+
|
|
15
|
+
| \.btn {
|
|
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
|
+
| Welcome #{@resource.email}!
|
|
25
|
+
.divider
|
|
26
|
+
.center
|
|
27
|
+
p You can confirm your account email through the link below:
|
|
28
|
+
= link_to 'Confirm my Account', class: 'btn waves-effect cyan', \
|
|
29
|
+
confirmation_url(@resource, confirmation_token: @token) \
|
|
30
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
doctype html
|
|
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
|
+
style type="text/scss"
|
|
9
|
+
cdata:
|
|
10
|
+
| \.form {
|
|
11
|
+
| max-width: 650px;
|
|
12
|
+
| margin: auto;
|
|
13
|
+
| }
|
|
14
|
+
|
|
15
|
+
| \.btn {
|
|
16
|
+
| margin-bottom: 20px;
|
|
17
|
+
| margin-top: 20px;
|
|
18
|
+
| }
|
|
19
|
+
body.blue-grey
|
|
20
|
+
.row.form
|
|
21
|
+
.col.s12
|
|
22
|
+
.card.hoverable
|
|
23
|
+
.card-content
|
|
24
|
+
span.card-title.center
|
|
25
|
+
| Hello #{@resource.email}!
|
|
26
|
+
div
|
|
27
|
+
.center
|
|
28
|
+
p
|
|
29
|
+
| We're contacting you to notify you that your password has
|
|
30
|
+
| been changed.
|
|
31
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
doctype html
|
|
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
|
+
style type="text/scss"
|
|
9
|
+
cdata:
|
|
10
|
+
| \.form {
|
|
11
|
+
| max-width: 650px;
|
|
12
|
+
| margin: auto;
|
|
13
|
+
| }
|
|
14
|
+
|
|
15
|
+
| \.btn {
|
|
16
|
+
| margin-bottom: 20px;
|
|
17
|
+
| margin-top: 20px;
|
|
18
|
+
| }
|
|
19
|
+
body.blue-grey
|
|
20
|
+
.row.form
|
|
21
|
+
.col.s12
|
|
22
|
+
.card.hoverable
|
|
23
|
+
.card-content
|
|
24
|
+
span.card-title.center
|
|
25
|
+
| Hello #{@resource.email}!
|
|
26
|
+
div
|
|
27
|
+
.center
|
|
28
|
+
p
|
|
29
|
+
| Someone has requested a link to change your password. You can
|
|
30
|
+
| do this through the link below.
|
|
31
|
+
| \= link_to 'Change my Password', class: 'btn waves-effect cyan',
|
|
32
|
+
| edit_password_url(@resource, reset_password_token: @token)
|
|
33
|
+
p If you didn't request this, please ignore this email.
|
|
34
|
+
p
|
|
35
|
+
| \%p
|
|
36
|
+
| Your password won't change until you access the link above and
|
|
37
|
+
| create a new one.
|
|
38
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
doctype html
|
|
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
|
+
style type="text/scss"
|
|
9
|
+
cdata:
|
|
10
|
+
| \.form {
|
|
11
|
+
| max-width: 650px;
|
|
12
|
+
| margin: auto;
|
|
13
|
+
| }
|
|
14
|
+
|
|
15
|
+
| \.btn {
|
|
16
|
+
| margin-bottom: 20px;
|
|
17
|
+
| margin-top: 20px;
|
|
18
|
+
| }
|
|
19
|
+
body.blue-grey
|
|
20
|
+
.row.form
|
|
21
|
+
.col.s12
|
|
22
|
+
.card.hoverable
|
|
23
|
+
.card-content
|
|
24
|
+
span.card-title.center
|
|
25
|
+
| Hello #{@resource.email}!
|
|
26
|
+
div
|
|
27
|
+
.center
|
|
28
|
+
p
|
|
29
|
+
| Your account has been locked due to an excessive number of
|
|
30
|
+
| unsuccessful sign in attempts.
|
|
31
|
+
p
|
|
32
|
+
| 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)}
|
|
35
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
span.card-title.center Change your Password
|
|
6
|
+
.divider
|
|
7
|
+
= form_for resource, as: resource_name,
|
|
8
|
+
| url: password_path(resource_name), html: { method: :put } 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.hidden_field :reset_password_token
|
|
15
|
+
.input-field.col.s12
|
|
16
|
+
i.material-icons.prefix lock
|
|
17
|
+
= f.password_field :password, autofocus: true, required: true,
|
|
18
|
+
| autocomplete: false
|
|
19
|
+
| \#{f.label :password}
|
|
20
|
+
span.help-text
|
|
21
|
+
= @minimum_password_length
|
|
22
|
+
| Characters Minimum
|
|
23
|
+
.input-field.col.s12
|
|
24
|
+
i.material-icons.prefix lock
|
|
25
|
+
= f.password_field :password_confirmation, autofocus: true, required: true,
|
|
26
|
+
| autocomplete: false
|
|
27
|
+
| \#{f.label :password_confirmation}
|
|
28
|
+
.form-actions.center
|
|
29
|
+
= f.button :submit, "Change my Password", class: "btn waves-effect"
|
|
30
|
+
.card-action
|
|
31
|
+
.devise-links
|
|
32
|
+
= render "<%= file_name %>/shared/links"
|
|
33
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
span.card-title.center Forgot your Password?
|
|
6
|
+
.divider
|
|
7
|
+
= form_for resource, as: resource_name,
|
|
8
|
+
| url: password_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
|
+
.input-field.col.s12
|
|
15
|
+
i.material-icons.prefix email
|
|
16
|
+
= f.email_field :email, autofocus: true, required: true
|
|
17
|
+
= f.label :email
|
|
18
|
+
.form-actions.center
|
|
19
|
+
= f.button :submit, "Send Me Reset Instructions",
|
|
20
|
+
| class: "btn waves-effect"
|
|
21
|
+
.card-action
|
|
22
|
+
.devise-links
|
|
23
|
+
= render "<%= file_name %>/shared/links"
|
|
24
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12.offset-m3
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
span.card-title.center
|
|
6
|
+
| Edit
|
|
7
|
+
| \#{resource_name.to_s.humanize}
|
|
8
|
+
.divider
|
|
9
|
+
= form_for resource, as: resource_name,
|
|
10
|
+
| url: registration_path(resource_name), html: { method: :put } do |f|
|
|
11
|
+
- if devise_error_messages? || alert || (devise_mapping.confirmable? && resource.pending_reconfirmation?)
|
|
12
|
+
.form-errors.red.lighten-1
|
|
13
|
+
= devise_error_messages!
|
|
14
|
+
= alert
|
|
15
|
+
| Currently waiting confirmation for:
|
|
16
|
+
| \#{resource.unconfirmed_email}
|
|
17
|
+
.form-inputs.row
|
|
18
|
+
.input-field.col.s12
|
|
19
|
+
i.material-icons.prefix email
|
|
20
|
+
= f.email_field :email, autofocus: true
|
|
21
|
+
= f.label :email
|
|
22
|
+
.input-field.col.s12
|
|
23
|
+
= f.password_field :password, autocomplete: "off"
|
|
24
|
+
= f.label :password,
|
|
25
|
+
| "Password (leave blank if you don't want to change it)"
|
|
26
|
+
span.hint-text
|
|
27
|
+
= @minimum_password_length
|
|
28
|
+
| Characters Minimum
|
|
29
|
+
.input-field.col.s12
|
|
30
|
+
= f.password_field :password_confirmation, autocomplete: "off"
|
|
31
|
+
= f.label :password_confirmation
|
|
32
|
+
.input-field.col.s12
|
|
33
|
+
= f.password_field :current_password, autocomplete: "off"
|
|
34
|
+
= f.label :current_password
|
|
35
|
+
span.hint-text
|
|
36
|
+
| we need your current password to confirm your changes
|
|
37
|
+
.form-actions.center
|
|
38
|
+
= f.button :submit, "Update", class: "btn waves-effect"
|
|
39
|
+
.card-action.center
|
|
40
|
+
= render "<%= file_name %>/shared/links"
|
|
41
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.row.login-form
|
|
2
|
+
.col.s12
|
|
3
|
+
.card.hoverable
|
|
4
|
+
.card-content
|
|
5
|
+
span.card-title.center Sign Up
|
|
6
|
+
.divider
|
|
7
|
+
= form_for resource, as: resource_name,
|
|
8
|
+
| url: registration_path(resource_name) 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
|
+
.input-field.col.s12
|
|
15
|
+
i.material-icons.prefix email
|
|
16
|
+
= f.email_field :email, autofocus: true, required: true
|
|
17
|
+
= f.label :email
|
|
18
|
+
.input-field.col.s12
|
|
19
|
+
i.material-icons.prefix lock
|
|
20
|
+
= f.password_field :password, autocomplete: "off", required: true
|
|
21
|
+
= f.label :password
|
|
22
|
+
span.hint-text
|
|
23
|
+
= @minimum_password_length
|
|
24
|
+
| Characters Minimum
|
|
25
|
+
.input-field.col.s12
|
|
26
|
+
i.material-icons.prefix lock
|
|
27
|
+
= f.password_field :password_confirmation, autocomplete: "off",
|
|
28
|
+
| required: true
|
|
29
|
+
| \#{f.label :password_confirmation}
|
|
30
|
+
.form-actions.center
|
|
31
|
+
= f.button :submit, "Sign Up", class: "btn waves-effect"
|
|
32
|
+
.card-action
|
|
33
|
+
.devise-links
|
|
34
|
+
= render "<%= file_name %>/shared/links"
|
|
35
|
+
|