<%= f.text_field :lastname, :required => true %>
<%= l(:field_lastname_eg) %>
<%= f.text_field :firstname, :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 %>
<% if User.current.user_extensions.school.nil? %>
<%= l(:field_occupation) %>
*
<% else %>
<%= l(:field_occupation) %> *
<% 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 %>
<% title = User.current.user_extensions.technical_title %>
<% language = User.current.language %>
<%= l(:label_location) %>
<% unless @user.user_extensions.identity == 2 %>
<%= l(:label_identity) %>
<% unless User.current.user_extensions.student_id.nil? %>
<%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => "请输入学号" %>
<% else %>
<%= text_field_tag :no, nil, :placeholder => "请输入学号" %>
<% end %>
<% else %>
<% end %>
<% if Setting.openid? %>