<%= f.text_field :lastname, :required => true %>
<%=l(:field_lastname_eg)%>
<%= f.text_field :firstname, :required => true %>
<%=l(:field_firstname_eg)%>
企业名<%= text_field_tag :enterprise_name, @user.firstname %>
<% 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 %>
<% unless @user.user_extensions.nil?%>
<%= 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%>
<%= 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 %>
<%= 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? %>