semantic_ui_views_generator 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -1
  3. data/lib/generators/semantic/devise_generator.rb +61 -0
  4. data/lib/generators/semantic/install_generator.rb +21 -15
  5. data/lib/generators/semantic/templates/devise/erb/confirmations/new.html.erb.tt +34 -0
  6. data/lib/generators/semantic/templates/devise/erb/mailer/confirmation_instructions.html.erb +5 -0
  7. data/lib/generators/semantic/templates/devise/erb/mailer/email_changed.html.erb +7 -0
  8. data/lib/generators/semantic/templates/devise/erb/mailer/password_change.html.erb +3 -0
  9. data/lib/generators/semantic/templates/devise/erb/mailer/reset_password_instructions.html.erb +8 -0
  10. data/lib/generators/semantic/templates/devise/erb/mailer/unlock_instructions.html.erb +7 -0
  11. data/lib/generators/semantic/templates/devise/erb/passwords/edit.html.erb.tt +44 -0
  12. data/lib/generators/semantic/templates/devise/erb/passwords/new.html.erb.tt +35 -0
  13. data/lib/generators/semantic/templates/devise/erb/registrations/edit.html.erb.tt +54 -0
  14. data/lib/generators/semantic/templates/devise/erb/registrations/new.html.erb.tt +47 -0
  15. data/lib/generators/semantic/templates/devise/erb/sessions/new.html.erb.tt +47 -0
  16. data/lib/generators/semantic/templates/devise/erb/shared/_error_messages.html.erb +12 -0
  17. data/lib/generators/semantic/templates/devise/erb/shared/_links.html.erb +25 -0
  18. data/lib/generators/semantic/templates/devise/erb/unlocks/new.html.erb.tt +32 -0
  19. data/lib/generators/semantic/templates/devise/haml/confirmations/new.html.haml.tt +28 -0
  20. data/lib/generators/semantic/templates/devise/haml/mailer/confirmation_instructions.html.haml +4 -0
  21. data/lib/generators/semantic/templates/devise/haml/mailer/email_changed.html.haml +8 -0
  22. data/lib/generators/semantic/templates/devise/haml/mailer/password_change.html.haml +3 -0
  23. data/lib/generators/semantic/templates/devise/haml/mailer/reset_password_instructions.html.haml +6 -0
  24. data/lib/generators/semantic/templates/devise/haml/mailer/unlock_instructions.html.haml +5 -0
  25. data/lib/generators/semantic/templates/devise/haml/passwords/edit.html.haml.tt +35 -0
  26. data/lib/generators/semantic/templates/devise/haml/passwords/new.html.haml.tt +28 -0
  27. data/lib/generators/semantic/templates/devise/haml/registrations/edit.html.haml.tt +45 -0
  28. data/lib/generators/semantic/templates/devise/haml/registrations/new.html.haml.tt +37 -0
  29. data/lib/generators/semantic/templates/devise/haml/sessions/new.html.haml.tt +37 -0
  30. data/lib/generators/semantic/templates/devise/haml/shared/_error_messages.html.haml +7 -0
  31. data/lib/generators/semantic/templates/devise/haml/shared/_links.html.haml +13 -0
  32. data/lib/generators/semantic/templates/devise/haml/unlocks/new.html.haml.tt +27 -0
  33. data/lib/generators/semantic/templates/devise/simple_form/erb/confirmations/new.html.erb.tt +33 -0
  34. data/lib/generators/semantic/templates/devise/simple_form/erb/passwords/edit.html.erb.tt +33 -0
  35. data/lib/generators/semantic/templates/devise/simple_form/erb/passwords/new.html.erb.tt +30 -0
  36. data/lib/generators/semantic/templates/devise/simple_form/erb/registrations/edit.html.erb.tt +39 -0
  37. data/lib/generators/semantic/templates/devise/simple_form/erb/registrations/new.html.erb.tt +33 -0
  38. data/lib/generators/semantic/templates/devise/simple_form/erb/sessions/new.html.erb.tt +32 -0
  39. data/lib/generators/semantic/templates/devise/simple_form/erb/unlocks/new.html.erb.tt +32 -0
  40. data/lib/generators/semantic/templates/devise/simple_form/haml/confirmations/new.html.haml.tt +26 -0
  41. data/lib/generators/semantic/templates/devise/simple_form/haml/passwords/edit.html.haml.tt +27 -0
  42. data/lib/generators/semantic/templates/devise/simple_form/haml/passwords/new.html.haml.tt +24 -0
  43. data/lib/generators/semantic/templates/devise/simple_form/haml/registrations/edit.html.haml.tt +34 -0
  44. data/lib/generators/semantic/templates/devise/simple_form/haml/registrations/new.html.haml.tt +27 -0
  45. data/lib/generators/semantic/templates/devise/simple_form/haml/sessions/new.html.haml.tt +26 -0
  46. data/lib/generators/semantic/templates/devise/simple_form/haml/unlocks/new.html.haml.tt +26 -0
  47. data/lib/generators/semantic/templates/devise/simple_form/slim/confirmations/new.html.slim.tt +26 -0
  48. data/lib/generators/semantic/templates/devise/simple_form/slim/passwords/edit.html.slim.tt +25 -0
  49. data/lib/generators/semantic/templates/devise/simple_form/slim/passwords/new.html.slim.tt +22 -0
  50. data/lib/generators/semantic/templates/devise/simple_form/slim/registrations/edit.html.slim.tt +36 -0
  51. data/lib/generators/semantic/templates/devise/simple_form/slim/registrations/new.html.slim.tt +29 -0
  52. data/lib/generators/semantic/templates/devise/simple_form/slim/sessions/new.html.slim.tt +28 -0
  53. data/lib/generators/semantic/templates/devise/simple_form/slim/unlocks/new.html.slim.tt +28 -0
  54. data/lib/generators/semantic/templates/devise/slim/confirmations/new.html.slim.tt +28 -0
  55. data/lib/generators/semantic/templates/devise/slim/mailer/confirmation_instructions.html.slim +5 -0
  56. data/lib/generators/semantic/templates/devise/slim/mailer/email_changed.html.slim +6 -0
  57. data/lib/generators/semantic/templates/devise/slim/mailer/password_change.html.slim +2 -0
  58. data/lib/generators/semantic/templates/devise/slim/mailer/reset_password_instructions.html.slim +7 -0
  59. data/lib/generators/semantic/templates/devise/slim/mailer/unlock_instructions.html.slim +6 -0
  60. data/lib/generators/semantic/templates/devise/slim/passwords/edit.html.slim.tt +35 -0
  61. data/lib/generators/semantic/templates/devise/slim/passwords/new.html.slim.tt +28 -0
  62. data/lib/generators/semantic/templates/devise/slim/registrations/edit.html.slim.tt +45 -0
  63. data/lib/generators/semantic/templates/devise/slim/registrations/new.html.slim.tt +37 -0
  64. data/lib/generators/semantic/templates/devise/slim/sessions/new.html.slim.tt +37 -0
  65. data/lib/generators/semantic/templates/devise/slim/shared/_error_messages.html.slim +7 -0
  66. data/lib/generators/semantic/templates/devise/slim/shared/_links.html.slim +13 -0
  67. data/lib/generators/semantic/templates/devise/slim/unlocks/new.html.slim.tt +27 -0
  68. data/lib/semantic_ui_views_generator/version.rb +1 -1
  69. data/semantic_ui_views_generator.gemspec +1 -0
  70. metadata +66 -2
