Update user settings page to new layout

openid
Marcin Kulik 11 years ago
parent f9717f1aa5
commit 78700f59c1

@ -1,17 +1,20 @@
section.supplimental
.wrapper
h1 Your account
.container
= form_for @user, html: { class: 'form-horizontal' } do |f|
legend Your account
= simple_form_for(@user) do |f|
= f.error_notification
.form-group
= f.label :nickname, 'Username *', class: 'col-sm-2 control-label'
.col-sm-10 = f.text_field :nickname, class: 'form-control'
.form-inputs
= f.input :nickname, label: 'Username'
= f.input :email
= f.input :name, label: 'Real name'
.form-group
= f.label :email, 'E-mail *', class: 'col-sm-2 control-label'
.col-sm-10 = f.email_field :email, class: 'form-control'
.form-actions
= f.button :submit, 'Save'
= link_to 'Cancel', profile_path(current_user), class: 'btn'
.form-group
= f.label :name, 'Real name', class: 'col-sm-2 control-label'
.col-sm-10 = f.text_field :name, class: 'form-control'
.vertical-expander
.form-group
.col-sm-offset-2.col-sm-10
= f.submit 'Save', class: 'btn btn-primary'
= link_to 'Cancel', profile_path(current_user), class: 'btn'

Loading…
Cancel
Save