rosa-build/app/views/users/settings/private.html.haml

32 lines
1006 B
Plaintext
Raw Normal View History

2014-01-21 04:51:49 +00:00
-set_meta_tags title: t('layout.users.settings')
%h3.fix.bpadding10= t('layout.users.private_settings_header')
2014-01-21 04:51:49 +00:00
= form_for @user, url: private_settings_path, html: {class: :form} do |f|
.leftlist= f.label :current_password
.rightlist= f.password_field :current_password
.both
.leftlist= f.label :password
.rightlist= f.password_field :password
.both
.leftlist= f.label :password_confirmation
.rightlist= f.password_field :password_confirmation
.both
.leftlist
\ 
2014-01-21 04:51:49 +00:00
.rightlist= submit_tag t('layout.save'), data: {'disable-with' => t('layout.saving')}
.both
2013-10-16 18:30:40 +01:00
%br
2014-05-15 14:21:46 +01:00
= form_for @user, url: reset_auth_token_settings_path, html: { class: :form, method: :put } do |f|
2013-10-16 18:30:40 +01:00
.leftlist= f.label :authentication_token
.rightlist= @user.authentication_token
.both
.leftlist
2014-01-21 04:51:49 +00:00
.rightlist= submit_tag t('layout.users.reset_token'), data: {'disable-with' => t('layout.saving')}
2013-10-16 18:30:40 +01:00
.both
:javascript
$('article .right').addClass('middlepadding');
- content_for :sidebar, render('sidebar')