135 lines
4.1 KiB
Plaintext
135 lines
4.1 KiB
Plaintext
<%#/devise/sessions/new.html.erb %>
|
|
|
|
<div class="">
|
|
<a class="hiddenanchor" id="toregister"></a>
|
|
<a class="hiddenanchor" id="tologin"></a>
|
|
|
|
<div id="wrapper">
|
|
<div id="login" class="animate form">
|
|
<section class="login_content">
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
<h1>Login Form</h1>
|
|
<div>
|
|
<%= f.email_field :email, autofocus: true, :class => "form-control", :placeholder =>"Email", :required => "" %>
|
|
|
|
</div>
|
|
<div>
|
|
|
|
<%= f.password_field :password, autofocus: true, :class => "form-control", :placeholder =>"Password", :required => "" %>
|
|
|
|
</div>
|
|
|
|
|
|
<% if devise_mapping.rememberable? -%>
|
|
<div class="checkbox-inline">
|
|
<%= f.check_box :remember_me %>
|
|
<%= f.label :remember_me %>
|
|
</div>
|
|
<% end -%>
|
|
|
|
|
|
<div>
|
|
|
|
<%= f.submit "Log in", :class => "btn btn-default submit"%>
|
|
|
|
<a class="reset_pass" href="/users/password/new">Lost your password?</a>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="separator">
|
|
|
|
<p class="change_link">New to site?
|
|
<a href="#toregister" class="to_register"> Create Account </a>
|
|
</p>
|
|
<div class="clearfix"></div>
|
|
<br />
|
|
<div>
|
|
<h1><i class="fa fa-paw" style="font-size: 26px;"></i> Gentelella Alela!</h1>
|
|
<p>©2015 All Rights Reserved. Gentelella Alela! is a Bootstrap 3 template. Privacy and Terms</p>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<!-- form -->
|
|
</section>
|
|
<!-- content -->
|
|
</div>
|
|
|
|
|
|
<div id="register" class="animate form">
|
|
<section class="login_content">
|
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
|
<%= devise_error_messages! %>
|
|
<h1>Create Account</h1>
|
|
<div>
|
|
<input type="text" class="form-control" placeholder="Username" required="" />
|
|
</div>
|
|
<div>
|
|
<%= f.email_field :email, autofocus: true , class: "form-control", placeholder: "Email", required: ""%>
|
|
</div>
|
|
<div>
|
|
<% if @minimum_password_length %>
|
|
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
|
<% end %>
|
|
<%= f.password_field :password, autocomplete: "off", class: "form-control", placeholder: "Password", required: "" %>
|
|
</div>
|
|
<div>
|
|
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control", placeholder: "Password confirmation", required: "" %>
|
|
</div>
|
|
|
|
<div>
|
|
<%= f.submit "Sign up", :class => "btn btn-default submit" %>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="separator">
|
|
|
|
<p class="change_link">Already a member ?
|
|
<a href="#tologin" class="to_register"> Log in </a>
|
|
</p>
|
|
<div class="clearfix"></div>
|
|
<br />
|
|
<div>
|
|
<h1><i class="fa fa-paw" style="font-size: 26px;"></i> Gentelella Alela!</h1>
|
|
<p>©2015 All Rights Reserved. Gentelella Alela! is a Bootstrap 3 template. Privacy and Terms</p>
|
|
</div>
|
|
</div>
|
|
|
|
<% end %>
|
|
<!-- form -->
|
|
</section>
|
|
<!-- content -->
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!--
|
|
<h2>Log in</h2>
|
|
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
<div class="field">
|
|
<%= f.label :email %><br />
|
|
<%= f.email_field :email, autofocus: true %>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<%= f.label :password %><br />
|
|
<%= f.password_field :password, autocomplete: "off" %>
|
|
</div>
|
|
|
|
<% if devise_mapping.rememberable? -%>
|
|
<div class="field">
|
|
<%= f.check_box :remember_me %>
|
|
<%= f.label :remember_me %>
|
|
</div>
|
|
<% end -%>
|
|
|
|
<div class="actions">
|
|
<%= f.submit "Log in" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %>
|
|
-->
|