devise-bootstrap-views 0.0.11 → 1.0.0.alpha1

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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +10 -21
  3. data/README.md +6 -22
  4. data/Rakefile +1 -2
  5. data/app/assets/stylesheets/devise_bootstrap_views.scss +0 -10
  6. data/app/assets/stylesheets/devise_bootstrap_views_less.less +0 -10
  7. data/app/views/devise/confirmations/new.html.erb +16 -0
  8. data/app/views/{erb → devise}/mailer/confirmation_instructions.html.erb +4 -2
  9. data/app/views/{erb → devise}/mailer/reset_password_instructions.html.erb +1 -0
  10. data/app/views/{erb → devise}/mailer/unlock_instructions.html.erb +0 -0
  11. data/app/views/devise/passwords/edit.html.erb +23 -0
  12. data/app/views/devise/passwords/new.html.erb +16 -0
  13. data/app/views/devise/registrations/edit.html.erb +30 -0
  14. data/app/views/devise/registrations/new.html.erb +24 -0
  15. data/app/views/devise/sessions/new.html.erb +28 -0
  16. data/app/views/devise/shared/_links.html.erb +27 -0
  17. data/app/views/devise/unlocks/new.html.erb +16 -0
  18. data/devise-bootstrap-views.gemspec +10 -10
  19. data/lib/devise-bootstrap-views.rb +1 -4
  20. data/lib/devise_bootstrap_views_helper.rb +11 -9
  21. data/lib/generators/devise/views/bootstrap_templates/bootstrap_templates_generator.rb +2 -1
  22. data/lib/generators/devise/views/locale/locale_generator.rb +3 -4
  23. data/lib/version.rb +1 -1
  24. data/locales/pt.yml +1 -1
  25. data/locales/sl.yml +49 -55
  26. metadata +23 -47
  27. data/app/views/erb/confirmations/new.html.erb +0 -18
  28. data/app/views/erb/passwords/edit.html.erb +0 -24
  29. data/app/views/erb/passwords/new.html.erb +0 -17
  30. data/app/views/erb/registrations/edit.html.erb +0 -31
  31. data/app/views/erb/registrations/new.html.erb +0 -24
  32. data/app/views/erb/sessions/new.html.erb +0 -26
  33. data/app/views/erb/shared/_links.html.erb +0 -25
  34. data/app/views/erb/unlocks/new.html.erb +0 -16
  35. data/app/views/haml/confirmations/new.html.haml +0 -11
  36. data/app/views/haml/mailer/confirmation_instructions.html.haml +0 -4
  37. data/app/views/haml/mailer/reset_password_instructions.html.haml +0 -5
  38. data/app/views/haml/mailer/unlock_instructions.html.haml +0 -4
  39. data/app/views/haml/passwords/edit.html.haml +0 -15
  40. data/app/views/haml/passwords/new.html.haml +0 -11
  41. data/app/views/haml/registrations/edit.html.haml +0 -27
  42. data/app/views/haml/registrations/new.html.haml +0 -17
  43. data/app/views/haml/sessions/new.html.haml +0 -18
  44. data/app/views/haml/shared/_links.html.haml +0 -19
  45. data/app/views/haml/unlocks/new.html.haml +0 -11
  46. data/app/views/slim/confirmations/new.html.slim +0 -12
  47. data/app/views/slim/mailer/confirmation_instructions.html.slim +0 -7
  48. data/app/views/slim/mailer/reset_password_instructions.html.slim +0 -10
  49. data/app/views/slim/mailer/unlock_instructions.html.slim +0 -8
  50. data/app/views/slim/passwords/edit.html.slim +0 -16
  51. data/app/views/slim/passwords/new.html.slim +0 -12
  52. data/app/views/slim/registrations/edit.html.slim +0 -34
  53. data/app/views/slim/registrations/new.html.slim +0 -18
  54. data/app/views/slim/sessions/new.html.slim +0 -19
  55. data/app/views/slim/shared/_links.html.slim +0 -19
  56. data/app/views/slim/unlocks/new.html.slim +0 -12
  57. data/lib/generators/devise/views/bootstrap_haml_templates/bootstrap_haml_templates_generator.rb +0 -10
  58. data/lib/generators/devise/views/bootstrap_slim_templates/bootstrap_slim_templates_generator.rb +0 -10
