2015-05-30 18:24:12 +03:00
|
|
|
- content_for(:title) { ":: #{t :edit_personal_profile}" }
|
2014-09-01 12:57:27 +03:00
|
|
|
|
2014-08-31 19:29:19 +03:00
|
|
|
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, multipart: true }) do |f|
|
2014-08-31 14:57:34 +03:00
|
|
|
.form_inputs
|
2015-05-30 18:24:12 +03:00
|
|
|
h2.entry-title = t :personal_profile
|
2014-08-31 16:02:56 +03:00
|
|
|
= f.error_notification
|
2015-05-30 18:24:12 +03:00
|
|
|
= f.simple_fields_for :personal_profile do |ff|
|
2014-09-04 13:02:09 +03:00
|
|
|
= ff.input :picture, as: :image_preview, input_html: {preview_version: :thumb}, required: true
|
2014-08-31 18:58:07 +03:00
|
|
|
= ff.input :first_name, autofocus: true
|
2014-08-31 14:57:34 +03:00
|
|
|
= ff.input :last_name
|
|
|
|
= ff.input :public_email
|
|
|
|
= ff.input :organisation
|
|
|
|
= ff.input :github
|
|
|
|
= ff.input :twitter
|
2015-05-30 18:24:12 +03:00
|
|
|
= ff.input :mobile_phone, input_html: {value: resource.personal_profile.mobile_phone.try(:phony_formatted, format: :international)}
|
2014-08-31 14:57:34 +03:00
|
|
|
= ff.input :biography
|
|
|
|
|
2014-08-31 16:02:56 +03:00
|
|
|
.form-inputs
|
2014-08-31 21:46:03 +03:00
|
|
|
h3.entry-title = t :login_data
|
2014-08-31 18:58:07 +03:00
|
|
|
= f.input :email, required: true
|
2014-08-31 16:02:56 +03:00
|
|
|
|
|
|
|
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
|
|
|
p
|
2014-08-31 21:46:03 +03:00
|
|
|
= t :expected_validation, email: resource.unconfirmed_email
|
2014-08-31 16:02:56 +03:00
|
|
|
|
2014-08-31 21:46:03 +03:00
|
|
|
= f.input :password, autocomplete: "off", hint: t(:pass_update_hint1), required: false
|
2014-08-31 16:02:56 +03:00
|
|
|
= f.input :password_confirmation, required: false
|
2014-09-01 12:17:56 +03:00
|
|
|
= f.input :current_password, hint: t(:pass_update_hint2), required: true
|
2014-08-31 16:02:56 +03:00
|
|
|
|
2014-08-31 14:57:34 +03:00
|
|
|
.form-actions
|
2014-08-31 21:46:03 +03:00
|
|
|
= f.button :submit, t(:update)
|