59 lines
2.3 KiB
Plaintext
59 lines
2.3 KiB
Plaintext
|
<section id="main-wrap">
|
||
|
<div class="sign-in have-other-sign-in">
|
||
|
<!-- <p class="alert alert-error in fade">You need to sign in.</p>
|
||
|
-->
|
||
|
<% flash.each do |key, msg| %>
|
||
|
<%= content_tag :p, msg, :class => [key, "alert alert-error in fade"] %>
|
||
|
<% end %>
|
||
|
|
||
|
<div class="form">
|
||
|
<h3 class="login-logo">Log In to Orbit</h3>
|
||
|
<div>
|
||
|
<input name="utf8" type="hidden" value="" />
|
||
|
<input name="authenticity_token" type="hidden" value="" />
|
||
|
</div>
|
||
|
<!-- <div class="other-sign-in">
|
||
|
<a class="btn btn-primary" type="submit">Other Sign In</a>
|
||
|
<p>or</p>
|
||
|
</div> -->
|
||
|
<div class="form-block">
|
||
|
<div class="form-list clearfix">
|
||
|
<form class="content" accept-charset="UTF-8" action="/users/sign_in" method="post">
|
||
|
<%= 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"), :id=>"user_email" %>
|
||
|
</div>
|
||
|
<div class="control-group clear">
|
||
|
<label for="user_password">
|
||
|
<i class="icon-lock"></i>
|
||
|
</label>
|
||
|
<%= f.password_field :password, :placeholder => t(:dots), :id=>"user_password" %>
|
||
|
</div>
|
||
|
<br/>
|
||
|
<label class="checkbox">
|
||
|
<% if devise_mapping.rememberable? -%>
|
||
|
<%= f.check_box :remember_me %> <small><%= f.label :remember_me %></small>
|
||
|
<% end -%>
|
||
|
</label>
|
||
|
|
||
|
<%= content_tag :button, t(:login), :type => :submit, :class => 'btn btn-primary' %>
|
||
|
</form>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="pull-right">
|
||
|
<%= link_to content_tag(:small, t(:forgot_password)), new_user_password_path %>
|
||
|
</div>
|
||
|
<br/>
|
||
|
<!-- <div class="register">
|
||
|
<button class="btn btn-inverse" type="submit">Register</button>
|
||
|
</div> -->
|
||
|
<% end %>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|