devise-bootstrap-views 0.0.9 → 0.0.10

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 (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -1
  3. data/app/views/erb/confirmations/new.html.erb +18 -0
  4. data/app/views/erb/mailer/confirmation_instructions.html.erb +6 -0
  5. data/app/views/erb/mailer/reset_password_instructions.html.erb +8 -0
  6. data/app/views/erb/mailer/unlock_instructions.html.erb +7 -0
  7. data/app/views/erb/passwords/edit.html.erb +24 -0
  8. data/app/views/erb/passwords/new.html.erb +17 -0
  9. data/app/views/erb/registrations/edit.html.erb +31 -0
  10. data/app/views/erb/registrations/new.html.erb +24 -0
  11. data/app/views/{devise → erb}/sessions/new.html.erb +7 -7
  12. data/app/views/erb/shared/_links.html.erb +25 -0
  13. data/app/views/erb/unlocks/new.html.erb +16 -0
  14. data/app/views/haml/confirmations/new.html.haml +11 -0
  15. data/app/views/haml/mailer/confirmation_instructions.html.haml +4 -0
  16. data/app/views/haml/mailer/reset_password_instructions.html.haml +5 -0
  17. data/app/views/haml/mailer/unlock_instructions.html.haml +4 -0
  18. data/app/views/haml/passwords/edit.html.haml +15 -0
  19. data/app/views/haml/passwords/new.html.haml +11 -0
  20. data/app/views/haml/registrations/edit.html.haml +27 -0
  21. data/app/views/haml/registrations/new.html.haml +17 -0
  22. data/app/views/haml/sessions/new.html.haml +18 -0
  23. data/app/views/haml/shared/_links.html.haml +19 -0
  24. data/app/views/haml/unlocks/new.html.haml +11 -0
  25. data/app/views/slim/confirmations/new.html.slim +12 -0
  26. data/app/views/slim/mailer/confirmation_instructions.html.slim +7 -0
  27. data/app/views/slim/mailer/reset_password_instructions.html.slim +10 -0
  28. data/app/views/slim/mailer/unlock_instructions.html.slim +8 -0
  29. data/app/views/slim/passwords/edit.html.slim +16 -0
  30. data/app/views/slim/passwords/new.html.slim +12 -0
  31. data/app/views/slim/registrations/edit.html.slim +34 -0
  32. data/app/views/slim/registrations/new.html.slim +18 -0
  33. data/app/views/slim/sessions/new.html.slim +19 -0
  34. data/app/views/slim/shared/_links.html.slim +19 -0
  35. data/app/views/slim/unlocks/new.html.slim +12 -0
  36. data/lib/generators/devise/views/bootstrap_haml_templates/bootstrap_haml_templates_generator.rb +10 -0
  37. data/lib/generators/devise/views/bootstrap_slim_templates/bootstrap_slim_templates_generator.rb +10 -0
  38. data/lib/generators/devise/views/bootstrap_templates/bootstrap_templates_generator.rb +1 -1
  39. data/lib/generators/devise/views/locale/locale_generator.rb +6 -3
  40. data/lib/version.rb +1 -1
  41. data/locales/af.yml +120 -0
  42. data/locales/ar.yml +60 -48
  43. data/locales/az.yml +118 -0
  44. data/locales/bg.yml +120 -0
  45. data/locales/bn.yml +120 -0
  46. data/locales/bs.yml +122 -0
  47. data/locales/ca.yml +86 -25
  48. data/locales/cs.yml +97 -86
  49. data/locales/da.yml +120 -0
  50. data/locales/de-CH.yml +122 -0
  51. data/locales/de.yml +72 -62
  52. data/locales/el.yml +120 -0
  53. data/locales/en-GB.yml +120 -0
  54. data/locales/en.yml +95 -87
  55. data/locales/es-MX.yml +120 -0
  56. data/locales/es.yml +85 -16
  57. data/locales/et.yml +120 -0
  58. data/locales/fa.yml +120 -0
  59. data/locales/fi.yml +120 -0
  60. data/locales/fr-CA.yml +120 -0
  61. data/locales/fr.yml +86 -17
  62. data/locales/he.yml +120 -0
  63. data/locales/hr.yml +122 -0
  64. data/locales/hu.yml +75 -14
  65. data/locales/id.yml +118 -0
  66. data/locales/is.yml +120 -0
  67. data/locales/it.yml +73 -4
  68. data/locales/ja.yml +120 -0
  69. data/locales/ko.yml +118 -0
  70. data/locales/lt.yml +121 -0
  71. data/locales/lv.yml +121 -0
  72. data/locales/my.yml +118 -0
  73. data/locales/nb.yml +120 -0
  74. data/locales/nl.yml +75 -14
  75. data/locales/nn-NO.yml +120 -0
  76. data/locales/no.yml +120 -0
  77. data/locales/pl.yml +77 -12
  78. data/locales/pt-BR.yml +73 -9
  79. data/locales/pt.yml +120 -0
  80. data/locales/ro.yml +121 -0
  81. data/locales/ru.yml +78 -55
  82. data/locales/sk.yml +121 -0
  83. data/locales/sl.yml +122 -0
  84. data/locales/sr-RS.yml +122 -0
  85. data/locales/sr.yml +122 -0
  86. data/locales/sv.yml +120 -0
  87. data/locales/th.yml +118 -0
  88. data/locales/tr.yml +74 -7
  89. data/locales/uk.yml +101 -35
  90. data/locales/vi.yml +120 -0
  91. data/locales/zh-CN.yml +101 -40
  92. data/locales/zh-HK.yml +118 -0
  93. data/locales/zh-TW.yml +101 -38
  94. metadata +74 -14
  95. data/app/views/devise/confirmations/new.html.erb +0 -18
  96. data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -6
  97. data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -8
  98. data/app/views/devise/mailer/unlock_instructions.html.erb +0 -7
  99. data/app/views/devise/passwords/edit.html.erb +0 -24
  100. data/app/views/devise/passwords/new.html.erb +0 -17
  101. data/app/views/devise/registrations/edit.html.erb +0 -31
  102. data/app/views/devise/registrations/new.html.erb +0 -24
  103. data/app/views/devise/shared/_links.html.erb +0 -25
  104. data/app/views/devise/unlocks/new.html.erb +0 -16
@@ -1,57 +1,120 @@
1
1
  zh-TW:
2
+ activerecord:
3
+ attributes:
4
+ user:
5
+ current_password: "當前密碼"
6
+ email: "電子郵箱"
7
+ password: "密碼"
8
+ password_confirmation: "密碼確認"
9
+ remember_me: "記憶登入訊息"
10
+ reset_password_token:
11
+ unlock_token:
12
+ models:
13
+ user: "用戶"
2
14
  devise:
3
15
  confirmations:
16
+ confirmed: "您的帳號已通過驗證,現在您已成功登入。"
4
17
  new:
5
- resend_confirmation_instructions: '重新發送確認信'
18
+ resend_confirmation_instructions: "重新發送確認信"
19
+ send_instructions: "您將在幾分鐘後收到一封電子郵件,內有驗證帳號的步驟說明。"
20
+ send_paranoid_instructions: "如果我們有您的信箱,您將會收到一封驗證您的帳號的電子郵件。"
21
+ failure:
22
+ already_authenticated: "您已經登入。"
23
+ inactive: "您的帳號尚未被啟用。"
24
+ invalid: "信箱或密碼是無效的。"
25
+ last_attempt: "您還有最後一次嘗試機會,再次失敗您的帳號將會被鎖定。"
26
+ locked: "您的帳號已被鎖定。"
27
+ not_found_in_database: "信箱或密碼是無效的。"
28
+ timeout: "您的登入時效過期,請重新登入。"
29
+ unauthenticated: "您需要先登入或註冊後才能繼續。"
30
+ unconfirmed: "您的帳號需需要經過驗證後,才能繼續。"
6
31
  mailer:
7
32
  confirmation_instructions:
8
- action: '確認帳號'
9
- greeting: '%{recipient} 你好!'
10
- instruction: ! '您可以利用下面的連結確認您的帳戶的電子郵件:'
11
- subject: '確認帳號的說明'
33
+ action: "確認帳號"
34
+ greeting: "%{recipient} 你好!"
35
+ instruction: "您可以利用下面的連結確認您的帳戶的電子郵件:"
36
+ subject: "帳號驗證步驟"
37
+ password_change:
38
+ greeting: "你好 %{recipient}!"
39
+ message: "它會通知您,您的密碼已被更改。"
40
+ subject: "密碼已更改"
12
41
  reset_password_instructions:
13
- action: '更改我的密碼'
14
- greeting: '你好 %{recipient}!'
15
- instruction: '有人要求更改密碼的連結,你可以利用下面的連結更改密碼。'
16
- instruction_2: '如果你沒有要求,請忽略此電子郵件。'
17
- instruction_3: '如果你沒有進入上面的連結,並建立新的密碼,你的密碼不會被改變。'
18
- subject: '重設密碼的說明'
42
+ action: "更改我的密碼"
43
+ greeting: "你好 %{recipient}!"
44
+ instruction: "有人要求更改密碼的連結,你可以利用下面的連結更改密碼。"
45
+ instruction_2: "如果你沒有要求,請忽略此電子郵件。"
46
+ instruction_3: "如果你沒有進入上面的連結,並建立新的密碼,你的密碼不會被改變。"
47
+ subject: "密碼重設步驟"
19
48
  unlock_instructions:
20
- action: '帳戶解鎖'
21
- greeting: '你好 %{recipient}!'
22
- instruction: ! '點擊下面的連結到您的帳戶進行解鎖:'
23
- message: '由於多次的不成功的登入嘗試,您的帳戶已被鎖定。'
24
- subject: '帳戶解鎖說明'
49
+ action: "帳戶解鎖"
50
+ greeting: "你好 %{recipient}!"
51
+ instruction: "點擊下面的連結到您的帳戶進行解鎖:"
52
+ message: "由於多次的不成功的登入嘗試,您的帳戶已被鎖定。"
53
+ subject: "帳號解鎖步驟"
54
+ omniauth_callbacks:
55
+ failure: 無法從 %{kind} 驗證,因為 "%{reason}"。
56
+ success: "成功從 %{kind} 驗證。"
25
57
  passwords:
26
- new:
27
- forgot_your_password: '忘記密碼?'
28
- send_me_reset_password_instructions: '請寄重設密碼的說明信件給我'
29
58
  edit:
30
- change_your_password: '更改您的密碼'
31
- new_password: '新密碼'
32
- confirm_new_password: '確認新密碼'
33
- change_my_password: '更改我的密碼'
59
+ change_my_password: "更改我的密碼"
60
+ change_your_password: "更改您的密碼"
61
+ confirm_new_password: "確認新密碼"
62
+ new_password: "新密碼"
63
+ new:
64
+ forgot_your_password: "忘記密碼?"
65
+ send_me_reset_password_instructions: "請寄重設密碼的說明信件給我"
66
+ no_token: "這是密碼重設頁面,僅能透過密碼重設信件進入。如果您是透過重設信件進入的,請確認您的網址是完整的。"
67
+ send_instructions: "您將在幾分鐘後收到一封電子郵件,內有重新設定密碼的步驟說明。"
68
+ send_paranoid_instructions: "如果我們有您的信箱,您將會收到一封內含可重新設定密碼連結的電子郵件。"
69
+ updated: "您的密碼已被修改,您現在已經登入。"
70
+ updated_not_active: "您的密碼已被修改。"
34
71
  registrations:
72
+ destroyed: "再會!您的帳號已被取消。有緣再會。"
35
73
  edit:
36
- are_you_sure: '你確定嗎?'
37
- cancel_my_account: '取消我的帳戶'
38
- leave_blank_if_you_don_t_want_to_change_it: '不想修改的話就不需要填寫這個欄位'
39
- title: '修改 %{resource}'
40
- we_need_your_current_password_to_confirm_your_changes: '我們需要您的目前的密碼以確認您的更改'
41
- update: '更新'
74
+ are_you_sure: "你確定嗎?"
75
+ cancel_my_account: "取消我的帳戶"
76
+ currently_waiting_confirmation_for_email: "等待 %{email} 的確認"
77
+ leave_blank_if_you_don_t_want_to_change_it: "不想修改的話就不需要填寫這個欄位"
78
+ title: "修改 %{resource}"
79
+ unhappy: "不喜歡"
80
+ update: "更新"
81
+ we_need_your_current_password_to_confirm_your_changes: "我們需要您的目前的密碼以確認您的更改"
42
82
  new:
43
- sign_up: '註冊'
83
+ sign_up: "註冊"
84
+ signed_up: "註冊成功,歡迎!"
85
+ signed_up_but_inactive: "您已註冊成功。然而因為您的帳號尚未啓動,暫時無法登入,抱歉!"
86
+ signed_up_but_locked: "您已註冊成功。 然而因為您的帳號已被鎖定,暫時無法登入,抱歉!"
87
+ signed_up_but_unconfirmed: "確認信件已送至您的 Email 信箱,請點擊信件內連結以啓動您的帳號。"
88
+ update_needs_confirmation: "您已經成功的更新帳號資訊,但我們仍需確認您的電子信箱,請至新信箱收信並點擊連結以確認您的新電子郵件帳號。"
89
+ updated: "您已經成功的更新帳號資訊。"
44
90
  sessions:
91
+ already_signed_out: "成功登出了。"
45
92
  new:
46
- sign_in: '登入'
93
+ sign_in: "登入"
94
+ signed_in: "成功登入了。"
95
+ signed_out: "成功登出了。"
47
96
  shared:
48
97
  links:
49
- didn_t_receive_confirmation_instructions: '沒有收到確認信件?'
50
- didn_t_receive_unlock_instructions: '沒有收到解鎖信件?'
51
- forgot_your_password: '忘記密碼?'
52
- sign_in: '登入'
53
- sign_in_with_provider: '用 %{provider} 登入'
54
- sign_up: '註冊'
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: "用 %{provider} 登入"
104
+ sign_up: "註冊"
55
105
  unlocks:
56
106
  new:
57
- resend_unlock_instructions: '重發解鎖說明信件'
107
+ resend_unlock_instructions: "重發解鎖說明信件"
108
+ send_instructions: "您將在幾分鐘後收到一封電子郵件,內有將帳號解除鎖定的步驟說明。"
109
+ send_paranoid_instructions: "如果您的帳號已存在,您的電子信箱將會收到如何解鎖帳號的指示。"
110
+ unlocked: "您的帳號已被解鎖,現在已經登入。"
111
+ errors:
112
+ messages:
113
+ already_confirmed: "已經驗證,請直接登入。"
114
+ confirmation_period_expired: "必須在 %{period} 內驗證,請重新申請。"
115
+ expired: "已經過期,請重新申請。"
116
+ not_found: "找不到。"
117
+ not_locked: "並未被鎖定。"
118
+ not_saved:
119
+ one: "有一個錯誤導致 %{resource} 不能被儲存:"
120
+ other: "有 %{count} 個錯誤導致 %{resource} 不能被儲存:"
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yinghai Zhao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-22 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
@@ -53,41 +53,101 @@ 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/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
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
67
89
  - devise-bootstrap-views.gemspec
68
90
  - lib/devise-bootstrap-views.rb
69
91
  - 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
70
94
  - lib/generators/devise/views/bootstrap_templates/bootstrap_templates_generator.rb
71
95
  - lib/generators/devise/views/locale/locale_generator.rb
72
96
  - lib/version.rb
97
+ - locales/af.yml
73
98
  - locales/ar.yml
99
+ - locales/az.yml
100
+ - locales/bg.yml
101
+ - locales/bn.yml
102
+ - locales/bs.yml
74
103
  - locales/ca.yml
75
104
  - locales/cs.yml
105
+ - locales/da.yml
106
+ - locales/de-CH.yml
76
107
  - locales/de.yml
108
+ - locales/el.yml
109
+ - locales/en-GB.yml
77
110
  - locales/en.yml
78
111
  - locales/es-AR.yml
79
112
  - locales/es-ES.yml
113
+ - locales/es-MX.yml
80
114
  - locales/es.yml
115
+ - locales/et.yml
116
+ - locales/fa.yml
117
+ - locales/fi.yml
118
+ - locales/fr-CA.yml
81
119
  - locales/fr.yml
120
+ - locales/he.yml
121
+ - locales/hr.yml
82
122
  - locales/hu.yml
123
+ - locales/id.yml
124
+ - locales/is.yml
83
125
  - locales/it.yml
126
+ - locales/ja.yml
127
+ - locales/ko.yml
128
+ - locales/lt.yml
129
+ - locales/lv.yml
130
+ - locales/my.yml
131
+ - locales/nb.yml
84
132
  - locales/nl.yml
133
+ - locales/nn-NO.yml
134
+ - locales/no.yml
85
135
  - locales/pl.yml
86
136
  - locales/pt-BR.yml
137
+ - locales/pt.yml
138
+ - locales/ro.yml
87
139
  - locales/ru.yml
140
+ - locales/sk.yml
141
+ - locales/sl.yml
142
+ - locales/sr-RS.yml
143
+ - locales/sr.yml
144
+ - locales/sv.yml
145
+ - locales/th.yml
88
146
  - locales/tr.yml
89
147
  - locales/uk.yml
148
+ - locales/vi.yml
90
149
  - locales/zh-CN.yml
150
+ - locales/zh-HK.yml
91
151
  - locales/zh-TW.yml
92
152
  homepage: ''
93
153
  licenses:
@@ -109,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
169
  version: '0'
110
170
  requirements: []
111
171
  rubyforge_project:
112
- rubygems_version: 2.2.2
172
+ rubygems_version: 2.6.4
113
173
  signing_key:
114
174
  specification_version: 4
115
175
  summary: Devise Bootstrap views with i18n support.
@@ -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,6 +0,0 @@
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>
@@ -1,8 +0,0 @@
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>
@@ -1,7 +0,0 @@
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>
@@ -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,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 %>