- reader ||= @reader - check_password ||= false - form_for reader, :html => {:class => 'friendly'} do |f| %input{:type => :hidden, :name => :authentication_type, :value => :user} - unless @reader.errors.empty? %p.has_error = t('reader_extension.sorry').titlecase = t('reader_extension.form_problem') + '.' = t('reader_extension.affected_fields_highlighted') - else %p = t('reader_extension.bold_required') %p = f.label :name, nil, :class => 'required' %br = f.text_field :name, :class => 'standard' %br %span.formnote= t('reader_extension.form_notes.name') - if reader.new_record? %p = f.label reader.email_field, t('activerecord.attributes.reader.email'), :class => 'required' %br = text_field_tag reader.email_field, params[reader.email_field] || reader.email, :id => "reader_#{reader.email_field}", :class => 'standard' %br %span.formnote= t('reader_extension.form_notes.email') .innocuous %p =f.label :email, nil, :class => 'required' %br = f.text_field :email, :class => 'standard', :value => "" %br %span.formnote= t('reader_extension.spam_trap') - else %p = f.label :email, nil, :class => 'required' %br = f.text_field :email, :class => 'standard' %br %span.formnote= t('reader_extension.form_notes.email') %p = f.label :login, nil, :class => 'optional' %br = f.text_field :login, :class => 'standard' %br %span.formnote= t('reader_extension.form_notes.login') - if reader.new_record? %p = f.label :password, nil, :class => 'required' %br = f.password_field :password, :class => 'standard', :autocomplete => 'off' %br %span.formnote= t('reader_extension.form_notes.new_password') %p = f.label :password_confirmation, nil, :class => 'required' %br = f.password_field :password_confirmation, :class => 'standard', :autocomplete => 'off' - else .display_password %p = f.label :password, nil, :class => 'optional' %span.password ••••• %br %span.formnote= link_to t('reader_extension.change_password'), '#', :class => 'toggle', :rel => ".display_password, .new_password" .new_password.hidden %p = f.label :password, t('reader_extension.new_password'), :class => 'required' %br = f.password_field :password, :class => 'standard', :autocomplete => 'off' %span.formnote= t('reader_extension.form_notes.new_password') %p = f.label :password_confirmation, t('reader_extension.confirm_new_password'), :class => 'required' %br = f.password_field :password_confirmation, :class => 'standard', :autocomplete => 'off' = render :partial => 'memberships' %p = submit_tag reader.new_record? ? t('reader_extension.create_account') : t("reader_extension.update_account") or = link_to 'cancel', request.referer