diaspora/app/views/users/getting_started/_step_1.html.haml
2010-11-12 06:06:15 +01:00

48 lines
1.5 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.
= form_for @person, :html => { :multipart => true } do |person|
%h3
= t('.your_profile')
.description
= t('.info')
= person.error_messages
= person.fields_for :profile do |profile|
%h4
= t('.your_name')
= profile.text_field :first_name, :value => @profile.first_name, :placeholder => t('.first_name')
= profile.text_field :last_name, :value => @profile.last_name, :placeholder => t('.last_name')
%h4
= t('.your_gender')
%br
= profile.text_field :gender, :value => @profile.gender, :placeholder => t("fill_me_out")
%h4
= t('.your_birthday')
%br
= select_date @person.profile.birthday, :prompt => true, :default => true, :order => t('date.order'), :start_year => 2000, :end_year => 1930
%h4
= t('.your_bio')
= profile.text_area :bio, :value => @profile.bio, :rows => 5, :placeholder => t('fill_me_out')
%h4
= t('.your_photo')
= render 'people/profile_photo_upload', :form => profile
%h4
= t('search')
%p{:class=>"checkbox_select"}
= profile.label :searchable, t('.allow_searchable')
= profile.check_box :searchable, {:checked => @person.profile.searchable}, true, false
= hidden_field_tag :getting_started, @step
.submit_block
= person.submit "#{t('.save_and_continue')} →"