@@ -1,3 +1,3 @@
1
1
  module DeviseBootstrapViews
2
- VERSION = "0.0.11"
2
+ VERSION = '1.0.0.alpha1'
3
3
  end
@@ -99,7 +99,7 @@ pt:
99
99
  didn_t_receive_confirmation_instructions: Não recebeu instruções de confirmação?
100
100
  didn_t_receive_unlock_instructions: Não recebeu instruções de desbloqueio?
101
101
  forgot_your_password: Equeceu a palavra-passe?
102
- sign_in: Entrar
102
+ sign_in: Login
103
103
  sign_in_with_provider: Entrar com %{provider}
104
104
  sign_up: Criar conta
105
105
  unlocks:
@@ -2,20 +2,20 @@ sl:
2
2
  activerecord:
3
3
  attributes:
4
4
  user:
5
- current_password: Trenutno geslo
6
- email: E-pošta
7
- password: Geslo
8
- password_confirmation: Potrditev gesla
9
- remember_me: Zapomni si me
10
- reset_password_token: Znak za ponastavitev gesla
11
- unlock_token: Znak za odklep
5
+ current_password:
6
+ email:
7
+ password:
8
+ password_confirmation:
9
+ remember_me:
10
+ reset_password_token:
11
+ unlock_token:
12
12
  models:
13
- user: Uporabnik
13
+ user:
14
14
  devise:
15
15
  confirmations:
16
16
  confirmed: Vaš račun je bil uspešno potrjen. Sedaj ste prijavljeni.
17
17
  new:
18
- resend_confirmation_instructions: Ponovno pošlji navodila za potrditev
18
+ resend_confirmation_instructions:
19
19
  send_instructions: Prejeli boste e-pošto z navodili kako potrditi vaš račun.
20
20
  send_paranoid_instructions: "Če vaša e-pošta obstaja v naši bazi, boste v naslednjih minutah prejeli e-pošto z navodili kako potrditi vaš uporabniški račun."
21
21
  failure:
@@ -30,45 +30,39 @@ sl:
30
30
  unconfirmed: Pred nadaljevanjem morate potrditi vaš račun.
31
31
  mailer:
32
32
  confirmation_instructions:
33
- action: Potrdi moj račun
34
- greeting: 'Dobrodošli, %{recipient}!'
35
- instruction: 'E-pošto uporabniškega računa lahko potrdite s spodnjo povezavo:'
33
+ action:
34
+ greeting:
35
+ instruction:
36
36
  subject: Navodila potrditve
37
37
  password_change:
38
- greeting: 'Pozdravljeni, %{recipient}!'
39
- message: 'Obveščamo vas, da je bilo vaše geslo spremenjeno.'
40
- subject: Geslo spremenjeno
38
+ greeting:
39
+ message:
40
+ subject:
41
41
  reset_password_instructions:
42
- action: Spremeni geslo
43
- greeting: 'Pozdravljeni %{recipient}!'
44
- instruction: >-
45
- Nekdo je zahteval povezavo za spremembo gesla. To lahko storite s
46
- sledečo povezavo.
47
- instruction_2: 'Če tega niste zahtevali, vas prosimo, da ignorirate to sporočilo.'
48
- instruction_3: >-
49
- Vaše geslo se ne bo spremenilo dokler ne pristopite k zgornji povezavi
50
- in ustvarite novega.
42
+ action:
43
+ greeting:
44
+ instruction:
45
+ instruction_2:
46
+ instruction_3:
51
47
  subject: Navodila za ponastavitev gesla
52
48
  unlock_instructions:
