2014-11-02 11:52:19 -08:00
|
|
|
|
.container.j2-page
|
|
|
|
|
= render 'user/settings_tabs'
|
|
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
2014-12-10 10:38:09 -08:00
|
|
|
|
.alert.alert-info
|
|
|
|
|
justask currently only supports avatars over
|
|
|
|
|
%a{href: "https://en.gravatar.com"} Gravatar
|
|
|
|
|
, after you set yours up, use the E-Mail you are using for it on here as well, we will directly use this image then!
|
2014-11-11 11:01:24 -08:00
|
|
|
|
.panel.panel-default
|
|
|
|
|
.panel-body
|
2014-12-07 06:53:19 -08:00
|
|
|
|
= bootstrap_form_for(resource, as: resource_name, url: '/settings/account', html: { method: :put }) do |f|
|
2014-12-07 07:04:05 -08:00
|
|
|
|
/ Password field modal
|
|
|
|
|
#modal-passwd.modal.fade{"aria-hidden" => "true", "aria-labelledby" => "modal-passwd-label", :role => "dialog", :tabindex => "-1"}
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%button.close{"data-dismiss" => "modal", :type => "button"}
|
|
|
|
|
%span{"aria-hidden" => "true"} ×
|
|
|
|
|
%span.sr-only Close
|
|
|
|
|
%h4#modal-passwd-label.modal-title Save account changes
|
|
|
|
|
.modal-body
|
|
|
|
|
= f.password_field :current_password, autocomplete: "off", label: "Current password", help: "We need your current password to confirm your changes"
|
|
|
|
|
.modal-footer
|
|
|
|
|
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Cancel
|
|
|
|
|
%button.btn.btn-primary{:type => "submit"} Save changes
|
|
|
|
|
|
2014-11-11 11:01:24 -08:00
|
|
|
|
= devise_error_messages!
|
2014-11-02 11:52:19 -08:00
|
|
|
|
|
2014-11-11 11:01:24 -08:00
|
|
|
|
= f.text_field :screen_name, autofocus: true, label: "User name"
|
2014-11-02 11:52:19 -08:00
|
|
|
|
|
2014-11-11 11:01:24 -08:00
|
|
|
|
= f.email_field :email, label: "Email address"
|
|
|
|
|
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
|
|
|
|
%div
|
|
|
|
|
Currently waiting confirmation for: #{resource.unconfirmed_email}
|
2014-11-02 11:52:19 -08:00
|
|
|
|
|
2014-11-11 11:01:24 -08:00
|
|
|
|
= f.password_field :password, autocomplete: "off", label: "Password", help: "Leave this blank if you don't want to change it"
|
|
|
|
|
= f.password_field :password_confirmation, autocomplete: "off", label: "Confirm password"
|
2014-11-02 11:52:19 -08:00
|
|
|
|
|
2014-12-07 07:04:05 -08:00
|
|
|
|
%button.btn.btn-primary{"data-target" => "#modal-passwd", "data-toggle" => "modal", :type => "button"}
|
|
|
|
|
Save changes
|
2014-11-02 11:52:19 -08:00
|
|
|
|
|
2014-11-11 11:01:24 -08:00
|
|
|
|
%hr/
|
|
|
|
|
%p
|
|
|
|
|
Unsatisfied?
|
2014-12-07 07:04:05 -08:00
|
|
|
|
=button_to "Delete my account", '/settings/account', data: { confirm: "Are you sure?" }, method: :delete, class: "btn btn-danger btn-xs"
|
2014-11-02 11:52:19 -08:00
|
|
|
|
|
2014-11-17 04:19:59 -08:00
|
|
|
|
= link_to "Back", :back
|
|
|
|
|
|
|
|
|
|
.visible-xs= render "shared/links"
|