Permalink
Browse files

add popover hint for email field

make user aware about what this field will be used for
  • Loading branch information...
1 parent ce24f4e commit 4f40e85dcf68e9ffacd707390888a9eac8deb3c3 @johnyb johnyb committed May 7, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −1 app/views/users/_password_fields.html.haml
  2. +4 −0 config/locales/hint/en.yml
@@ -1,6 +1,6 @@
#email.text_input
= f.label :email
- = f.email_field :email
+ = f.email_field :email, :rel => :popover, 'data-content' => t(:pw_email, :scope => :hint), 'data-title' => t(:pw_email_title, :scope => :hint)
#password.text_input
= f.label :password, "New password"
= f.password_field :password
@@ -0,0 +1,4 @@
+en:
+ hint:
+ pw_email: "This e-mail address is used only to recover your password in case you don’t remember it. It’s *NOT* visible to other users."
+ pw_email_title: "E-Mail Address"

0 comments on commit 4f40e85

Please sign in to comment.