2013-10-01 09:39:21 +00:00
|
|
|
<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>
|
2013-11-11 09:21:18 +00:00
|
|
|
<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' %>
|
2013-10-01 09:39:21 +00:00
|
|
|
</form>
|
2013-11-11 09:21:18 +00:00
|
|
|
|
2013-10-01 09:39:21 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-11-11 09:21:18 +00:00
|
|
|
<div class="pull-right">
|
|
|
|
<%= link_to content_tag(:small, t(:forgot_password)), new_user_password_path %>
|
|
|
|
</div>
|
|
|
|
<br/>
|
2013-10-01 09:39:21 +00:00
|
|
|
<!-- <div class="register">
|
|
|
|
<button class="btn btn-inverse" type="submit">Register</button>
|
|
|
|
</div> -->
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|