diaspora/app/views/profiles/_edit.haml
2014-01-13 18:14:43 +00:00

66 lines
1.6 KiB
Text

-# Copyright (c) 2010-2011, 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_profile')
= form_tag profile_path, :method => :put, :multipart => true, :id => 'update_profile_form' do
= render 'profiles/edit_public', :profile => profile, :aspect => aspect, :person => person
%hr
%br
%h3
= t('profiles.edit.your_private_profile')
%h4
= t('profiles.edit.your_bio')
= text_area_tag 'profile[bio]', profile.bio, :rows => 5, :placeholder => t('fill_me_out')
%br
%h4
= t('profiles.edit.your_location')
= text_field_tag 'profile[location]', profile.location, :placeholder => t('fill_me_out')
%br
%h4
= t('profiles.edit.your_gender')
= text_field_tag 'profile[gender]', profile.gender, :placeholder => t("fill_me_out")
%br
%h4
= t('profiles.edit.your_birthday')
= select_date profile.birthday, :prompt => true,
:default => true, :order => t('date.order'), :start_year => 2000, :end_year => 1930, :prefix => 'profile[date]'
%br
%br
%h4
= t('search')
%p{:class=>"checkbox_select"}
= check_box_tag 'profile[searchable]', true, profile.searchable
= label_tag 'profile[searchable]', t('profiles.edit.allow_search')
%br
%br
%h4
= t('nsfw')
= t('profiles.edit.nsfw_explanation')
%p{:class=>"checkbox_select"}
= check_box_tag 'profile[nsfw]', true, profile.nsfw?
= label_tag 'profile[nsfw]', t('profiles.edit.nsfw_check')
= t('profiles.edit.nsfw_explanation2')
%br
%br
%br
.submit_block
=yield(:submit_block)