devise-bootstrap-views 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/app/views/erb/confirmations/new.html.erb +18 -0
- data/app/views/erb/mailer/confirmation_instructions.html.erb +6 -0
- data/app/views/erb/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/erb/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/erb/passwords/edit.html.erb +24 -0
- data/app/views/erb/passwords/new.html.erb +17 -0
- data/app/views/erb/registrations/edit.html.erb +31 -0
- data/app/views/erb/registrations/new.html.erb +24 -0
- data/app/views/{devise → erb}/sessions/new.html.erb +7 -7
- data/app/views/erb/shared/_links.html.erb +25 -0
- data/app/views/erb/unlocks/new.html.erb +16 -0
- data/app/views/haml/confirmations/new.html.haml +11 -0
- data/app/views/haml/mailer/confirmation_instructions.html.haml +4 -0
- data/app/views/haml/mailer/reset_password_instructions.html.haml +5 -0
- data/app/views/haml/mailer/unlock_instructions.html.haml +4 -0
- data/app/views/haml/passwords/edit.html.haml +15 -0
- data/app/views/haml/passwords/new.html.haml +11 -0
- data/app/views/haml/registrations/edit.html.haml +27 -0
- data/app/views/haml/registrations/new.html.haml +17 -0
- data/app/views/haml/sessions/new.html.haml +18 -0
- data/app/views/haml/shared/_links.html.haml +19 -0
- data/app/views/haml/unlocks/new.html.haml +11 -0
- data/app/views/slim/confirmations/new.html.slim +12 -0
- data/app/views/slim/mailer/confirmation_instructions.html.slim +7 -0
- data/app/views/slim/mailer/reset_password_instructions.html.slim +10 -0
- data/app/views/slim/mailer/unlock_instructions.html.slim +8 -0
- data/app/views/slim/passwords/edit.html.slim +16 -0
- data/app/views/slim/passwords/new.html.slim +12 -0
- data/app/views/slim/registrations/edit.html.slim +34 -0
- data/app/views/slim/registrations/new.html.slim +18 -0
- data/app/views/slim/sessions/new.html.slim +19 -0
- data/app/views/slim/shared/_links.html.slim +19 -0
- data/app/views/slim/unlocks/new.html.slim +12 -0
- data/lib/generators/devise/views/bootstrap_haml_templates/bootstrap_haml_templates_generator.rb +10 -0
- data/lib/generators/devise/views/bootstrap_slim_templates/bootstrap_slim_templates_generator.rb +10 -0
- data/lib/generators/devise/views/bootstrap_templates/bootstrap_templates_generator.rb +1 -1
- data/lib/generators/devise/views/locale/locale_generator.rb +6 -3
- data/lib/version.rb +1 -1
- data/locales/af.yml +120 -0
- data/locales/ar.yml +60 -48
- data/locales/az.yml +118 -0
- data/locales/bg.yml +120 -0
- data/locales/bn.yml +120 -0
- data/locales/bs.yml +122 -0
- data/locales/ca.yml +86 -25
- data/locales/cs.yml +97 -86
- data/locales/da.yml +120 -0
- data/locales/de-CH.yml +122 -0
- data/locales/de.yml +72 -62
- data/locales/el.yml +120 -0
- data/locales/en-GB.yml +120 -0
- data/locales/en.yml +95 -87
- data/locales/es-MX.yml +120 -0
- data/locales/es.yml +85 -16
- data/locales/et.yml +120 -0
- data/locales/fa.yml +120 -0
- data/locales/fi.yml +120 -0
- data/locales/fr-CA.yml +120 -0
- data/locales/fr.yml +86 -17
- data/locales/he.yml +120 -0
- data/locales/hr.yml +122 -0
- data/locales/hu.yml +75 -14
- data/locales/id.yml +118 -0
- data/locales/is.yml +120 -0
- data/locales/it.yml +73 -4
- data/locales/ja.yml +120 -0
- data/locales/ko.yml +118 -0
- data/locales/lt.yml +121 -0
- data/locales/lv.yml +121 -0
- data/locales/my.yml +118 -0
- data/locales/nb.yml +120 -0
- data/locales/nl.yml +75 -14
- data/locales/nn-NO.yml +120 -0
- data/locales/no.yml +120 -0
- data/locales/pl.yml +77 -12
- data/locales/pt-BR.yml +73 -9
- data/locales/pt.yml +120 -0
- data/locales/ro.yml +121 -0
- data/locales/ru.yml +78 -55
- data/locales/sk.yml +121 -0
- data/locales/sl.yml +122 -0
- data/locales/sr-RS.yml +122 -0
- data/locales/sr.yml +122 -0
- data/locales/sv.yml +120 -0
- data/locales/th.yml +118 -0
- data/locales/tr.yml +74 -7
- data/locales/uk.yml +101 -35
- data/locales/vi.yml +120 -0
- data/locales/zh-CN.yml +101 -40
- data/locales/zh-HK.yml +118 -0
- data/locales/zh-TW.yml +101 -38
- metadata +74 -14
- data/app/views/devise/confirmations/new.html.erb +0 -18
- data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -6
- data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
- data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
- data/app/views/devise/passwords/edit.html.erb +0 -24
- data/app/views/devise/passwords/new.html.erb +0 -17
- data/app/views/devise/registrations/edit.html.erb +0 -31
- data/app/views/devise/registrations/new.html.erb +0 -24
- data/app/views/devise/shared/_links.html.erb +0 -25
- data/app/views/devise/unlocks/new.html.erb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc96997e73a642df698260b82db4d756791b2056
|
4
|
+
data.tar.gz: a833625e3d1f0fb93c2c3618f17efa42413a98fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8ca196f87c72b080dd9adf1ea22599ad7dcc81eab14fa79ea233e32f5147eafd39566147fbb69e42e3c4b2171ab3aadd3d81c295ce53b48847bba3285e0d7dc
|
7
|
+
data.tar.gz: d15ce8ed7e08fc5e190560167872047067d7a7a6b14727858647f0d71453cc7d2db31ed859e3e9a51880781db4015d996bbcf8c83e1ee225850d871b6f4101b4
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Add some minor css fix to your rails asset pipeline manifest
|
|
30
30
|
# LESS
|
31
31
|
*= require devise_bootstrap_views_less
|
32
32
|
|
33
|
-
Then you need to install the required translations in your `config/locales`.
|
33
|
+
Then you need to install the required translations in your `config/locales`. The [devise-i18n-views](https://github.com/mcasimir/devise-i18n-views) project is no longer maintained after being merged into [devise-i18n](https://github.com/tigrish/devise-i18n), which is currently the best source for updated Devise translations. You can manually download locale dictionaries from [devise-i18n/rails/locales](https://github.com/tigrish/devise-i18n/tree/master/rails/locales) or generate them by running `devise:views:locale <chosen_locale>`:
|
34
34
|
|
35
35
|
``` sh
|
36
36
|
rails g devise:views:locale it
|
@@ -45,7 +45,15 @@ The `devise:views:bootstrap_templates` generator will copy all views to your app
|
|
45
45
|
``` sh
|
46
46
|
rails g devise:views:bootstrap_templates
|
47
47
|
```
|
48
|
+
Alternatively, you can also generate Haml or Slim templates instead of traditional ERB. Both can be generated with their respective commands below.
|
48
49
|
|
50
|
+
``` sh
|
51
|
+
rails g devise:views:bootstrap_haml_templates
|
52
|
+
```
|
53
|
+
|
54
|
+
``` sh
|
55
|
+
rails g devise:views:bootstrap_slim_templates
|
56
|
+
```
|
49
57
|
## Example
|
50
58
|
|
51
59
|
Sample Application can be found at this link - [Devise Boostrap Views Application](https://github.com/ethiraj-srinivasan/devise-boostrap-views)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<%= bootstrap_devise_error_messages! %>
|
2
|
+
<div class="panel panel-default devise-bs">
|
3
|
+
<div class="panel-heading">
|
4
|
+
<h4><%= t('.resend_confirmation_instructions', default: 'Resend confirmation instructions') %></h4>
|
5
|
+
</div>
|
6
|
+
<div class="panel-body">
|
7
|
+
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post, role: 'form' }) do |f| %>
|
8
|
+
<div class="form-group">
|
9
|
+
<%= f.label :email %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<%= f.submit t('.resend_confirmation_instructions', default: 'Resend confirmation instructions'), class: 'btn btn-primary' %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<%= render 'devise/shared/links' %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<p><%= t('.greeting', recipient: @resource.email, default: "Welcome #{@resource.email}!") %></p>
|
2
|
+
|
3
|
+
<p><%= t('.instruction', default: 'You can confirm your account email through the link below:') %></p>
|
4
|
+
|
5
|
+
<p><%= link_to t('.action', default: 'Confirm my account'),
|
6
|
+
confirmation_url(@resource, confirmation_token: @token, locale: I18n.locale) %></p>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<p><%= t('.greeting', recipient: @resource.email, default: "Hello #{@resource.email}!") %></p>
|
2
|
+
|
3
|
+
<p><%= t('.instruction', default: 'Someone has requested a link to change your password, and you can do this through the link below.') %></p>
|
4
|
+
|
5
|
+
<p><%= link_to t('.action', default: 'Change my password'), edit_password_url(@resource, reset_password_token: @token, locale: I18n.locale) %></p>
|
6
|
+
|
7
|
+
<p><%= t('.instruction_2', default: "If you didn't request this, please ignore this email.") %></p>
|
8
|
+
<p><%= t('.instruction_3', default: "Your password won't change until you access the link above and create a new one.") %></p>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<p><%= t('.greeting', recipient: @resource.email, default: "Hello #{@resource.email}!") %></p>
|
2
|
+
|
3
|
+
<p><%= t('.message', default: 'Your account has been locked due to an excessive amount of unsuccessful sign in attempts.') %></p>
|
4
|
+
|
5
|
+
<p><%= t('.instruction', default: 'Click the link below to unlock your account:') %></p>
|
6
|
+
|
7
|
+
<p><%= link_to t('.action', default: 'Unlock my account'), unlock_url(@resource, unlock_token: @resource.unlock_token, locale: I18n.locale) %></p>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<%= bootstrap_devise_error_messages! %>
|
2
|
+
<div class="panel panel-default devise-bs">
|
3
|
+
<div class="panel-heading">
|
4
|
+
<h4><%= t('.change_your_password', default: 'Change your password') %></h4>
|
5
|
+
</div>
|
6
|
+
<div class="panel-body">
|
7
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, role: 'form' }) do |f| %>
|
8
|
+
<%= f.hidden_field :reset_password_token %>
|
9
|
+
|
10
|
+
<div class="form-group">
|
11
|
+
<%= f.label :password, t('.new_password', default: 'New password') %>
|
12
|
+
<%= f.password_field :password, autofocus: true, class: 'form-control' %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="form-group">
|
16
|
+
<%= f.label :password_confirmation, t('.confirm_new_password', default: 'Confirm new password') %>
|
17
|
+
<%= f.password_field :password_confirmation, class: 'form-control' %>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<%= f.submit t('.change_my_password', default: 'Change my password'), class: 'btn btn-primary' %>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
<%= render 'devise/shared/links' %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%= bootstrap_devise_error_messages! %>
|
2
|
+
<div class="panel panel-default devise-bs">
|
3
|
+
<div class="panel-heading">
|
4
|
+
<h4><%= t('.forgot_your_password', default: 'Forgot your password?') %></h4>
|
5
|
+
</div>
|
6
|
+
<div class="panel-body">
|
7
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, role: "form" }) do |f| %>
|
8
|
+
<div class="form-group">
|
9
|
+
<%= f.label :email %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: 'form-control' %>
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<%= f.submit t('.send_me_reset_password_instructions', default: 'Send me reset password instructions'), class: 'btn btn-primary' %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<%= render 'devise/shared/links' %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<%= bootstrap_devise_error_messages! %>
|
2
|
+
<div class="panel panel-default devise-bs">
|
3
|
+
<div class="panel-heading">
|
4
|
+
<h4><%= t('.title', resource: resource_class.model_name.human , default: "Edit #{resource_name.to_s.humanize}") %></h4>
|
5
|
+
</div>
|
6
|
+
<div class="panel-body">
|
7
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
8
|
+
<div class="form-group">
|
9
|
+
<%= f.label :email %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: 'form-control' %>
|
11
|
+
</div>
|
12
|
+
<div class="form-group">
|
13
|
+
<%= f.label :password %> <i>(<%= t('.leave_blank_if_you_don_t_want_to_change_it', default: "leave blank if you don't want to change it") %>)</i>
|
14
|
+
<%= f.password_field :password, autocomplete: "off", class: 'form-control' %>
|
15
|
+
</div>
|
16
|
+
<div class="form-group">
|
17
|
+
<%= f.label :password_confirmation %>
|
18
|
+
<%= f.password_field :password_confirmation, class: 'form-control' %>
|
19
|
+
</div>
|
20
|
+
<div class="form-group">
|
21
|
+
<%= f.label :current_password %> <i>(<%= t('.we_need_your_current_password_to_confirm_your_changes', default: 'we need your current password to confirm your changes') %>)</i>
|
22
|
+
<%= f.password_field :current_password, class: 'form-control' %>
|
23
|
+
</div>
|
24
|
+
<%= f.submit t('.update', default: 'Update'), class: 'btn btn-primary' %>
|
25
|
+
<% end %>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<p><%= t('.unhappy', default: 'Unhappy') %>? <%= link_to t('.cancel_my_account', default: 'Cancel my account'), registration_path(resource_name), data: { confirm: t('.are_you_sure', default: "Are you sure?") }, method: :delete %>.</p>
|
30
|
+
|
31
|
+
<%= link_to t('.back', default: 'Back'), :back %>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<%= bootstrap_devise_error_messages! %>
|
2
|
+
<div class="panel panel-default devise-bs">
|
3
|
+
<div class="panel-heading">
|
4
|
+
<h4><%= t('.sign_up', default: 'Sign up') %></h4>
|
5
|
+
</div>
|
6
|
+
<div class="panel-body">
|
7
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { role: 'form' }) do |f| %>
|
8
|
+
<div class="form-group">
|
9
|
+
<%= f.label :email %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: 'form-control' %>
|
11
|
+
</div>
|
12
|
+
<div class="form-group">
|
13
|
+
<%= f.label :password %>
|
14
|
+
<%= f.password_field :password, class: 'form-control' %>
|
15
|
+
</div>
|
16
|
+
<div class="form-group">
|
17
|
+
<%= f.label :password_confirmation %>
|
18
|
+
<%= f.password_field :password_confirmation, class: 'form-control' %>
|
19
|
+
</div>
|
20
|
+
<%= f.submit t('.sign_up', default: 'Sign up'), class: 'btn btn-primary' %>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
<%= render 'devise/shared/links' %>
|
@@ -1,26 +1,26 @@
|
|
1
1
|
<div class="panel panel-default devise-bs">
|
2
2
|
<div class="panel-heading">
|
3
|
-
<h4><%= t('.sign_in', :
|
3
|
+
<h4><%= t('.sign_in', default: 'Sign in') %></h4>
|
4
4
|
</div>
|
5
5
|
<div class="panel-body">
|
6
|
-
<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { role:
|
6
|
+
<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { role: 'form' }) do |f| %>
|
7
7
|
<div class="form-group">
|
8
8
|
<%= f.label :email %>
|
9
|
-
<%= f.email_field :email, autofocus: true, class:
|
9
|
+
<%= f.email_field :email, autofocus: true, class: 'form-control' %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group">
|
12
12
|
<%= f.label :password %>
|
13
|
-
<%= f.password_field :password, autocomplete:
|
13
|
+
<%= f.password_field :password, autocomplete: 'off', class: 'form-control' %>
|
14
14
|
</div>
|
15
15
|
<% if devise_mapping.rememberable? %>
|
16
16
|
<div class="checkbox">
|
17
17
|
<%= f.label :remember_me do %>
|
18
|
-
<%= f.check_box :remember_me %> <%= t('.remember_me', :
|
18
|
+
<%= f.check_box :remember_me %> <%= t('.remember_me', default: 'Remember me') %>
|
19
19
|
<% end %>
|
20
20
|
</div>
|
21
21
|
<% end %>
|
22
|
-
<%= f.submit t('.sign_in', :
|
22
|
+
<%= f.submit t('.sign_in', default: 'Sign in'), class: 'btn btn-primary' %>
|
23
23
|
<% end %>
|
24
24
|
</div>
|
25
25
|
</div>
|
26
|
-
<%= render
|
26
|
+
<%= render 'devise/shared/links' %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<% if controller_name != 'sessions' %>
|
2
|
+
<%= link_to t('.sign_in', default: 'Sign in'), new_session_path(resource_name) %><br />
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% if devise_mapping.registerable? && controller_name != 'registrations' %>
|
6
|
+
<%= link_to t('.sign_up', default: 'Sign up'), new_registration_path(resource_name) %><br />
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<% if devise_mapping.recoverable? && controller_name != 'passwords' %>
|
10
|
+
<%= link_to t('.forgot_your_password', default: 'Forgot your password?'), new_password_path(resource_name) %><br />
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
14
|
+
<%= link_to t('.didn_t_receive_confirmation_instructions', default: "Didn't receive confirmation instructions?"), new_confirmation_path(resource_name) %><br />
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<% if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
18
|
+
<%= link_to t('.didn_t_receive_unlock_instructions', default: "Didn't receive unlock instructions?"), new_unlock_path(resource_name) %><br />
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
<% if devise_mapping.omniauthable? %>
|
22
|
+
<% resource_class.omniauth_providers.each do |provider| %>
|
23
|
+
<%= link_to t('.sign_in_with_provider', provider: provider.to_s.titleize, default: "Sign in with #{provider.to_s.titleize}"), omniauth_authorize_path(resource_name, provider) %><br />
|
24
|
+
<% end %>
|
25
|
+
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= bootstrap_devise_error_messages! %>
|
2
|
+
<div class="panel panel-default devise-bs">
|
3
|
+
<div class="panel-heading">
|
4
|
+
<h4><%= t('.resend_unlock_instructions', default: 'Resend unlock instructions') %></h4>
|
5
|
+
</div>
|
6
|
+
<div class="panel-body">
|
7
|
+
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post, html: { role: "form" } }) do |f| %>
|
8
|
+
<div class="form-group">
|
9
|
+
<%= f.label :email %>
|
10
|
+
<%= f.email_field :email, autofocus: true, class: 'form-control' %>
|
11
|
+
</div>
|
12
|
+
<%= f.submit t('.resend_unlock_instructions', default: 'Resend unlock instructions'), class: 'btn btn-primary'%>
|
13
|
+
<% end %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<%= render 'devise/shared/links' %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
= bootstrap_devise_error_messages!
|
2
|
+
.panel.panel-default.devise-bs
|
3
|
+
.panel-heading
|
4
|
+
%h4= t('.resend_confirmation_instructions', default: 'Resend confirmation instructions')
|
5
|
+
.panel-body
|
6
|
+
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post, role: 'form' }) do |f|
|
7
|
+
.form-group
|
8
|
+
= f.label :email
|
9
|
+
= f.email_field :email, autofocus: true, class: "form-control"
|
10
|
+
= f.submit t('.resend_confirmation_instructions', default: 'Resend confirmation instructions'), class: 'btn btn-primary'
|
11
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,4 @@
|
|
1
|
+
%p= t('.greeting', recipient: @resource.email, default: "Welcome #{@resource.email}!")
|
2
|
+
%p= t('.instruction', default: 'You can confirm your account email through the link below:')
|
3
|
+
%p= link_to t('.action', default: 'Confirm my account'), |
|
4
|
+
confirmation_url(@resource, confirmation_token: @token, locale: I18n.locale) |
|
@@ -0,0 +1,5 @@
|
|
1
|
+
%p= t('.greeting', recipient: @resource.email, default: "Hello #{@resource.email}!")
|
2
|
+
%p= t('.instruction', default: 'Someone has requested a link to change your password, and you can do this through the link below.')
|
3
|
+
%p= link_to t('.action', default: 'Change my password'), edit_password_url(@resource, reset_password_token: @token, locale: I18n.locale)
|
4
|
+
%p= t('.instruction_2', default: "If you didn't request this, please ignore this email.")
|
5
|
+
%p= t('.instruction_3', default: "Your password won't change until you access the link above and create a new one.")
|
@@ -0,0 +1,4 @@
|
|
1
|
+
%p= t('.greeting', recipient: @resource.email, default: "Hello #{@resource.email}!")
|
2
|
+
%p= t('.message', default: 'Your account has been locked due to an excessive amount of unsuccessful sign in attempts.')
|
3
|
+
%p= t('.instruction', default: 'Click the link below to unlock your account:')
|
4
|
+
%p= link_to t('.action', default: 'Unlock my account'), unlock_url(@resource, unlock_token: @resource.unlock_token, locale: I18n.locale)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
= bootstrap_devise_error_messages!
|
2
|
+
.panel.panel-default.devise-bs
|
3
|
+
.panel-heading
|
4
|
+
%h4= t('.change_your_password', default: 'Change your password')
|
5
|
+
.panel-body
|
6
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, role: 'form' }) do |f|
|
7
|
+
= f.hidden_field :reset_password_token
|
8
|
+
.form-group
|
9
|
+
= f.label :password, t('.new_password', default: 'New password')
|
10
|
+
= f.password_field :password, autofocus: true, class: 'form-control'
|
11
|
+
.form-group
|
12
|
+
= f.label :password_confirmation, t('.confirm_new_password', default: 'Confirm new password')
|
13
|
+
= f.password_field :password_confirmation, class: 'form-control'
|
14
|
+
= f.submit t('.change_my_password', default: 'Change my password'), class: 'btn btn-primary'
|
15
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
= bootstrap_devise_error_messages!
|
2
|
+
.panel.panel-default.devise-bs
|
3
|
+
.panel-heading
|
4
|
+
%h4= t('.forgot_your_password', default: 'Forgot your password?')
|
5
|
+
.panel-body
|
6
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, role: "form" }) do |f|
|
7
|
+
.form-group
|
8
|
+
= f.label :email
|
9
|
+
= f.email_field :email, autofocus: true, class: 'form-control'
|
10
|
+
= f.submit t('.send_me_reset_password_instructions', default: 'Send me reset password instructions'), class: 'btn btn-primary'
|
11
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
= bootstrap_devise_error_messages!
|
2
|
+
.panel.panel-default.devise-bs
|
3
|
+
.panel-heading
|
4
|
+
%h4= t('.title', resource: resource_class.model_name.human , default: "Edit #{resource_name.to_s.humanize}")
|
5
|
+
.panel-body
|
6
|
+
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
7
|
+
.form-group
|
8
|
+
= f.label :email
|
9
|
+
= f.email_field :email, autofocus: true, class: 'form-control'
|
10
|
+
.form-group
|
11
|
+
= f.label :password
|
12
|
+
%i
|
13
|
+
(#{t('.leave_blank_if_you_don_t_want_to_change_it', default: "leave blank if you don't want to change it")})
|
14
|
+
= f.password_field :password, autocomplete: "off", class: 'form-control'
|
15
|
+
.form-group
|
16
|
+
= f.label :password_confirmation
|
17
|
+
= f.password_field :password_confirmation, class: 'form-control'
|
18
|
+
.form-group
|
19
|
+
= f.label :current_password
|
20
|
+
%i
|
21
|
+
(#{t('.we_need_your_current_password_to_confirm_your_changes', default: 'we need your current password to confirm your changes')})
|
22
|
+
= f.password_field :current_password, class: 'form-control'
|
23
|
+
= f.submit t('.update', default: 'Update'), class: 'btn btn-primary'
|
24
|
+
%p
|
25
|
+
= t('.unhappy', default: 'Unhappy')
|
26
|
+
? #{link_to t('.cancel_my_account', default: 'Cancel my account'), registration_path(resource_name), data: { confirm: t('.are_you_sure', default: "Are you sure?") }, method: :delete}.
|
27
|
+
= link_to t('.back', default: 'Back'), :back
|
@@ -0,0 +1,17 @@
|
|
1
|
+
= bootstrap_devise_error_messages!
|
2
|
+
.panel.panel-default.devise-bs
|
3
|
+
.panel-heading
|
4
|
+
%h4= t('.sign_up', default: 'Sign up')
|
5
|
+
.panel-body
|
6
|
+
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { role: 'form' }) do |f|
|
7
|
+
.form-group
|
8
|
+
= f.label :email
|
9
|
+
= f.email_field :email, autofocus: true, class: 'form-control'
|
10
|
+
.form-group
|
11
|
+
= f.label :password
|
12
|
+
= f.password_field :password, class: 'form-control'
|
13
|
+
.form-group
|
14
|
+
= f.label :password_confirmation
|
15
|
+
= f.password_field :password_confirmation, class: 'form-control'
|
16
|
+
= f.submit t('.sign_up', default: 'Sign up'), class: 'btn btn-primary'
|
17
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.panel.panel-default.devise-bs
|
2
|
+
.panel-heading
|
3
|
+
%h4= t('.sign_in', default: 'Sign in')
|
4
|
+
.panel-body
|
5
|
+
= form_for(resource, as: resource_name, url: session_path(resource_name), html: { role: 'form' }) do |f|
|
6
|
+
.form-group
|
7
|
+
= f.label :email
|
8
|
+
= f.email_field :email, autofocus: true, class: 'form-control'
|
9
|
+
.form-group
|
10
|
+
= f.label :password
|
11
|
+
= f.password_field :password, autocomplete: 'off', class: 'form-control'
|
12
|
+
- if devise_mapping.rememberable?
|
13
|
+
.checkbox
|
14
|
+
= f.label :remember_me do
|
15
|
+
= f.check_box :remember_me
|
16
|
+
= t('.remember_me', default: 'Remember me')
|
17
|
+
= f.submit t('.sign_in', default: 'Sign in'), class: 'btn btn-primary'
|
18
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
- if controller_name != 'sessions'
|
2
|
+
= link_to t('.sign_in', default: 'Sign in'), new_session_path(resource_name)
|
3
|
+
%br/
|
4
|
+
- if devise_mapping.registerable? && controller_name != 'registrations'
|
5
|
+
= link_to t('.sign_up', default: 'Sign up'), new_registration_path(resource_name)
|
6
|
+
%br/
|
7
|
+
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
8
|
+
= link_to t('.forgot_your_password', default: 'Forgot your password?'), new_password_path(resource_name)
|
9
|
+
%br/
|
10
|
+
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
11
|
+
= link_to t('.didn_t_receive_confirmation_instructions', default: "Didn't receive confirmation instructions?"), new_confirmation_path(resource_name)
|
12
|
+
%br/
|
13
|
+
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
14
|
+
= link_to t('.didn_t_receive_unlock_instructions', default: "Didn't receive unlock instructions?"), new_unlock_path(resource_name)
|
15
|
+
%br/
|
16
|
+
- if devise_mapping.omniauthable?
|
17
|
+
- resource_class.omniauth_providers.each do |provider|
|
18
|
+
= link_to t('.sign_in_with_provider', provider: provider.to_s.titleize, default: "Sign in with #{provider.to_s.titleize}"), omniauth_authorize_path(resource_name, provider)
|
19
|
+
%br/
|
@@ -0,0 +1,11 @@
|
|
1
|
+
= bootstrap_devise_error_messages!
|
2
|
+
.panel.panel-default.devise-bs
|
3
|
+
.panel-heading
|
4
|
+
%h4= t('.resend_unlock_instructions', default: 'Resend unlock instructions')
|
5
|
+
.panel-body
|
6
|
+
= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post, html: { role: "form" } }) do |f|
|
7
|
+
.form-group
|
8
|
+
= f.label :email
|
9
|
+
= f.email_field :email, autofocus: true, class: 'form-control'
|
10
|
+
= f.submit t('.resend_unlock_instructions', default: 'Resend unlock instructions'), class: 'btn btn-primary'
|
11
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
= bootstrap_devise_error_messages!
|
2
|
+
.panel.panel-default.devise-bs
|
3
|
+
.panel-heading
|
4
|
+
h4
|
5
|
+
= t('.resend_confirmation_instructions', default: 'Resend confirmation instructions')
|
6
|
+
.panel-body
|
7
|
+
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post, role: 'form' }) do |f|
|
8
|
+
.form-group
|
9
|
+
= f.label :email
|
10
|
+
= f.email_field :email, autofocus: true, class: "form-control"
|
11
|
+
= f.submit t('.resend_confirmation_instructions', default: 'Resend confirmation instructions'), class: 'btn btn-primary'
|
12
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
p
|
2
|
+
= t('.greeting', recipient: @resource.email, default: "Welcome #{@resource.email}!")
|
3
|
+
p
|
4
|
+
= t('.instruction', default: 'You can confirm your account email through the link below:')
|
5
|
+
p
|
6
|
+
= link_to t('.action', default: 'Confirm my account'),
|
7
|
+
- confirmation_url(@resource, confirmation_token: @token, locale: I18n.locale)
|