diff --git a/app/views/users/new.html.haml b/app/views/users/new.html.haml --- a/app/views/users/new.html.haml +++ b/app/views/users/new.html.haml @@ -1,29 +1,39 @@ -%h1 New user registration +.contest-title + %h1 + = "#{Configuration['contest.name']}: #{t 'registration.title'}" -= error_messages_for :user, :header_message => 'Errors occured during registration' +.registration-desc + =t 'registration.description' + += error_messages_for :user, :header_message => (t 'registration.errors.header') %table - form_for :user, @user, :url => { :action => 'register' } do |f| %tr - %td Login: + %td{:align => "right"} + = "#{t 'login_label'}:" %td= f.text_field :login %tr %td %td - %small Only a-z, A-Z, 0-9 and _ + %small + =t 'registration.login_guide' %tr - %td Full name: + %td{:align => "right"} + = "#{t 'full_name_label'}:" %td= f.text_field :full_name %tr - %td E-mail: + %td{:align => "right"} + = "#{t 'email_label'}:" %td= f.text_field :email %tr %td %td %small - Please make sure that your e-mail is correct. - %br/ - You'll need to verify your account by email. + =t 'registration.email_guide' %tr - %td{:colspan => 2}= submit_tag "Register" + %td/ + %td + = submit_tag((t 'registration.register'), :name => 'commit') + = submit_tag((t 'cancel'), :name => 'cancel')