Orbit/app/views/devise/sessions/new.html.erb

36 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2012-02-19 08:33:22 +00:00
<h1 class="login-logo"><%= t(:ruling_site) %></h1>
<div id="signin-header">
<h3><%= t(:login) %></h3>
</div>
<div id="container" class="sign-in">
<%= form_for resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => 'user_new form-horizontal'} do |f| %>
2012-02-19 08:33:22 +00:00
<div class="content">
<% flash.each do |key, msg| %>
<%= content_tag :span, msg, :class => [key, "notice label label-warning"] %>
<% end %>
2012-02-19 08:33:22 +00:00
<p class="alert hide">You need to sign in or sign up before continuing.</p>
2013-07-18 14:36:51 +00:00
<% @request_hosts = request.host_with_port.split(".") %>
<a href="https://adfs.ntu.edu.tw/adfs/ls/?wa=wsignin1.0&wtrealm=https://galogin.ntu.edu.tw/saml_login&wctx=<%= @request_hosts[0] %>" class="btn btn-primary" style="width: 310px;margin-top: 10px;">使用計中帳號登入</a>
<p style="margin: 40px 0 20px; position: relative; border-bottom: 1px solid #DDD;">
<span style="position: absolute; width: 140px; left: 50%; margin-left: -70px; font-size: 14px; top: -9px; background-color: #fff; text-align: center;">或使用本站帳號登入</span>
</p>
2012-02-19 08:33:22 +00:00
<div class="main">
2012-02-28 20:56:32 +00:00
<div class="control-group clear">
2013-04-26 02:43:58 +00:00
<%= f.label :user_id ,t("users.user_id")%>
2013-07-18 14:36:51 +00:00
<%= f.text_field :user_id, :placeholder => t("users.user_id"), :style => "width: 326px;" %>
2012-02-19 08:33:22 +00:00
<span class="help-inline">Please correct the error</span>
</div>
<div class="control-group clear">
<%= f.label :password,t("password") %>
2013-07-18 14:36:51 +00:00
<%= f.password_field :password, :placeholder => t(:dots), :style => "width: 326px;" %>
2012-02-19 08:33:22 +00:00
<span class="help-inline">Please correct the error</span>
<%= link_to t(:forgot_password), new_user_password_path, :class => 'pull-right forgot hide' %>
2012-02-19 08:33:22 +00:00
</div>
</div>
</div>
<div class="form-actions clear">
<%= content_tag :button, t(:login), :type => :submit, :class => 'btn btn-primary pull-right' %>
</div>
<% end %>
</div>