asciinema.org/app/views/users/edit.html.slim
2013-11-20 21:33:26 +01:00

21 lines
713 B
Plaintext

.container
= form_for @user, html: { class: 'form-horizontal' } do |f|
legend Your account
.form-group
= f.label :nickname, 'Username *', class: 'col-sm-2 control-label'
.col-sm-4 = f.text_field :nickname, class: 'form-control'
.form-group
= f.label :email, 'E-mail *', class: 'col-sm-2 control-label'
.col-sm-4 = f.email_field :email, class: 'form-control'
.form-group
= f.label :name, 'Real name', class: 'col-sm-2 control-label'
.col-sm-4 = f.text_field :name, class: 'form-control'
.form-group
.col-sm-offset-2.col-sm-4
= f.submit 'Save', class: 'btn btn-primary'
= link_to 'Cancel', profile_path(current_user), class: 'btn'