<%= stylesheet_link_tag 'new_user'%> <%= stylesheet_link_tag 'leftside'%>
欢迎加入Trustie高校创新实践社区,老师、学生和科研人员可以在此开展各种在线协同学习、协同作业、协同开发等活动。Trustie是在中国推行大规模开放在线研究模式(MOORE)的支撑平台。
  • 登录
<%= flash.empty? || flash[:error].nil? ? "" : flash[:error].html_safe %>
<%= form_tag(signin_path,:id=>'main_login_form',:method=>'post') do %> <%= back_url_hidden_field_tag %>
<%= text_field_tag 'username', params[:username], :tabindex => '1' , :class=>'loginSignBox',:placeholder=>'请输入邮箱地址或昵称'%>
<% if Setting.openid? %>
<%= text_field_tag "openid_url", nil, :tabindex => '3',:placeholder=>'请输入OpenId URL' %>
<% end %>
<%= password_field_tag 'password', nil, :tabindex => '2',:class=>'loginSignBox' ,:placeholder=>'请输密码'%>
<% if Setting.autologin? %>
<%= check_box_tag 'autologin', 1, true, :tabindex => 4 %>
<%= l(:label_stay_logged_in) %> <% end %> <% if Setting.lost_password? %> 忘记密码? <% end %>
<% end %>
  • 注册<%= link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %>
<%= form_for :user, :url => register_path,:method=>'post',:html=>{:id=>'main_reg_form'} do |f| %> <%= error_messages_for 'user' %>
<%= f.text_field :mail,:size => 25, :class=>'loginSignBox' ,:placeholder=>"请输入邮箱地址"%>
<%= f.password_field :password, :size => 25,:placeholder=>"请输入密码",:class=>'loginSignBox' %>
<%= f.password_field :password_confirmation, :size => 25,:placeholder=>"请再次输入密码",:class=>'loginSignBox' %>
<%= f.text_field :login, :size => 25,:placeholder=>"请输入用户昵称",:class=>'loginSignBox'%>
我已阅读并接受Trustie服务协议条款
<% end %>