diff --git a/app/views/invitations/edit.html.haml b/app/views/invitations/edit.html.haml index 7b315050b6d6ef68f773ee724cae7c99e5a675a9..cea40941ce966d64519a4fcb86f4e59c4dd31f1b 100644 --- a/app/views/invitations/edit.html.haml +++ b/app/views/invitations/edit.html.haml @@ -1,16 +1,28 @@ = javascript_include_tag "validation" +:javascript + $(function() { + $('#user_new [title]').tipsy({trigger: 'focus', gravity: 'w'}); + $("#user_username").focus(); + }); -= form_for(resource, :as => resource_name, :url => invitation_path(resource_name), :html => {:method => :put }) do |f| - %p - = f.label :username - = f.text_field :username - %p - = f.label :password - = f.password_field :password - %p - = f.label :password_confirmation - = f.password_field :password_confirmation +.span-12.prepend-6.last + .floating + %h3 + = t('registrations.new.sign_up_for_diaspora') + = form_for(resource, :as => resource_name, :url => invitation_path(resource_name), :html => {:method => :put }) do |f| + %p + = f.label :username , t('username') + = f.text_field :username, :title => t('registrations.new.enter_username') + %p + = f.label :email , t('email') + = f.text_field :email, :title => t('registrations.new.enter_email') + + %p + = f.label :password , t('password') + = f.password_field :password, :title => t('registrations.new.enter_password') + %p + = f.label :password_confirmation , t('password_confirmation') + = f.password_field :password_confirmation, :title => t('registrations.new.enter_password_again') + + = f.submit t('registrations.new.sign_up') - = f.hidden_field :invitation_token - = f.submit t('.sign_up') -= render :partial => "devise/shared/links" diff --git a/app/views/registrations/new.html.haml b/app/views/registrations/new.html.haml index 0cf3fc759a24f76034094691727994a31be60d08..51f75571e9180e66e2f7dd562226de418035342a 100644 --- a/app/views/registrations/new.html.haml +++ b/app/views/registrations/new.html.haml @@ -1,5 +1,11 @@ = javascript_include_tag "validation" +:javascript + $(function() { + $('#user_new [title]').tipsy({trigger: 'focus', gravity: 'w'}); + $("#user_username").focus(); + }); + .span-12.prepend-6.last .floating %h3 @@ -7,16 +13,17 @@ = form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %p = f.label :username , t('username') - = f.text_field :username - %p + = f.text_field :username, :title => t('.enter_username') + %p = f.label :email , t('email') - = f.text_field :email + = f.text_field :email, :title => t('.enter_email') + %p = f.label :password , t('password') - = f.password_field :password + = f.password_field :password, :title => t('.enter_password') %p = f.label :password_confirmation , t('password_confirmation') - = f.password_field :password_confirmation + = f.password_field :password_confirmation, :title => t('.enter_password_again') = f.submit t('.sign_up') diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index 4f627247b1fa3045dbeeaa80d645f4fd94cb4f5d..22d7986d13875a01567c16a6523809c7ed0e179a 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -257,6 +257,10 @@ en: new: sign_up: "Sign up" sign_up_for_diaspora: "Sign up for Diaspora" + enter_email: "Enter an e-mail" + enter_username: "Pick a username (only letters, numbers, and underscores)" + enter_password: "Enter a password" + enter_password_again: "Enter the same password as before" create: success: "You've joined Diaspora!" edit: