<%= f.text_field :login, :required => true, :size => 25, :name => "login"%>
<%= l(:label_max_number) %>
<%= f.text_field :lastname, :size => 25, :required => true %>
<%= l(:field_lastname_eg) %>
<%= f.text_field :firstname, :size => 25, :required => true %>
<%= l(:field_firstname_eg) %>
<%= l(:label_company_name)%> *
<%= text_field_tag :enterprise_name, @user.firstname %>
<% if @user.user_extensions.nil? %>
<%= l(:label_gender) %>
<%= select_tag 'gender', "".html_safe, :class => 'gender' %>
<% else %>
<% 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 %>
<% end %>
<%= l(:field_occupation) %>
<% if User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %>
<% elsif User.current.user_extensions.school.nil? %>
<% else %>
<% end %>
<%= l(:lable_school_list)%>
<% @ss = School.find_by_sql("select distinct province from schools") %>
<% @ss.each do |s| %>
-
<%= s.province %>
<% end %>
<%= f.text_field :mail, :required => true %>
<%= f.select :language, :Chinese => :zh, :English => :en %>
<% province = User.current.user_extensions.location %>
<% city = User.current.user_extensions.location_city %>
<% identity = User.current.user_extensions.identity %>
<% occupation1 = User.current.user_extensions.occupation %>
<% occupation = User.current.user_extensions.occupation %>
<% title = User.current.user_extensions.technical_title %>
<% language = User.current.language %>
<%= l(:label_location) %>
<% if Setting.openid? %>