app/views/accounts/_profile_form.html.haml in radiant-reader-extension-3.0.0.rc4 vs app/views/accounts/_profile_form.html.haml in radiant-reader-extension-3.0.0

- old
+ new

@@ -2,63 +2,41 @@ - 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') - = t('reader_extension.checked_fields_public') - - if 1 || Radiant::Config['reader.use_honorifics?'] %p = f.label :honorific, nil, :class => 'optional' %br = f.text_field :honorific, :class => 'standard' - %span.formnote= t('reader_extension.form_notes.honorific') + %span.formnote= t('reader_extension.form_notes.account.honorific') %p - = f.label :name, nil, :class => 'required' - %br - = f.text_field :name, :class => 'standard' - %span.formnote= t('reader_extension.form_notes.name') - - %p - = f.label :email, nil, :class => 'required' - %br - = f.text_field :email, :class => 'standard' - %span.formnote= t('reader_extension.form_notes.email') - - %p = f.label :phone, nil, :class => 'optional' %br = f.text_field :phone, :class => 'standard' - %span.formnote= t('reader_extension.form_notes.phone') + %span.formnote= t('reader_extension.form_notes.account.phone') %p = f.label :mobile, nil, :class => 'optional' %br = f.text_field :mobile, :class => 'standard' - %span.formnote= t('reader_extension.form_notes.mobile') + %span.formnote= t('reader_extension.form_notes.account.mobile') %p = f.label :post_country, nil, :class => 'optional' = f.select :post_country, country_options_for_select(reader.post_country) %br - %span.formnote= t('reader_extension.form_notes.post_country') + %span.formnote= t('reader_extension.form_notes.account.post_country') - - if Radiant::Config['reader.use_postal_organisation?'] + - if Radiant::Config['reader.postal.use_organisation?'] %p = f.label :post_organisation, nil, :class => 'optional' = f.text_field :post_organisation, :class => 'standard' %br - %span.formnote= t('reader_extension.form_notes.post_organisation') + %span.formnote= t('reader_extension.form_notes.account.post_organisation') %p = f.label :post_line1, t('activerecord.attributes.reader.postal_address'), :class => 'optional' %br = f.text_field :post_line1, :class => 'standard' @@ -73,13 +51,19 @@ %br = f.label :postcode, nil, :class => 'optional' = f.text_field :postcode, :class => 'standard' %p + = f.label :description, nil, :class => 'optional' + %br + = f.text_area :description, :class => Radiant::Config['forum.toolbar?'] ? 'rte' : 'standard' + %span.formnote= t('reader_extension.form_notes.account.description') + + %p = f.check_box :unshareable, :class => 'reversed' = f.label :unshareable %br - %span.formnote= t('reader_extension.form_notes.unshareable') + %span.formnote= t('reader_extension.form_notes.account.unshareable') %p = submit_tag reader.new_record? ? t('reader_extension.create_account') : t("reader_extension.update_account") or = link_to 'cancel', request.referer