<% if @user.new_record? %>
  <%= render :partial => "new_form", :locals => {:f => f} %>
<% end %>
[名前]<%= font_coution '※'%>
<br/>
<% if !@user.new_record? %>
  <%= h @user.full_real_name %>
  <%= f.select :real_name_visibility, User.select_options_for_visibilities(:unpubliced, :friend_only, :member_only, :publiced) %>
  <%= f.hidden_field :last_real_name, :size => 6 %>
  <%= f.hidden_field :first_real_name, :size => 6 %>
  <br/>
  ※変更したい場合は[<%= link_to "名前変更依頼", edit_request_new_name_users_path %>]
<% else %>
  <%= f.text_field :last_real_name, :size => 6 %>
  <%= f.text_field :first_real_name, :size => 6 %>
  <%= f.select :real_name_visibility, User.select_options_for_visibilities(:unpubliced, :friend_only, :member_only, :publiced) %>
<% end %>
<br/>

<%= display_form_attr_name(User, "name") %>
<br/>
<%= f.text_field :name, :id => "nickname" %>
<br/>

<%= display_form_attr_name(User, "gender") %>
<br/>
<% [:male, :female].each do |key| %>
  <%= f.radio_button :gender, User::GENDERS[key] %>
  <%= f.label "gender_#{User::GENDERS[key]}", t("user.gender_label.#{key}") %>
<% end %>
<br/>

<%= display_form_attr_name(User, "birthday") %>
<br/>
<% now = Time.now %>
<%= f.date_select(:birthday, :start_year => now.year-100, :end_year => now.year).untaint  %>
<%= f.select :birthday_visibility, User.select_options_for_visibilities(:unpubliced, :friend_only, :member_only, :publiced) %>
<br/>

<%= display_form_attr_name(User, "blood_type") %>
<br/>
<% [:a, :b, :o, :ab].each do |key| %>
  <%= f.radio_button :blood_type, User::BLOOD_TYPES[key] %>
  <%= f.label "blood_type_#{User::BLOOD_TYPES[key]}", t("user.blood_type_label.#{key}") %>
<% end %>
<%= f.radio_button :blood_type, nil %>
<%= f.label "blood_type", t("user.blood_type_label.none") %>
<br/>

[現住所]<%= font_coution '※'%>
<br/>
〒<%= f.text_field :now_zipcode, :size => 8, :maxlength => 8, :id => :now_zipcode %>
<br/>
<%= f.select :now_prefecture_id, Prefecture.select_options, {}, :id => :select_now_prefecture %>
<br/>
市区町村（例：姫路市）
<br/>
<%= f.text_field :now_city, :size => 10, :id => :now_city %>
<br/>
町名・番地（例:西今宿3-6-3）
<br/>
<%= f.text_field :now_street, :size => 50, :id => :now_street %>
<br/>
<%= f.select :now_address_visibility, User.select_options_for_visibilities(:unpubliced, :friend_only, :member_only, :publiced) %>
<br/>

<%= display_form_attr_name(User, "phone_number") %>
<br/>
<%= f.text_field :phone_number %>
<br/>

<%= display_form_attr_name(User, "home_prefecture") %>
<br/>
<%= f.select :home_prefecture_id, Prefecture.select_options, :include_blank => true %>
<br/>

<%= display_form_attr_name(User, "hobbies") %>
<br/>
<%= hobby_checkboxes_mobile %>
<br/>

<%= display_form_attr_name(User, "job") %>
<br/>
<%= f.select :job_id, Job.select_options, :include_blank => true %>
<%= f.select :job_visibility, User.select_options_for_visibilities(:unpubliced, :friend_only, :member_only, :publiced) %>
<br/>

<%= display_form_attr_name(User, "affiliation") %>
<br/>
<%= f.text_field :affiliation, :size => "20" %>
<%= f.select :affiliation_visibility, User.select_options_for_visibilities(:unpubliced, :friend_only, :member_only, :publiced) %>
<br/>

<%= display_form_attr_name(User, "message") %>
<br/>
<%= f.text_area :message, :rows => 3, :cols => 20 %>
<br/>

<%= display_form_attr_name(User, "detail") %>
<br/>
<%= f.text_area :detail, :rows => 3, :cols => 20 %>
<br />
<span style="font-size: 80%;">※ログインしている方のみ閲覧できます。</span>
<br/>
