- reader ||= @reader - check_password ||= false - form_for reader, :html => {:class => 'friendly'} do |f| - unless @reader.errors.empty? %p.has_error = t('sorry').titlecase = t('form_problem') + '.' = t('affected_fields_highlighted') - else %p = t('bold_required') %p = f.label :name, t('your_name'), :class => 'required' %br = f.text_field :name, :class => 'standard' %span.formnote= t('form_notes.name') - if Radiant::Config['reader.use_honorifics?'] %p = f.label :honorific, t(:honorific), :class => 'optional' %br = f.text_field :honorific, :class => 'standard' %span.formnote= t('form_notes.honorific') - if reader.new_record? && reader.email_field %p = f.label reader.email_field, t('label.reader.email'), :class => 'required' %br = text_field_tag reader.email_field, params[reader.email_field] || reader.email, :id => "reader_#{reader.email_field}", :class => 'standard' %span.formnote= t('form_notes.email') .innocuous %p =f.label :email, t("dont_fill"), :class => 'required' %br = f.text_field :email, :class => 'standard' %span.formnote= t('spam_trap') - else %p = f.label :email, t('your_email'), :class => 'required' %br = f.text_field :email, :class => 'standard' %span.formnote= t('form_notes.email') %p = f.label :login, t('login_name'), :class => 'optional' %br = f.text_field :login, :class => 'standard' %span.formnote= t('form_notes.login') - if reader.new_record? %p = f.label :password, t('password'), :class => 'required' %br = f.password_field :password, :class => 'standard', :autocomplete => 'off' %span.formnote= t('form_notes.new_password') %p = f.label :password_confirmation, t('confirm_password'), :class => 'required' %br = f.password_field :password_confirmation, :class => 'standard', :autocomplete => 'off' - else .display_password %p = f.label :password, t('password').titlecase, :class => 'optional' %span.password ••••• %span.formnote= link_to t('change_password'), '#', :class => 'toggle', :rel => ".display_password, .new_password" .new_password.hidden %p = f.label :password, t('new_password'), :class => 'required' %br = f.password_field :password, :class => 'standard', :autocomplete => 'off' %span.formnote= t('form_notes.new_password') %p = f.label :password_confirmation, t('confirm_new_password'), :class => 'required' %br = f.password_field :password_confirmation, :class => 'standard', :autocomplete => 'off' - if Radiant::Config['reader.use_description?'] %p = f.label :description, t('your_description'), :class => 'optional' %br = f.text_area :description, :class => 'standard', :rows => 8 %span.formnote= t('form_notes.description') - @edit_partials.each do |partial| = render :partial => partial, :locals => {:reader => @reader} %p = submit_tag reader.new_record? ? t('create_account') : t("update_account") or = link_to 'cancel', request.referer