63 lines
2.7 KiB
Plaintext
63 lines
2.7 KiB
Plaintext
|
|
|
|
<div class="sign-in have-other-sign-in">
|
|
|
|
<% flash.each do |key, msg| %>
|
|
<%= content_tag :p, msg, :class => [key, "alert alert-error"] %>
|
|
<% end %>
|
|
|
|
|
|
<div class="form">
|
|
<h3 class="login-logo"><%= t(:login) %></h3>
|
|
<div class="other-sign-in">
|
|
<% @request_hosts = request.host_with_port.split(".") %>
|
|
<a class="btn btn-primary" type="submit" href="https://adfs.ntu.edu.tw/adfs/ls/?wa=wsignin1.0&wtrealm=https://management.ntu.edu.tw/saml_login&wctx=<%= @request_hosts[0] %>">使用計中帳號登入</a>
|
|
<p>or</p>
|
|
</div>
|
|
<div class="form-block">
|
|
<div class="form-list clearfix">
|
|
<%= form_for resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => 'content'} do |f| %>
|
|
<div class="control-group clear">
|
|
<label for="user_email">
|
|
<i class="icon-user"></i>
|
|
</label>
|
|
<%= f.text_field :user_id, :placeholder => t("users.user_id") %>
|
|
</div>
|
|
<div class="control-group clear">
|
|
<label for="user_password">
|
|
<i class="icon-lock"></i>
|
|
</label>
|
|
<%= f.password_field :password, :placeholder => t(:dots) %>
|
|
</div>
|
|
<!-- <label class="checkbox">
|
|
<input type="checkbox" value="">
|
|
<small>Remember me</small>
|
|
</label> -->
|
|
<%= content_tag :button, t(:login), :type => :submit, :class => 'btn btn-primary' %>
|
|
<% end %>
|
|
|
|
<!-- <form class="content" accept-charset="UTF-8" action="/users/sign_in" method="post">
|
|
<div class="control-group clear">
|
|
<label for="user_email">
|
|
<i class="icon-user"></i>
|
|
</label>
|
|
<input type="text" id="user_id" name="user[id]" placeholder="帳號" />
|
|
</div>
|
|
<div class="control-group clear">
|
|
<label for="user_password">
|
|
<i class="icons-mail"></i>
|
|
</label>
|
|
<input type="text" id="user_email" name="user[email]" placeholder="電子郵件" />
|
|
</div>
|
|
<button class="btn btn-primary" type="submit">Submit</button>
|
|
</form> -->
|
|
</div>
|
|
<!-- <div class="switchboard"><span>Forgot Password ?</span> <i class="icons-arrow-left-2"></i></div> -->
|
|
</div>
|
|
<!-- <div class="register">
|
|
<button class="btn btn-inverse" type="submit">Register</button>
|
|
</div> -->
|
|
|
|
</div>
|
|
</div>
|