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

147 lines
4.5 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="tologin"></a>
2016-08-19 15:22:36 +00:00
<a class="hiddenanchor" id="toregister"></a>
2016-08-19 09:03:00 +00:00
<div id="wrapper">
<div id="login" class="animate form">
<section class="login_content">
2016-08-19 15:22:36 +00:00
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
2016-08-19 09:03:00 +00:00
2016-08-19 15:22:36 +00:00
<h1>Create Account</h1>
<div align="center" id="flash" class="alert alert-alert">
<a href="#" data-dismiss="alert" class="close">×</a>
<ul style="text-align: center">
<l>
<%= devise_error_messages! %>
</l>
</ul>
</div>
<div>
2016-09-23 12:53:19 +00:00
<%= f.text_field :username, autofocus: true , class: "form-control", placeholder: "Username", required: ""%>
2016-08-19 09:03:00 +00:00
</div>
2016-09-23 12:53:19 +00:00
2016-08-19 09:03:00 +00:00
<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>
2016-08-19 15:22:36 +00:00
<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" %>
2016-08-19 09:03:00 +00:00
</div>
<div class="clearfix"></div>
<div class="separator">
2016-08-19 15:22:36 +00:00
<p class="change_link">Already a member ?
<a href="#toregister" class="to_register"> Log in </a>
2016-08-19 09:03:00 +00:00
</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>
2016-08-19 15:22:36 +00:00
<% end %>
2016-08-19 09:03:00 +00:00
<!-- form -->
</section>
<!-- content -->
</div>
2016-08-19 15:22:36 +00:00
<div id="register" class="animate form">
2016-08-19 09:03:00 +00:00
<section class="login_content">
2016-08-19 15:22:36 +00:00
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<h1>Login Formzz</h1>
2016-08-19 09:03:00 +00:00
<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>
2016-08-19 15:22:36 +00:00
<%= f.password_field :password, autofocus: true, :class => "form-control", :placeholder =>"Password", :required => "" %>
2016-08-19 09:03:00 +00:00
</div>
2016-08-19 15:22:36 +00:00
<% 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="#">Lost your password?</a>
2016-08-19 09:03:00 +00:00
</div>
<div class="clearfix"></div>
<div class="separator">
2016-08-19 15:22:36 +00:00
<p class="change_link">New to site?
<a href="#tologin" class="to_register"> Create Account </a>
2016-08-19 09:03:00 +00:00
</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>
2016-08-19 15:22:36 +00:00
<% end %>
2016-08-19 09:03:00 +00:00
<!-- 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
<h2>Sign up</h2>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
2016-08-19 09:03:00 +00:00
<div class="field">
<%= f.label :email %><br />
<%= f.email_field :email, autofocus: true %>
</div>
<div class="field">
2016-08-19 15:22:36 +00:00
<%= f.label :password %>
<% if @minimum_password_length %>
<em>(<%= @minimum_password_length %> characters minimum)</em>
<% end %><br />
2016-08-19 09:03:00 +00:00
<%= f.password_field :password, autocomplete: "off" %>
</div>
2016-08-19 15:22:36 +00:00
<div class="field">
<%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation, autocomplete: "off" %>
</div>
2016-08-19 09:03:00 +00:00
<div class="actions">
2016-08-19 15:22:36 +00:00
<%= f.submit "Sign up" %>
2016-08-19 09:03:00 +00:00
</div>
<% end %>
<%= render "devise/shared/links" %>
-->