devise_materialize 0.0.5.alpha → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 161c9f1e027f4adc9599265a436163cf3afbc7fd
|
4
|
+
data.tar.gz: 1dd67465984ba6ff43b19b22685bf397fbdcc61c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 551593867308beb4f99ba159927e4e1fc3890b57432ca043cc410565af815d2f8f05deedf3d9ffd5aa28aaf4dd486e492557dc02131c58b2ee96f5aeeda5c25f
|
7
|
+
data.tar.gz: 1370524caa1f5f4b5fb45c6007b360db77aadfdfc2bcd089252605770b490f6fb78f70baa528155d9fe2715c7b0a4c7a9598a56c033874ff3b2fa4bb92b2692d
|
data/Gemfile.lock
CHANGED
@@ -14,20 +14,21 @@ module DeviseMaterialize
|
|
14
14
|
puts "Generating Views..."
|
15
15
|
directory "#{options.view_engine.downcase}/#{options.form_engine}",
|
16
16
|
"app/views/#{file_name}"
|
17
|
-
puts "Generating Stylesheet..."
|
17
|
+
puts "Generating Javascript & Stylesheet..."
|
18
18
|
directory "assets", "app/assets/"
|
19
19
|
puts "Generating Devise Helper..."
|
20
20
|
directory "helpers", "app/helpers"
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
protected
|
24
24
|
|
25
25
|
def file_name
|
26
|
-
|
27
|
-
namespace.
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
@file_name ||=
|
27
|
+
if namespace.casecmp("devise").zero?
|
28
|
+
namespace.downcase.underscore
|
29
|
+
else
|
30
|
+
namespace.downcase.underscore.pluralize
|
31
|
+
end
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
$(document).ready ->
|
2
|
+
$('input, textarea').characterCounter()
|
3
|
+
$('textarea').trigger('autoresize')
|
4
|
+
$('select').material_select()
|
5
|
+
$('.datepicker').pickadate
|
6
|
+
selectMonths: true
|
7
|
+
selectYears: 15
|
8
|
+
|
9
|
+
$('span.help-text').each ->
|
10
|
+
$value = $(this)[0].innerHTML
|
11
|
+
$(this).addClass 'hide'
|
12
|
+
$(this).parents('div.input-field').children('label').attr(
|
13
|
+
'data-hint', $value
|
14
|
+
)
|
15
|
+
return
|
16
|
+
return
|
@@ -0,0 +1,36 @@
|
|
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
|
+
<%= 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
|
+
<div class="input-field col s12">
|
17
|
+
<i class="material-icons prefix">email</i>
|
18
|
+
<%= f.email_field :email, autofocus: true, required: true, class: "validate" %>
|
19
|
+
value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email)
|
20
|
+
<% end %>
|
21
|
+
<%= f.label :email %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
<div class="form-actions center">
|
25
|
+
<%= f.button :submit, "Resend Confirmation Instructions", class: "btn wave-effects" %>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
28
|
+
</div>
|
29
|
+
<div class="card-action">
|
30
|
+
<div class="devise-links">
|
31
|
+
<%= render "<%= file_name %>/shared/links" %>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</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,43 @@
|
|
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
|
+
Your account has been locked due to an excessive number of
|
31
|
+
unsuccessful sign in attempts.
|
32
|
+
</p>
|
33
|
+
<p> Click the link below to unlock your account:
|
34
|
+
<%= link_to 'Unlock my Account', class: 'btn waves-effect cyan',
|
35
|
+
unlock_url(@resource, unlock_token: @token) %>
|
36
|
+
</p>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</body>
|
43
|
+
</html>
|
@@ -0,0 +1,48 @@
|
|
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">Change your Password</span>
|
6
|
+
<div class="divider"></div>
|
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
|
+
<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.hidden_field :reset_password_token %>
|
17
|
+
<div class="input-field col s12">
|
18
|
+
<i class="material-icons prefix">lock</i>
|
19
|
+
<%= f.password_field :password, autofocus: true, required: true, %>
|
20
|
+
autocomplete: false
|
21
|
+
<% end %>
|
22
|
+
<%= f.label :password %>
|
23
|
+
<span class="help-text">
|
24
|
+
<%= @minimum_password_length %>
|
25
|
+
Characters Minimum
|
26
|
+
</span>
|
27
|
+
</div>
|
28
|
+
<div class="input-field col s12">
|
29
|
+
<i class="material-icons prefix">lock</i>
|
30
|
+
<%= f.password_field :password_confirmation, autofocus: true, required: true, %>
|
31
|
+
autocomplete: false
|
32
|
+
<% end %>
|
33
|
+
<%= f.label :password_confirmation %>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
<div class="form-actions center">
|
37
|
+
<%= f.button :submit, "Change my Password", class: "btn waves-effect" %>
|
38
|
+
</div>
|
39
|
+
<% end %>
|
40
|
+
</div>
|
41
|
+
<div class="card-action">
|
42
|
+
<div class="devise-links">
|
43
|
+
<%= render "<%= file_name %>/shared/links" %>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
@@ -0,0 +1,36 @@
|
|
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">Forgot your Password?</span>
|
6
|
+
<div class="divider"></div>
|
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
|
+
<div class="form-errors red lighten-1">
|
11
|
+
<%= devise_error_messages! %>
|
12
|
+
<%= alert %>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
<div class="form-inputs row">
|
16
|
+
<div class="input-field col s12">
|
17
|
+
<i class="material-icons prefix">email</i>
|
18
|
+
<%= f.email_field :email, autofocus: true, required: true %>
|
19
|
+
<%= f.label :email %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<div class="form-actions center">
|
23
|
+
<%= f.button :submit, "Send Me Reset Instructions", %>
|
24
|
+
class: "btn waves-effect"
|
25
|
+
<% end %>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
28
|
+
</div>
|
29
|
+
<div class="card-action">
|
30
|
+
<div class="devise-links">
|
31
|
+
<%= render "<%= file_name %>/shared/links" %>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<div class="row login-form">
|
2
|
+
<div class="col s12 offset-m3">
|
3
|
+
<div class="card hoverable">
|
4
|
+
<div class="card-content">
|
5
|
+
<span class="card-title center">
|
6
|
+
Edit
|
7
|
+
<%= resource_name.to_s.humanize %>
|
8
|
+
</span>
|
9
|
+
<div class="divider"></div>
|
10
|
+
<%= form_for resource, as: resource_name, %>
|
11
|
+
url: registration_path(resource_name), html: { method: :put } do |f|
|
12
|
+
<% if devise_error_messages? || alert || (devise_mapping.confirmable? && resource.pending_reconfirmation?) %>
|
13
|
+
<div class="form-errors red lighten-1">
|
14
|
+
<%= devise_error_messages! %>
|
15
|
+
<%= alert %>
|
16
|
+
Currently waiting confirmation for:
|
17
|
+
<%= resource.unconfirmed_email %>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
20
|
+
<div class="form-inputs row">
|
21
|
+
<div class="input-field col s12">
|
22
|
+
<i class="material-icons prefix">email</i>
|
23
|
+
<%= f.email_field :email, autofocus: true %>
|
24
|
+
<%= f.label :email %>
|
25
|
+
</div>
|
26
|
+
<div class="input-field col s12">
|
27
|
+
<%= f.password_field :password, autocomplete: "off" %>
|
28
|
+
<%= f.label :password, %>
|
29
|
+
"Password (leave blank if you don't want to change it)"
|
30
|
+
<% end %>
|
31
|
+
<span class="hint-text">
|
32
|
+
<%= @minimum_password_length %>
|
33
|
+
Characters Minimum
|
34
|
+
</span>
|
35
|
+
</div>
|
36
|
+
<div class="input-field col s12">
|
37
|
+
<%= f.password_field :password_confirmation, autocomplete: "off" %>
|
38
|
+
<%= f.label :password_confirmation %>
|
39
|
+
</div>
|
40
|
+
<div class="input-field col s12">
|
41
|
+
<%= f.password_field :current_password, autocomplete: "off" %>
|
42
|
+
<%= f.label :current_password %>
|
43
|
+
<span class="hint-text">
|
44
|
+
we need your current password to confirm your changes
|
45
|
+
</span>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
<div class="form-actions center">
|
49
|
+
<%= f.button :submit, "Update", class: "btn waves-effect" %>
|
50
|
+
</div>
|
51
|
+
<% end %>
|
52
|
+
</div>
|
53
|
+
<div class="card-action center">
|
54
|
+
<%= render "<%= file_name %>/shared/links" %>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
</div>
|
@@ -0,0 +1,50 @@
|
|
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">Sign Up</span>
|
6
|
+
<div class="divider"></div>
|
7
|
+
<%= form_for resource, as: resource_name, %>
|
8
|
+
url: registration_path(resource_name) 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
|
+
<div class="input-field col s12">
|
17
|
+
<i class="material-icons prefix">email</i>
|
18
|
+
<%= f.email_field :email, autofocus: true, required: true %>
|
19
|
+
<%= f.label :email %>
|
20
|
+
</div>
|
21
|
+
<div class="input-field col s12">
|
22
|
+
<i class="material-icons prefix">lock</i>
|
23
|
+
<%= f.password_field :password, autocomplete: "off", required: true %>
|
24
|
+
<%= f.label :password %>
|
25
|
+
<span class="hint-text">
|
26
|
+
<%= @minimum_password_length %>
|
27
|
+
Characters Minimum
|
28
|
+
</span>
|
29
|
+
</div>
|
30
|
+
<div class="input-field col s12">
|
31
|
+
<i class="material-icons prefix">lock</i>
|
32
|
+
<%= f.password_field :password_confirmation, autocomplete: "off", %>
|
33
|
+
required: true
|
34
|
+
<% end %>
|
35
|
+
<%= f.label :password_confirmation %>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
<div class="form-actions center">
|
39
|
+
<%= f.button :submit, "Sign Up", class: "btn waves-effect" %>
|
40
|
+
</div>
|
41
|
+
<% end %>
|
42
|
+
</div>
|
43
|
+
<div class="card-action">
|
44
|
+
<div class="devise-links">
|
45
|
+
<%= render "<%= file_name %>/shared/links" %>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
</div>
|