2012-02-29 11:38:13 +00:00
|
|
|
.wrap
|
|
|
|
/ Top block
|
|
|
|
%header
|
|
|
|
.logo
|
|
|
|
/ Page
|
2012-03-02 12:27:38 +00:00
|
|
|
- uname_error, name_error, email_error, password_error = getDeviseErrors(:uname, :name, :email, :password)
|
2012-02-29 11:38:13 +00:00
|
|
|
%article
|
2014-01-21 04:51:49 +00:00
|
|
|
= 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
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.password_field :password, name: 'password', style: 'display: none;'
|
2012-02-29 11:38:13 +00:00
|
|
|
.left.first=t('activerecord.attributes.user.uname')
|
|
|
|
.right.first
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.text_field :uname, id: 'login', class: "registartion-input #{uname_error ? 'registartion-input-error' : ''}"
|
2012-02-29 11:38:13 +00:00
|
|
|
.both
|
|
|
|
.left=t('activerecord.attributes.user.name')
|
|
|
|
.right
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.text_field :name, id: 'name', class: "registartion-input #{name_error ? 'registartion-input-error' : ''}"
|
2012-02-29 11:38:13 +00:00
|
|
|
.both
|
|
|
|
.left=t('activerecord.attributes.user.email')
|
|
|
|
.right
|
2013-08-28 14:35:16 +01:00
|
|
|
- klass = "registartion-input #{email_error ? 'registartion-input-error' : ''}"
|
2013-03-25 23:13:15 +00:00
|
|
|
- if APP_CONFIG['preregistration']
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.text_field :email, id: 'email', readonly: 'readonly', class: klass
|
2013-03-25 23:13:15 +00:00
|
|
|
- else
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.text_field :email, id: 'email', class: 'registartion-input', class: klass
|
2012-02-29 11:38:13 +00:00
|
|
|
.both
|
|
|
|
.left=t('activerecord.attributes.user.password')
|
|
|
|
.right
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.password_field :password, id: 'password', class: "registartion-input #{password_error ? 'registartion-input-error' : ''}"
|
2012-02-29 11:38:13 +00:00
|
|
|
.both
|
|
|
|
.left=t('activerecord.attributes.user.password_confirm')
|
|
|
|
.right
|
2014-01-21 04:51:49 +00:00
|
|
|
= f.password_field :password_confirmation, id: 'password2', class: "registartion-input #{password_error ? 'registartion-input-error' : ''}"
|
2012-02-29 11:38:13 +00:00
|
|
|
.both
|
|
|
|
.in
|
2014-01-21 04:51:49 +00:00
|
|
|
=f.submit t("layout.devise.shared_links.sign_up"), class: 'button', id: 'btnLogin'
|
2012-02-29 11:38:13 +00:00
|
|
|
.both
|
2013-08-28 16:15:28 +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-03-25 23:13:15 +00:00
|
|
|
|
2013-08-28 14:35:16 +01:00
|
|
|
=showDeviseHintError(:login, uname_error)
|
2012-03-02 12:27:38 +00:00
|
|
|
=showDeviseHintError(:name, name_error)
|
|
|
|
=showDeviseHintError(:email, email_error)
|
2013-08-28 14:35:16 +01:00
|
|
|
=showDeviseHintError(:password, password_error)
|
2012-03-02 12:27:38 +00:00
|
|
|
|