@@ -0,0 +1,30 @@
1
+ <style type="text/css">
2
+ body > .grid { height: 90%; }
3
+ .column { max-width: 450px; }
4
+ @media (min-width: 768px){
5
+ .column { max-width: 600px; }
6
+ }
7
+ </style>
8
+ <div class="ui middle aligned center aligned grid">
9
+ <div class="column">
10
+ <%- if options[:metatags] %>
11
+ <h2 class="ui center aligned dividing header teal"><%%= title('Forgot your password?') %></h2>
12
+ <% else -%>
13
+ <h2 class="ui center aligned dividing header teal">Forgot your password?</h2>
14
+ <%- end %>
15
+ <%%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
16
+ <%%= f.error_notification %>
17
+ <div class="field">
18
+ <%%= f.input :email, required: true, autofocus: true, input_html: { autocomplete: "email" } %>
19
+ </div>
20
+ <div class="actions">
21
+ <%%= f.button :submit, 'Send me reset password instructions', class: 'btn btn-primary btn-block btn-lg' %>
22
+ </div>
23
+ <%% end %>
24
+ <div class="ui horizontal divider">or</div>
25
+ <div class="ui horizontal list">
26
+ <%%= render "devise/shared/links" %>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </div>
@@ -0,0 +1,39 @@
1
+ <style type="text/css">
2
+ body > .grid { height: 90%; }
3
+ .column { max-width: 450px; }
4
+ @media (min-width: 768px){
5
+ .column { max-width: 600px; }
6
+ }
7
+ </style>
8
+ <div class="ui middle aligned center aligned grid">
9
+ <div class="column">
10
+ <%- if options[:metatags] %>
11
+ <h2 class="ui center aligned dividing header teal"><i class="lock icon"></i><%%= title("Edit #{resource_name.to_s.humanize}") %></h2>
12
+ <% else -%>
13
+ <h2 class="ui center aligned dividing header teal"><i class="lock icon"></i>Edit <%%= resource_name.to_s.humanize %></h2>
14
+ <%- end %>
15
+ <div class="ui form large <%%= "error" if resource.errors.any? %>">
16
+ <%%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
17
+ <%%= f.error_notification %>
18
+ <div class="field">
19
+ <%%= f.input :email, required: true, autofocus: true %>
20
+ <%% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
21
+ <p>Currently waiting confirmation for: <%%= resource.unconfirmed_email %></p>
22
+ <%% end %>
23
+ <%%= f.input :password, hint: "Leave it blank if you don't want to change it", required: false, input_html: { autocomplete: 'new-password' } %>
24
+ <%%= f.input :password_confirmation, required: false, input_html: { autocomplete: 'new-password' } %>
25
+ <%%= f.input :current_password, hint: 'We need your current password to confirm your changes', required: true, input_html: { autocomplete: 'current-password' } %>
26
+ </div>
27
+ <div class="actions">
28
+ <%%= f.button :submit %>
29
+ </div>
30
+ <%% end %>
31
+ <div class="ui horizontal divider">or</div>
32
+ <h4 class="ui light grey header">Cancel my account</h4>
33
+ <p>Unhappy? <%%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete ,class: "ui submit button red tiny "%></p>
34
+ <div class="ui horizontal list ">
35
+ <div class="item"><%%= link_to "Back", :back %></div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </div>
@@ -0,0 +1,33 @@
1
+ <style type="text/css">
2
+ body > .grid { height: 90%; }
3
+ .column { max-width: 450px; }
4
+ @media (min-width: 768px){
5
+ .column { max-width: 600px; }
6
+ }
7
+ </style>
8
+ <div class="ui middle aligned center aligned grid">
9
+ <div class="column">
10
+ <%- if options[:metatags] %>
11
+ <h2 class="ui center aligned dividing header teal"><i class="signup icon"></i><%%= title("Sign up") %></h2>
12
+ <% else -%>
13
+ <h2 class="ui center aligned dividing header teal"><i class="signup icon"></i>Sign up</h2>
14
+ <%- end %>
15
+ <div class="ui large form <%%= "error" if resource.errors.any? %>">
16
+ <%%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
17
+ <%%= f.error_notification %>
18
+ <div class="field">
19
+ <%%= f.input :email, required: true, autofocus: true, input_html: { autocomplete: "email" }%>
20
+ <%%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" } %>
21
+ <%%= f.input :password_confirmation, required: true, input_html: { autocomplete: "new-password" } %>
22
+ </div>
23
+ <div class="actions">
24
+ <%%= f.button :submit, 'Sign up' %>
25
+ </div>
26
+ <%% end %>
27
+ <div class="ui horizontal divider">or</div>
28
+ <div class="ui horizontal list">
29
+ <%%= render "devise/shared/links" %>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
@@ -0,0 +1,32 @@
1
+ <style type="text/css">
2
+ body > .grid { height: 90%; }
3
+ .column { max-width: 450px; }
4
+ @media (min-width: 768px){
5
+ .column { max-width: 600px; }
6
+ }
7
+ </style>
8
+ <div class="ui middle aligned center aligned grid">
9
+ <div class="column">
10
+ <%- if options[:metatags] %>
11
+ <h2 class="ui center aligned dividing header teal"><i class="sign in icon"></i><%%= title('Log in') %></h2>
12
+ <% else -%>
13
+ <h2 class="ui center aligned dividing header teal"><i class="sign in icon"></i>Log in</h2>
14
+ <%- end %>
15
+ <div class="ui large form ">
16
+ <%%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
17
+ <div class="field">
18
+ <%%= f.input :email, required: false, autofocus: true, input_html: { autocomplete: 'email' } %>
19
+ <%%= f.input :password, required: false, input_html: { autocomplete: 'current-password' } %>
20
+ <%%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %>
21
+ </div>
22
+ <div class="actions">
23
+ <%%= f.button :submit, 'Log in' %>
24
+ </div>
25
+ <%% end %>
26
+ <div class="ui horizontal divider">or</div>
27
+ <div class="ui horizontal list">
28
+ <%%= render "devise/shared/links" %>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
@@ -0,0 +1,32 @@
1
+ <style type="text/css">
2
+ body > .grid { height: 90%; }
3
+ .column { max-width: 450px; }
4
+ @media (min-width: 768px){
5
+ .column { max-width: 600px; }
6
+ }
7
+ </style>
8
+ <div class="ui middle aligned center aligned grid">
9
+ <div class="column">
10
+ <%- if options[:metatags] %>
11
+ <h2 class="ui center aligned dividing header teal"><i class="lock icon"></i><%% = title('Resend unlock instructions') %></h2>
12
+ <% else -%>
13
+ <h2 class="ui center aligned dividing header teal"><i class="lock icon"></i>Resend unlock instructions</h2>
14
+ <%- end %>
15
+ <div class="ui form large <%%= "error" if resource.errors.any? %>">
16
+ <%%= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
17
+ <%%= f.error_notification %>
18
+ <%%= f.full_error :unlock_token %>
19
+ <div class="field">
20
+ <%%= f.input :email, required: true, autofocus: true, input_html: { autocomplete: 'email' } %>
21
+ </div>
22
+ <div class="actions">
23
+ <%%= f.button :submit, 'Resend unlock instructions' %>
24
+ </div>
25
+ <%% end %>
26
+ <div class="ui horizontal divider">or</div>
27
+ <div class="ui horizontal list">
28
+ <%%= render "devise/shared/links" %>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
@@ -0,0 +1,26 @@
1
+ .ui.middle.aligned.center.aligned.grid.grey
2
+ .column
3
+ %h2.ui.center.aligned.dividing.header.teal
4
+ %i.signup.icon
5
+ <%- if options[:metatags] %>
6
+ = title('Sign up')
7
+ <% else -%>
8
+ | Sign up
9
+ <%- end %>
10
+ %div{class: "ui large form #{"error" if resource.errors.any?}"}
11
+ = simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
12
+ .ui.error.message
13
+ = render 'devise/shared/error_messages'
14
+ .field
15
+ = f.input :email, required: true, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email), input_html: { autocomplete: "email" }
16
+ .actions
17
+ = f.button :submit, 'Resend confirmation instructions'
18
+ .ui.horizontal.divider or
19
+ .ui.horizontal.list
20
+ = render 'devise/shared/links'
21
+ :css
22
+ body > .grid { height: 90%; }
23
+ .column { max-width: 450px; }
24
+ @media (min-width: 768px){
25
+ .column { max-width: 600px; }
26
+ }
@@ -0,0 +1,27 @@
1
+ .ui.middle.aligned.center.aligned.grid
2
+ .column
3
+ %h2.ui.center.aligned.dividing.header.teal
4
+ %i.lock.icon
5
+ <%- if options[:metatags] %>
6
+ = title('Change your password')
7
+ <% else -%>
8
+ | Change your password
9
+ <%- end %>
10
+ = simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
11
+ = f.error_notification
12
+ = f.input :reset_password_token, as: :hidden
13
+ = f.full_error :reset_password_token
14
+ .field
15
+ = f.input :password, label: 'New password', required: true, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" }
16
+ = f.input :password_confirmation, label: 'Confirm your new password', required: true, input_html: { autocomplete: 'new-password' }
17
+ .actions
18
+ = f.button :submit, 'Change my password'
19
+ .ui.horizontal.divider or
20
+ .ui.horizontal.list
21
+ = render "devise/shared/links"
22
+ :css
23
+ body > .grid { height: 90%; }
24
+ .column { max-width: 450px; }
25
+ @media (min-width: 768px){
26
+ .column { max-width: 600px; }
27
+ }
@@ -0,0 +1,24 @@
1
+ .ui.middle.aligned.center.aligned.grid
2
+ .column
3
+ %h2.ui.center.aligned.dividing.header.teal
4
+ %i.lock.icon
5
+ <%- if options[:metatags] %>
6
+ = title('Forgot your password?')
7
+ <% else -%>
8
+ | Forgot your password?
9
+ <%- end %>
10
+ = simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
11
+ = f.error_notification
12
+ .field
13
+ = f.input :email, required: true, autofocus: true, input_html: { autocomplete: "email" }
14
+ .actions
15
+ = f.button :submit, 'Send me reset password instructions', class: 'btn btn-primary btn-block btn-lg'
16
+ .ui.horizontal.divider or
17
+ .ui.horizontal.list
18
+ = render "devise/shared/links"
19
+ :css
20
+ body > .grid { height: 90%; }
21
+ .column { max-width: 450px; }
22
+ @media (min-width: 768px){
23
+ .column { max-width: 600px; }
24
+ }
@@ -0,0 +1,34 @@
1
+ .ui.middle.aligned.center.aligned.grid
2
+ .column
3
+ %h2.ui.center.aligned.dividing.header.teal
4
+ %i.lock.icon
5
+ <%- if options[:metatags] %>
6
+ = title("Edit #{resource_name.to_s.humanize}")
7
+ <% else -%>
8
+ = "Edit #{resource_name.to_s.humanize}"
9
+ <%- end %>
10
+ %div{class: "ui form large #{"error" if resource.errors.any?}"}
11
+ = simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
12
+ = f.error_notification
13
+ .field
14
+ = f.input :email, required: true, autofocus: true
15
+ - if devise_mapping.confirmable? && resource.pending_reconfirmation?
16
+ %p
17
+ Currently waiting confirmation for: #{resource.unconfirmed_email}
18
+ = f.input :password, hint: "Leave it blank if you don't want to change it", required: false, input_html: { autocomplete: 'new-password' }
19
+ = f.input :password_confirmation, required: false, input_html: { autocomplete: 'new-password' }
20
+ = f.input :current_password, hint: 'We need your current password to confirm your changes', required: true, input_html: { autocomplete: 'current-password' }
21
+ .actions
22
+ = f.button :submit
23
+ .ui.horizontal.divider or
24
+ %h4.ui.light.grey.header Cancel my account
25
+ %p
26
+ Unhappy? #{button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete ,class: "ui submit button red tiny "}
27
+ .ui.horizontal.list
28
+ .item= link_to "Back", :back
29
+ :css
30
+ body > .grid { height: 90%; }
31
+ .column { max-width: 450px; }
32
+ @media (min-width: 768px){
33
+ .column { max-width: 600px; }
34
+ }
@@ -0,0 +1,27 @@
1
+ .ui.middle.aligned.center.aligned.grid
2
+ .column
3
+ %h2.ui.center.aligned.dividing.header.teal
4
+ %i.signup.icon
5
+ <%- if options[:metatags] %>
6
+ = title("Sign up")
7
+ <% else -%>
8
+ = "Sign up"
9
+ <%- end %>
10
+ %div{class: "ui large form #{"error" if resource.errors.any?}"}
11
+ = simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
12
+ = f.error_notification
13
+ .field
14
+ = f.input :email, required: true, autofocus: true, input_html: { autocomplete: "email" }
15
+ = f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" }
16
+ = f.input :password_confirmation, required: true, input_html: { autocomplete: "new-password" }
17
+ .actions
18
+ = f.button :submit, 'Sign up'
19
+ .ui.horizontal.divider or
20
+ .ui.horizontal.list
21
+ = render "devise/shared/links"
22
+ :css
23
+ body > .grid { height: 90%; }
24
+ .column { max-width: 450px; }
25
+ @media (min-width: 768px){
26
+ .column { max-width: 600px; }
27
+ }
@@ -0,0 +1,26 @@
1
+ .ui.middle.aligned.center.aligned.grid
2
+ .column
3
+ %h2.ui.center.aligned.dividing.header.teal
4
+ %i.sign.in.icon
5
+ <%- if options[:metatags] %>
6
+ = title('Log in')
7
+ <% else -%>
8
+ | Log in
9
+ <%- end %>
10
+ .ui.large.form
11
+ = simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
12
+ .field
13
+ = f.input :email, required: false, autofocus: true, input_html: { autocomplete: 'email' }
14
+ = f.input :password, required: false, input_html: { autocomplete: 'current-password' }
15
+ = f.input :remember_me, as: :boolean if devise_mapping.rememberable?
16
+ .actions
17
+ = f.button :submit, 'Log in'
18
+ .ui.horizontal.divider or
19
+ .ui.horizontal.list
20
+ = render "devise/shared/links"
21
+ :css
22
+ body > .grid { height: 90%; }
23
+ .column { max-width: 450px; }
24
+ @media (min-width: 768px){
25
+ .column { max-width: 600px; }
26
+ }
@@ -0,0 +1,26 @@
1
+ .ui.middle.aligned.center.aligned.grid
2
+ .column
3
+ %h2.ui.center.aligned.dividing.header.teal
4
+ %i.lock.icon
5
+ <%- if options[:metatags] %>
6
+ = title('Resend unlock instructions')
7
+ <% else -%>
8
+ | Resend unlock instructions
9
+ <%- end %>
10
+ %div{class: "ui form large #{"error" if resource.errors.any?}"}
11
+ = simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
12
+ = f.error_notification
13
+ = f.full_error :unlock_token
14
+ .field
15
+ = f.input :email, required: true, autofocus: true, input_html: { autocomplete: 'email' }
16
+ .actions
17
+ = f.button :submit, 'Resend unlock instructions'
18
+ .ui.horizontal.divider or
19
+ .ui.horizontal.list
20
+ = render "devise/shared/links"
21
+ :css
22
+ body > .grid { height: 90%; }
23
+ .column { max-width: 450px; }
24
+ @media (min-width: 768px){
25
+ .column { max-width: 600px; }
26
+ }
@@ -0,0 +1,26 @@
1
+ .ui.middle.aligned.center.aligned.grid.grey
2
+ .column
3
+ h2.ui.center.aligned.dividing.header.teal
4
+ i.signup.icon
5
+ <%- if options[:metatags] %>
6
+ = title('Sign up')
7
+ <% else -%>
8
+ | Sign up
9
+ <%- end %>
10
+ div class=("ui large form #{"error" if resource.errors.any?}")
11
+ = simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
12
+ .ui.error.message
13
+ = render 'devise/shared/error_messages'
14
+ .field
15
+ = f.input :email, required: true, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email), input_html: { autocomplete: "email" }
16
+ .actions
17
+ = f.button :submit, 'Resend confirmation instructions'
18
+ .ui.horizontal.divider or
19
+ .ui.horizontal.list
20
+ = render 'devise/shared/links'
21
+ css:
22
+ body > .grid { height: 90%; }
23
+ .column { max-width: 450px; }
24
+ @media (min-width: 768px){
25
+ .column { max-width: 600px; }
26
+ }
@@ -0,0 +1,25 @@
1
+ .ui.middle.aligned.center.aligned.grid
2
+ .column
3
+ <%- if options[:metatags] %>
4
+ h2.ui.center.aligned.dividing.header.teal= title('Change your password')
5
+ <% else -%>
6
+ h2.ui.center.aligned.dividing.header.teal Change your password
7
+ <%- end %>
8
+ = simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
9
+ = f.error_notification
10
+ = f.input :reset_password_token, as: :hidden
11
+ = f.full_error :reset_password_token
12
+ .field
13
+ = f.input :password, label: 'New password', required: true, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length), input_html: { autocomplete: "new-password" }
14
+ = f.input :password_confirmation, label: 'Confirm your new password', required: true, input_html: { autocomplete: 'new-password' }
15
+ .actions
16
+ = f.button :submit, 'Change my password'
17
+ .ui.horizontal.divider or
18
+ .ui.horizontal.list
19
+ = render "devise/shared/links"
20
+ css:
21
+ body > .grid { height: 90%; }
22
+ .column { max-width: 450px; }
23
+ @media (min-width: 768px){
24
+ .column { max-width: 600px; }
25
+ }
@@ -0,0 +1,22 @@
1
+ .ui.middle.aligned.center.aligned.grid
2
+ .column
3
+ <%- if options[:metatags] %>
4
+ h2.ui.center.aligned.dividing.header.teal= title('Forgot your password?')
5
+ <%- else %>
6
+ h2.ui.center.aligned.dividing.header.teal Forgot your password?
7
+ <% end %>
8
+ = simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
9
+ = f.error_notification
10
+ .field
11
+ = f.input :email, required: true, autofocus: true, input_html: { autocomplete: "email" }
12
+ .actions
13
+ = f.button :submit, 'Send me reset password instructions', class: 'btn btn-primary btn-block btn-lg'
14
+ .ui.horizontal.divider or
15
+ .ui.horizontal.list
16
+ = render "devise/shared/links"
17
+ css:
18
+ body > .grid { height: 90%; }
19
+ .column { max-width: 450px; }
20
+ @media (min-width: 768px){
21
+ .column { max-width: 600px; }
22
+ }