cddab7a27e
This will probably not be done through management, but 1) there should still be a way to update a user through the management interface, and 2) it'll be easy to copy this code over to the public interface later.
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
- content_for :title
|
|
=> t 'actions.edit.title', model: User.model_name.human
|
|
= @user.name
|
|
|
|
.row
|
|
.col-lg-12
|
|
= simple_nested_form_for [:management, @user], wrapper: :horizontal_form, html: { class: 'form-horizontal' } do |f|
|
|
.panel.panel-primary
|
|
.panel-heading
|
|
h1.panel-title = t 'views.user.info'
|
|
|
|
.panel-body
|
|
.row
|
|
.col-lg-12
|
|
= f.input :email
|
|
hr
|
|
.row
|
|
.col-lg-12
|
|
= f.simple_fields_for :speaker_profile do |ff|
|
|
= 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'
|