53
- action: Odkleni moj račun
54
- greeting: 'Pozdravljeni %{recipient}!'
55
- instruction: 'Pritisnite na spodnjo povezavo, da odklenete vaš račun:'
56
- message: >-
57
- Vaš račun je bil zaklenjen zaradi prekomernega števila neuspešnih
58
- poskusov vpisa.
49
+ action:
50
+ greeting:
51
+ instruction:
52
+ message:
59
53
  subject: Navodila odklepa
60
54
  omniauth_callbacks:
61
55
  failure: Preverjanje pristnosti ni uspelo iz %{kind} zaradi "%{reason}".
62
56
  success: Uspešno preverjena pristnost iz računa %{kind}.
63
57
  passwords:
64
58
  edit:
65
- change_my_password: Spremeni geslo
66
- change_your_password: Spremenite vaše geslo
67
- confirm_new_password: Potrdite novo geslo
68
- new_password: Novo geslo
59
+ change_my_password:
60
+ change_your_password:
61
+ confirm_new_password:
62
+ new_password:
69
63
  new:
70
- forgot_your_password: Pozabili geslo?
71
- send_me_reset_password_instructions: Pošljite mi navodila za ponastavitev gesla
64
+ forgot_your_password:
65
+ send_me_reset_password_instructions:
72
66
  no_token: Do te strani lahko dostopate samo iz povezave v e-pošti za ponastavitev gesla. Če pa ste prišli do te strani preko omenjene povezave, preverite, da ste uporabili celotni URL.
73
67
  send_instructions: V naslednjih minutah boste prejeli e-pošto z navodili kako ponastaviti vaše geslo.
74
68
  send_paranoid_instructions: "Če vaša e-pošta obstaja v bazi, boste v naslednjih minutah na vašo e-pošto prejeli povezavo za obnovitev gesla."
@@ -77,16 +71,16 @@ sl:
77
71
  registrations:
78
72
  destroyed: Nasvidenje. Vaš račun je bil uspešno preklican. Upamo, da se kmalu vrnete.
79
73
  edit:
80
- are_you_sure: Ali ste prepričani?
81
- cancel_my_account: Preklic mojega računa
82
- currently_waiting_confirmation_for_email: 'Trenutno se čaka na potrditev za: %{email}'
83
- leave_blank_if_you_don_t_want_to_change_it: 'pustite prazno, če ne želite opraviti sprememb'
84
- title: 'Uredi %{resource}'
85
- unhappy: Nesrečen
86
- update: Posodobitev
87
- we_need_your_current_password_to_confirm_your_changes: 'potrebujemo vaše trenutno geslo, da potrdimo spremembe'
74
+ are_you_sure:
75
+ cancel_my_account:
76
+ currently_waiting_confirmation_for_email:
77
+ leave_blank_if_you_don_t_want_to_change_it:
78
+ title:
79
+ unhappy:
80
+ update:
81
+ we_need_your_current_password_to_confirm_your_changes:
88
82
  new:
89
- sign_up: Prijava
83
+ sign_up:
90
84
  signed_up: Dobrodošli. Uspešno ste se registrirali.
91
85
  signed_up_but_inactive: Uspešno ste se registrirali, vendar pred prvo prijavo je potrebno vaš račun še aktivirati.
92
86
  signed_up_but_locked: Uspešno ste se registrirali, vendar prijava ni mogoča, ker je vaš račun zaklenjen.
@@ -94,23 +88,23 @@ sl:
94
88
  update_needs_confirmation: Vaš račun je uspešno posodobljen, vendar potrebno je preveriti vaš novi e-poštni naslov. Prosimo, preverite vašo e-pošto in kliknite na potrditveno povezavo za dokončanje potrditve vašega novega e-poštnega naslova.
95
89
  updated: Uspešno ste posodobili vaš račun.
96
90
  sessions:
97
- already_signed_out: Odjava je bila uspešna.
91
+ already_signed_out:
98
92
  new:
