2013-11-18 11:47:16 +00:00
|
|
|
.container
|
|
|
|
= form_for @user, html: { class: 'form-horizontal' } do |f|
|
|
|
|
legend Your account
|
2013-10-23 08:00:26 +00:00
|
|
|
|
2013-11-18 11:47:16 +00:00
|
|
|
.form-group
|
|
|
|
= f.label :nickname, 'Username *', class: 'col-sm-2 control-label'
|
2013-11-18 13:38:33 +00:00
|
|
|
.col-sm-4 = f.text_field :nickname, class: 'form-control'
|
2013-10-23 08:00:26 +00:00
|
|
|
|
2013-11-18 11:47:16 +00:00
|
|
|
.form-group
|
|
|
|
= f.label :email, 'E-mail *', class: 'col-sm-2 control-label'
|
2013-11-18 13:38:33 +00:00
|
|
|
.col-sm-4 = f.email_field :email, class: 'form-control'
|
2013-10-23 08:00:26 +00:00
|
|
|
|
2013-11-18 11:47:16 +00:00
|
|
|
.form-group
|
|
|
|
= f.label :name, 'Real name', class: 'col-sm-2 control-label'
|
2013-11-18 13:38:33 +00:00
|
|
|
.col-sm-4 = f.text_field :name, class: 'form-control'
|
2013-10-23 08:00:26 +00:00
|
|
|
|
2013-11-18 11:47:16 +00:00
|
|
|
.form-group
|
2013-11-18 13:38:33 +00:00
|
|
|
.col-sm-offset-2.col-sm-4
|
2013-11-18 11:47:16 +00:00
|
|
|
= f.submit 'Save', class: 'btn btn-primary'
|
|
|
|
= link_to 'Cancel', profile_path(current_user), class: 'btn'
|