rosa-build/app/views/devise/registrations/new.html.haml

48 lines
2.2 KiB
Plaintext
Raw Normal View History

.wrap
/ Top block
%header
.logo
/ Page
- uname_error, name_error, email_error, password_error = getDeviseErrors(:uname, :name, :email, :password)
%article
= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :class => "form" }) do |f|
2012-02-09 21:45:26 +00:00
= hidden_field_tag :invitation_token, @invitation_token
2013-08-26 18:53:03 +01:00
.right.first.login_first
= f.text_field :login, :id => 'login'
= f.password_field :password, :id => 'password'
.left.first=t('activerecord.attributes.user.uname')
.right.first
2013-08-26 18:53:03 +01:00
= f.text_field :uname, :id => 'uname', :class => "registartion-input #{uname_error ? 'registartion-input-error' : ''}"
.both
.left=t('activerecord.attributes.user.name')
.right
= f.text_field :name, :id => 'name', :class => "registartion-input #{name_error ? 'registartion-input-error' : ''}"
.both
.left=t('activerecord.attributes.user.email')
.right
- if APP_CONFIG['preregistration']
2013-08-26 18:53:03 +01:00
= f.text_field :email, :id => 'email', :readonly => 'readonly', :class => "registartion-input #{email_error ? 'registartion-input-error' : ''}"
- else
2013-08-26 18:53:03 +01:00
= f.text_field :email, :id => 'email', :class => 'registartion-input'
.both
.left=t('activerecord.attributes.user.password')
.right
2013-08-26 18:53:03 +01:00
= f.password_field :password, :name => 'user[pazsword]', :id => 'pazsword', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}"
.both
.left=t('activerecord.attributes.user.password_confirm')
.right
= f.password_field :password_confirmation, :id => 'password2', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}"
.both
.in
=f.submit t("layout.devise.shared_links.sign_up"), :class => 'button', :id => 'btnLogin'
.both
2013-08-26 18:53:03 +01:00
= hidden_field_tag :recaptcha_challenge_field
= hidden_field_tag :recaptcha_response_field, 'manual_challenge'
2013-03-26 11:52:38 +00:00
= render 'devise/shared/providers'
2013-08-26 18:53:03 +01:00
=showDeviseHintError(:uname, uname_error)
=showDeviseHintError(:name, name_error)
=showDeviseHintError(:email, email_error)
2013-08-26 18:53:03 +01:00
=showDeviseHintError(:pazsword, password_error)