99
- sign_in: Vpis
93
+ sign_in:
100
94
  signed_in: Prijava je bila uspešna.
101
95
  signed_out: Odjava je bila uspešna.
102
96
  shared:
103
97
  links:
104
- back: Nazaj
105
- didn_t_receive_confirmation_instructions: Niste prejeli potrditvenih navodil?
106
- didn_t_receive_unlock_instructions: Niste prejeli navodil za odklep?
107
- forgot_your_password: Pozabljeno geslo?
108
- sign_in: Vpis
109
- sign_in_with_provider: 'Vpis z %{provider}'
110
- sign_up: Prijava
98
+ back:
99
+ didn_t_receive_confirmation_instructions:
100
+ didn_t_receive_unlock_instructions:
101
+ forgot_your_password:
102
+ sign_in:
103
+ sign_in_with_provider:
104
+ sign_up:
111
105
  unlocks:
112
106
  new:
113
- resend_unlock_instructions: Ponovno pošlji navodila za odklep
107
+ resend_unlock_instructions:
114
108
  send_instructions: V naslednjih minutah boste prejeli e-pošto z navodili, kako odkleniti vaš račun.
115
109
  send_paranoid_instructions: "Če vaš račun obstaja, boste v naslednjih minutah prejeli e-pošto z navodili kako odkleniti vaš račun."
116
110
  unlocked: Vaš račun je bil uspešno odklenjen. Prosimo, prijavite se za nadaljevanje.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-bootstrap-views
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 1.0.0.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yinghai Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,17 +28,17 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '11.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
41
- description: Devise Bootstrap views with i18n support.
40
+ version: '11.0'
41
+ description: Bootstrap views for Devise with I18n support.
42
42
  email:
43
43
  - zyinghai@gmail.com
44
44
  executables: []
@@ -53,44 +53,20 @@ files:
53
53
  - Screenshot.png
54
54
  - app/assets/stylesheets/devise_bootstrap_views.scss
55
55
  - app/assets/stylesheets/devise_bootstrap_views_less.less
56
- - app/views/erb/confirmations/new.html.erb
57
- - app/views/erb/mailer/confirmation_instructions.html.erb
58
- - app/views/erb/mailer/reset_password_instructions.html.erb
59
- - app/views/erb/mailer/unlock_instructions.html.erb
60
- - app/views/erb/passwords/edit.html.erb
61
- - app/views/erb/passwords/new.html.erb
62
- - app/views/erb/registrations/edit.html.erb
63
- - app/views/erb/registrations/new.html.erb
64
- - app/views/erb/sessions/new.html.erb
65
- - app/views/erb/shared/_links.html.erb
66
- - app/views/erb/unlocks/new.html.erb
67
- - app/views/haml/confirmations/new.html.haml
68
- - app/views/haml/mailer/confirmation_instructions.html.haml
69
- - app/views/haml/mailer/reset_password_instructions.html.haml
70
- - app/views/haml/mailer/unlock_instructions.html.haml
71
- - app/views/haml/passwords/edit.html.haml
72
- - app/views/haml/passwords/new.html.haml
73
- - app/views/haml/registrations/edit.html.haml
74
- - app/views/haml/registrations/new.html.haml
75
- - app/views/haml/sessions/new.html.haml
76
- - app/views/haml/shared/_links.html.haml
77
- - app/views/haml/unlocks/new.html.haml
78
- - app/views/slim/confirmations/new.html.slim
79
- - app/views/slim/mailer/confirmation_instructions.html.slim
80
- - app/views/slim/mailer/reset_password_instructions.html.slim
81
- - app/views/slim/mailer/unlock_instructions.html.slim
82
- - app/views/slim/passwords/edit.html.slim
83
- - app/views/slim/passwords/new.html.slim
84
- - app/views/slim/registrations/edit.html.slim
85
- - app/views/slim/registrations/new.html.slim
86
- - app/views/slim/sessions/new.html.slim
87
- - app/views/slim/shared/_links.html.slim
88
- - app/views/slim/unlocks/new.html.slim
56
+ - app/views/devise/confirmations/new.html.erb
57
+ - app/views/devise/mailer/confirmation_instructions.html.erb
58
+ - app/views/devise/mailer/reset_password_instructions.html.erb
59
+ - app/views/devise/mailer/unlock_instructions.html.erb
60
+ - app/views/devise/passwords/edit.html.erb
61
+ - app/views/devise/passwords/new.html.erb
62
+ - app/views/devise/registrations/edit.html.erb
63
+ - app/views/devise/registrations/new.html.erb
64
+ - app/views/devise/sessions/new.html.erb
65
+ - app/views/devise/shared/_links.html.erb
66
+ - app/views/devise/unlocks/new.html.erb
89
67
  - devise-bootstrap-views.gemspec
