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 .both
.left=t('activerecord.attributes.user.email') .left=t('activerecord.attributes.user.email')
.right .right
- klass = "registartion-input #{email_error ? 'registartion-input-error' : ''}"
- if APP_CONFIG['preregistration'] - 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 - else
= f.text_field :email, :id => 'email', :class => 'registartion-input' = f.text_field :email, :id => 'email', :class => 'registartion-input', :class => klass
.both .both
.left=t('activerecord.attributes.user.password') .left=t('activerecord.attributes.user.password')
.right .right