asciinema.org/app/views/users/edit.html.slim

21 lines
713 B
Plaintext
Raw Normal View History

.container
= form_for @user, html: { class: 'form-horizontal' } do |f|
legend Your account
2013-10-23 08:00:26 +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
.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
.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
.form-group
2013-11-18 13:38:33 +00:00
.col-sm-offset-2.col-sm-4
= f.submit 'Save', class: 'btn btn-primary'
= link_to 'Cancel', profile_path(current_user), class: 'btn'