<%= labelled_form_for :user, @user, :url => {:action => "account"}, :html => {:id => 'my_account_form', :method => :post} do |f| %>
<% if( @act.nil? || @act != 'password') %>
<%= render_flash_messages %>
<%= error_messages_for 'user',@user.user_extensions %>
<% end %>
- 登录名 : *
- 邮箱 : *
- 身份 :
- 姓氏 : *
- 名字 : *
- 组织名 : *
- 性别 :
- 工作单位 :
- 地区 :
- 邮件通知 :
- 个人签名 :
- 个人简介 :
-
- <%= f.text_field :login,:no_label=>true, :required => true, :nh_required=>"1", :name => "login",:class=>"w210"%>
- <%= f.text_field :mail,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210"%>
-
<% if !User.current.user_extensions.nil? && !User.current.user_extensions.student_id.nil? %>
<%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => l(:label_account_identity_studentID),:style=>"width:127px;" %>
<% else %>
<%= text_field_tag :no, nil, :placeholder => l(:label_account_identity_studentID),:style=>"60px" %>
<% end %>
- <%= f.text_field :lastname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
- <%= f.text_field :firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
- <%= text_field_tag :enterprise_name,@user.firstname,:no_label=>true, :required => true,:nh_required=>"1",:class=>"w210" %>
-
-
<% if User.current.user_extensions.nil? %>
readonly>
<% elsif User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %>
readonly>
<% elsif User.current.user_extensions.school.nil? %>
readonly>
<% else %>
<% end %>
-
-
<%= select_tag( 'user[mail_notification]', options_for_select( user_mail_notification_options(@user), @user.mail_notification) ) %>
- <%= f.select :language, :Chinese => :zh, :English => :en %>
-
确认
<% end %>
<%= form_tag({:action => "password"},:id => 'my_password_form') do %>
<% if( !@act.nil? && @act == 'password') %>
<%= render_flash_messages %>
<%= error_messages_for 'user' %>
<% end %>
<% end %>