2015-05-24 12:28:05 +03:00
|
|
|
- content_for :title
|
|
|
|
=> t 'actions.edit.title', model: User.model_name.human
|
2015-05-30 18:53:14 +03:00
|
|
|
= @profile.name
|
2015-05-24 12:28:05 +03:00
|
|
|
|
|
|
|
.row
|
|
|
|
.col-lg-12
|
2015-07-26 14:58:56 +03:00
|
|
|
= simple_nested_form_for [:management, @conference, @user], wrapper: :horizontal_form, html: { class: 'form-horizontal' } do |f|
|
2015-05-24 12:28:05 +03:00
|
|
|
.panel.panel-primary
|
|
|
|
.panel-heading
|
2015-05-30 16:26:48 +03:00
|
|
|
h1.panel-title
|
|
|
|
= t 'views.user.info'
|
2015-07-26 14:58:56 +03:00
|
|
|
= link_to icon(:eye), [:management, @conference, @user], class: 'btn btn-xs btn-info pull-right'
|
2015-05-24 12:28:05 +03:00
|
|
|
|
|
|
|
.panel-body
|
|
|
|
.row
|
|
|
|
.col-lg-12
|
|
|
|
= f.input :email
|
|
|
|
hr
|
|
|
|
.row
|
|
|
|
.col-lg-12
|
2015-07-26 15:58:08 +03:00
|
|
|
= f.simple_fields_for :personal_profiles do |ff|
|
|
|
|
= ff.object.inspect
|
|
|
|
- next if ff.object.conference != @conference
|
|
|
|
|
|
|
|
- if ff.object.picture.present?
|
2015-05-30 15:29:07 +03:00
|
|
|
.col-sm-offset-3.col-sm-9
|
2015-07-26 15:58:08 +03:00
|
|
|
= image_tag ff.object.picture.medium.url, class: 'img-thumbnail'
|
2015-05-30 15:29:07 +03:00
|
|
|
|
2015-05-24 12:28:05 +03:00
|
|
|
= ff.input :picture, wrapper: :horizontal_file_input
|
|
|
|
|
|
|
|
-# Required
|
|
|
|
= ff.input :first_name
|
|
|
|
= ff.input :last_name
|
|
|
|
= ff.input :mobile_phone
|
|
|
|
= ff.input :biography
|
|
|
|
|
|
|
|
-# Optional
|
|
|
|
= ff.input :organisation
|
|
|
|
= ff.input :public_email
|
|
|
|
= ff.input :github
|
|
|
|
= ff.input :twitter
|
|
|
|
|
|
|
|
.panel-footer.text-right
|
|
|
|
= f.submit class: 'btn btn-primary'
|