2014-03-17 16:36:32 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2014-06-26 15:43:24 +03:00
|
|
|
= semantic_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
|
|
|
|
= f.inputs name: 'Profile' do
|
|
|
|
|
= f.input :name, as: :string
|
|
|
|
|
= f.input :nickname, as: :string
|
|
|
|
|
= f.input :affiliation, as: :string,
|
|
|
|
|
hint: 'This could be a company, a user group, or nothing at all.'
|
|
|
|
|
= f.input :biography, input_html: {rows: 5,
|
|
|
|
|
'onkeyup' => "word_count(this, 'biography-count', 150)"}
|
|
|
|
|
You have used
|
|
|
|
|
%span#biography-count #{current_user.biography_word_count}
|
|
|
|
|
words. Biographies are limited to 150 words.
|
|
|
|
|
%br
|
|
|
|
|
%br
|
|
|
|
|
= f.inputs name: 'OpenID' do
|
2014-06-18 16:58:30 +03:00
|
|
|
%h4
|
2014-07-14 16:16:02 +03:00
|
|
|
Currently the following openIDs are associated with your account
|
2014-06-18 16:58:30 +03:00
|
|
|
- @openids.each do |openid|
|
2014-07-20 19:43:16 +03:00
|
|
|
%li= "#{openid.provider}:#{openid.email}"
|
2014-06-18 16:58:30 +03:00
|
|
|
%br
|
2014-07-14 16:16:02 +03:00
|
|
|
- if User.omniauth_providers.present?
|
|
|
|
|
%h4
|
|
|
|
|
To add an openID with a different email address to your account, sign in with your
|
|
|
|
|
openID while logged in to OSEM
|
2014-07-23 14:55:06 +02:00
|
|
|
#openidlinks
|
|
|
|
|
= render 'devise/shared/openid'
|
2014-06-18 16:58:30 +03:00
|
|
|
|
2014-06-26 15:43:24 +03:00
|
|
|
= f.inputs name: 'Account' do
|
2014-06-26 17:41:46 +03:00
|
|
|
= f.input :email, required: false, input_html: {autocomplete: "off"}
|
2014-06-26 15:43:24 +03:00
|
|
|
= f.input :password, hint: "(Leave blank if you don't want to change it)", input_html: {autocomplete: 'off'}
|
|
|
|
|
= f.input :password_confirmation, input_html: {autocomplete: 'off'}
|
|
|
|
|
= f.input :current_password, input_html: {autocomplete: 'off'},
|
|
|
|
|
hint: '(we need your current password to confirm password or email changes)'
|
|
|
|
|
= f.action :submit, as: :button, label: 'Update', button_html: {class: 'btn btn-primary'}
|