diaspora/app/views/people/_edit.html.haml
2010-12-10 16:52:35 +01:00

51 lines
1.6 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_profile')
= form_tag person_path(@person), :method => :put, :multipart => true, :id => 'update_profile_form' do
%h3
= t('people.edit.your_profile')
.description
= t('people.edit.info_available_to')
= error_messages_for @person
%h4
= t('people.edit.your_name')
= text_field_tag 'profile[first_name]', @profile.first_name, :placeholder => t('people.edit.first_name')
= text_field_tag 'profile[last_name]', @profile.last_name, :placeholder => t('people.edit.last_name')
%h4
= t('people.edit.your_gender')
%br
= text_field_tag 'profile[gender]', @profile.gender, :placeholder => t("fill_me_out")
%h4
= t('people.edit.your_birthday')
%br
= select_date @person.profile.birthday, :prompt => true,
:default => true, :order => t('date.order'), :start_year => 2000, :end_year => 1930, :prefix => 'profile[date]'
%h4
= t('people.edit.your_bio')
= text_area_tag 'profile[bio]', @profile.bio, :rows => 5, :placeholder => t('fill_me_out')
%h4
= t('people.edit.your_photo')
= render 'photos/new_profile_photo'
%br
%h4
= t('search')
%p{:class=>"checkbox_select"}
= label_tag 'profile[searchable]', t('people.edit.allow_search')
= check_box_tag 'profile[searchable]', true, @person.profile.searchable
= hidden_field_tag :getting_started, @step if @step
.submit_block
=yield(:submit_block)