diff options
author | Azul <azul@leap.se> | 2012-12-20 12:47:31 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-20 12:47:31 +0100 |
commit | aa84a06bf96eb1fd5073263ee5955a62c61b9dc8 (patch) | |
tree | 242f456fcfc6e94849bf7c97a3e2b8a95db92ad8 /users/app/views | |
parent | 5d61ba0a80399b9e725881f857fdfa5414e5ef3f (diff) |
validating email domain and displaying it as the placeholder
This even works client side. :)
Diffstat (limited to 'users/app/views')
-rw-r--r-- | users/app/views/users/_email_aliases.html.haml | 2 | ||||
-rw-r--r-- | users/app/views/users/_email_field.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/users/app/views/users/_email_aliases.html.haml b/users/app/views/users/_email_aliases.html.haml index 121acc4..e012429 100644 --- a/users/app/views/users/_email_aliases.html.haml +++ b/users/app/views/users/_email_aliases.html.haml @@ -3,4 +3,4 @@ =render @user.email_aliases .clearfix = f.simple_fields_for :email_aliases, @email_alias do |e| - = e.input :email, :placeholder => "alias@#{request.domain}" + = e.input :email, :placeholder => "alias@#{APP_CONFIG[:domain]}" diff --git a/users/app/views/users/_email_field.html.haml b/users/app/views/users/_email_field.html.haml index 36bbeca..edf62c9 100644 --- a/users/app/views/users/_email_field.html.haml +++ b/users/app/views/users/_email_field.html.haml @@ -1 +1 @@ -= f.input :email += f.input :email, :placeholder => "me@#{APP_CONFIG[:domain]}" |