diaspora/app/views/users/edit.html.haml
danielgrippi 60a60733df Merge branch 'master' into follow
Conflicts:
	app/controllers/aspects_controller.rb
	app/controllers/contacts_controller.rb
	app/controllers/people_controller.rb
	app/controllers/photos_controller.rb
	app/controllers/tags_controller.rb
	app/helpers/notifications_helper.rb
	app/models/notifications/new_request.rb
	app/models/user_preference.rb
	public/javascripts/view.js
	spec/controllers/aspects_controller_spec.rb
	spec/controllers/contacts_controller_spec.rb
	spec/controllers/home_controller_spec.rb
	spec/controllers/post_visibilities_controller_spec.rb
	spec/controllers/requests_controller_spec.rb
	spec/mailers/notifier_spec.rb
	spec/models/user_spec.rb
2011-05-12 15:49:51 -07:00

129 lines
3.1 KiB
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
- content_for :page_title do
= t('.edit_account')
#section_header
%h2
= t('settings')
= render 'shared/settings_nav'
.span-12.prepend-5.last
%h2
= t('account')
.span-5.append-1
%h3
= t('.your_handle')
%p
%b= current_user.diaspora_handle
.span-5.last
%h3
= t('.your_email')
%p
= current_user.email
%br
%br
%hr
%br
%h3
= t('.change_password')
= form_for 'user', :url => user_path, :html => { :method => :put } do |f|
= f.error_messages
%p
= f.label :current_password, t('.current_password')
= f.password_field :current_password
%p
= f.label :password, t('.new_password')
= f.password_field :password
%p
= f.label :password_confirmation, t('password_confirmation')
= f.password_field :password_confirmation
.submit_block
= link_to t('cancel'), edit_user_path
= t('or')
= f.submit t('.change_password')
%br
%br
%hr
%br
%h3
= t('.change_language')
= form_for 'user', :url => user_path, :html => { :method => :put } do |f|
= f.error_messages
%p
= f.select :language, available_language_options
= f.submit t('.change_language')
%br
%br
%hr
%br
%h3
= t('.receive_email_notifications')
= form_for 'user', :url => user_path, :html => { :method => :put } do |f|
= f.error_messages
= f.fields_for :email_preferences do |type|
#email_prefs
%p.checkbox_select
= type.label t('.also_commented')
= type.check_box :also_commented, {:checked => @email_prefs['also_commented']}, false, true
%br
%p.checkbox_select
= type.label t('.mentioned')
= type.check_box :mentioned, {:checked => @email_prefs['mentioned']}, false, true
%br
%p.checkbox_select
= type.label t('.comment_on_post')
= type.check_box :comment_on_post, {:checked => @email_prefs['comment_on_post']}, false, true
%br
%p.checkbox_select
= type.label t('.private_message')
= type.check_box :private_message, {:checked => @email_prefs['private_message']}, false, true
%br
%p.checkbox_select
= type.label t('.started_sharing')
= type.check_box :started_sharing, {:checked => @email_prefs['started_sharing']}, false, true
%br
%p.checkbox_select
= type.label t('.liked')
= type.check_box :liked, {:checked => @email_prefs['liked']}, false, true
%br
= f.submit t('.change')
%br
%br
%hr
%br
#account_data.span-5.append-2
%h3
= t('.export_data')
= link_to t('.download_xml'), export_user_path, :class => "button"
%br
= link_to t('.download_photos'), export_photos_user_path, :class => "button"
.span-5.last
%h3
= t('.close_account')
= link_to t('.close_account'), user_path,
:confirm => t('are_you_sure'), :method => :delete,
:class => "button"