small fix in the registration page

This commit is contained in:
Alexander Machehin 2013-08-26 19:34:07 +06:00
parent c0d717e4a5
commit 09b1aba71b
1 changed files with 3 additions and 2 deletions

View File

@ -17,10 +17,11 @@
.both
.left=t('activerecord.attributes.user.email')
.right
- klass = "registartion-input #{email_error ? 'registartion-input-error' : ''}"
- if APP_CONFIG['preregistration']
= f.text_field :email, :id => 'email', :readonly => 'readonly', :class => "registartion-input #{email_error ? 'registartion-input-error' : ''}"
= f.text_field :email, :id => 'email', :readonly => 'readonly', :class => klass
- else
= f.text_field :email, :id => 'email', :class => 'registartion-input'
= f.text_field :email, :id => 'email', :class => 'registartion-input', :class => klass
.both
.left=t('activerecord.attributes.user.password')
.right