<%= f.text_field :firstname, :required => true %>
<%= f.text_field :lastname, :required => true %>
<% unless @user.user_extensions.nil? %>
<% if @user.user_extensions.gender == 0 %>
<%= l(:label_gender) %> <%= select_tag 'gender', "".html_safe ,:class =>'gender' %>
<% else %>
<%= l(:label_gender) %> <%= select_tag 'gender', "".html_safe ,:class =>'gender' %>
<% end %>
<% else %>
<%= l(:label_gender) %> <%= select_tag 'gender', "".html_safe ,:class =>'gender' %>
<% end %>
<%= f.text_field :mail, :required => true %>
<%= l(:field_occupation)%><%= text_field_tag "occupation", @user.user_extensions.occupation, :class => 'occupation'%>
<%else%>
<%= l(:field_occupation)%><%= text_field_tag "occupation", nil, :class => 'occupation'%>
<%end%>
<%= l(:label_location) %>
<% if Setting.openid? %>
<%= f.text_field :identity_url %>
<% end %>
<% @user.custom_field_values.select(&:editable?).each do |value| %>