gluster-web-interface/app/views/users/sessions/new.html.erb

135 lines
4.1 KiB
Plaintext
Raw Normal View History

2016-08-19 09:03:00 +00:00
<%#/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>
2016-08-19 15:22:36 +00:00
<%= f.email_field :email, autofocus: true, :class => "form-control", :placeholder =>"Email", :required => "" %>
2016-08-19 09:03:00 +00:00
</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"%>
2016-08-19 15:22:36 +00:00
<a class="reset_pass" href="/users/password/new">Lost your password?</a>
2016-08-19 09:03:00 +00:00
</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>
2016-08-19 15:22:36 +00:00
2016-08-19 09:03:00 +00:00
<div id="register" class="animate form">
<section class="login_content">
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
2016-08-19 15:22:36 +00:00
<%= devise_error_messages! %>
2016-08-19 09:03:00 +00:00
<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>
2016-08-19 15:22:36 +00:00
<div>
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control", placeholder: "Password confirmation", required: "" %>
</div>
2016-08-19 09:03:00 +00:00
<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>
2016-08-19 15:22:36 +00:00
2016-08-19 09:03:00 +00:00
</div>
</div>
2016-08-19 15:22:36 +00:00
2016-08-19 09:03:00 +00:00
<!--
<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" %>
-->