90
68
  - lib/devise-bootstrap-views.rb
91
69
  - lib/devise_bootstrap_views_helper.rb
92
- - lib/generators/devise/views/bootstrap_haml_templates/bootstrap_haml_templates_generator.rb
93
- - lib/generators/devise/views/bootstrap_slim_templates/bootstrap_slim_templates_generator.rb
94
70
  - lib/generators/devise/views/bootstrap_templates/bootstrap_templates_generator.rb
95
71
  - lib/generators/devise/views/locale/locale_generator.rb
96
72
  - lib/version.rb
@@ -149,7 +125,7 @@ files:
149
125
  - locales/zh-CN.yml
150
126
  - locales/zh-HK.yml
151
127
  - locales/zh-TW.yml
152
- homepage: ''
128
+ homepage: https://github.com/hisea/devise-bootstrap-views
153
129
  licenses:
154
130
  - MIT
155
131
  metadata: {}
@@ -164,13 +140,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
140
  version: '0'
165
141
  required_rubygems_version: !ruby/object:Gem::Requirement
166
142
  requirements:
167
- - - ">="
143
+ - - ">"
168
144
  - !ruby/object:Gem::Version
169
- version: '0'
145
+ version: 1.3.1
170
146
  requirements: []
171
147
  rubyforge_project:
172
- rubygems_version: 2.5.1
148
+ rubygems_version: 2.6.4
173
149
  signing_key:
174
150
  specification_version: 4
175
- summary: Devise Bootstrap views with i18n support.
151
+ summary: Bootstrap views for Devise.
176
152
  test_files: []
@@ -1,18 +0,0 @@
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' %>
@@ -1,24 +0,0 @@
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' %>
@@ -1,17 +0,0 @@
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' %>
@@ -1,31 +0,0 @@
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 %>
@@ -1,24 +0,0 @@
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 +0,0 @@
1
- <div class="panel panel-default devise-bs">
2
- <div class="panel-heading">
3
- <h4><%= t('.sign_in', default: 'Sign in') %></h4>
4
- </div>
5
- <div class="panel-body">
6
- <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { role: 'form' }) do |f| %>
7
- <div class="form-group">
8
- <%= f.label :email %>
9
- <%= f.email_field :email, autofocus: true, class: 'form-control' %>
10
- </div>
11
- <div class="form-group">
12
- <%= f.label :password %>
13
- <%= f.password_field :password, autocomplete: 'off', class: 'form-control' %>
14
- </div>
15
- <% if devise_mapping.rememberable? %>
16
- <div class="checkbox">
17
- <%= f.label :remember_me do %>
18
- <%= f.check_box :remember_me %> <%= t('.remember_me', default: 'Remember me') %>
19
- <% end %>
20
- </div>
21
- <% end %>
22
- <%= f.submit t('.sign_in', default: 'Sign in'), class: 'btn btn-primary' %>
23
- <% end %>
24
- </div>
25
- </div>
26
- <%= render 'devise/shared/links' %>
@@ -1,25 +0,0 @@
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 %>