2014-01-21 04:51:49 +00:00
|
|
|
|
-set_meta_tags title: t('layout.users.settings')
|
2012-05-02 10:18:07 +01:00
|
|
|
|
%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|
|
2012-05-02 10:18:07 +01:00
|
|
|
|
.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')}
|
2012-05-02 10:18:07 +01:00
|
|
|
|
.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
|
2012-05-02 10:18:07 +01:00
|
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
|
$('article .right').addClass('middlepadding');
|
|
|
|
|
|
|
|
|
|
- content_for :sidebar, render('sidebar')
|