Nicolae Claudius
11 years ago
7 changed files with 138 additions and 78 deletions
@ -1,20 +1,27 @@
|
||||
<%= render :partial => "users/shared/links" %> |
||||
<br> |
||||
|
||||
<div class="row"> |
||||
<div class="col-lg-offset-4 col-lg-4 well"> |
||||
|
||||
<%= simple_form_for(resource, |
||||
as: resource_name, |
||||
url: confirmation_path(resource_name), |
||||
method: :post |
||||
) do |f| %> |
||||
<div class="col-md-3"> |
||||
|
||||
<%= render 'users/shared/links' %> |
||||
|
||||
</div> |
||||
<div class="col-md-offset-2 col-md-4"> |
||||
|
||||
<div class="well"> |
||||
<%= simple_form_for(resource, |
||||
as: resource_name, |
||||
url: confirmation_path(resource_name), |
||||
method: :post |
||||
) do |f| %> |
||||
|
||||
<%= devise_error_messages! %> |
||||
<%= devise_error_messages! %> |
||||
|
||||
<%= f.input :email, required: true %> |
||||
<%= f.input :email, required: true %> |
||||
|
||||
<%= f.submit "Resend confirmation instructions", class: 'btn btn-primary' %> |
||||
<% end %> |
||||
<%= f.submit "Resend confirmation instructions", class: 'btn btn-primary' %> |
||||
<% end %> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
@ -1,20 +1,27 @@
|
||||
<%= render :partial => "users/shared/links" %> |
||||
<br> |
||||
|
||||
<div class="row"> |
||||
<div class="col-lg-offset-4 col-lg-4 well"> |
||||
|
||||
<%= simple_form_for(resource, |
||||
as: resource_name, |
||||
url: password_path(resource_name), |
||||
method: :post |
||||
) do |f| %> |
||||
<div class="col-md-3"> |
||||
|
||||
<%= render 'users/shared/links' %> |
||||
|
||||
</div> |
||||
<div class="col-md-offset-2 col-md-4"> |
||||
|
||||
<div class="well"> |
||||
<%= simple_form_for(resource, |
||||
as: resource_name, |
||||
url: password_path(resource_name), |
||||
method: :post |
||||
) do |f| %> |
||||
|
||||
<%= devise_error_messages! %> |
||||
<%= devise_error_messages! %> |
||||
|
||||
<%= f.input :email, required: true %> |
||||
<%= f.input :email, required: true %> |
||||
|
||||
<%= f.submit "Send me reset password instructions", class: 'btn btn-primary' %> |
||||
<% end %> |
||||
<%= f.submit "Send reset password instructions", class: 'btn btn-primary' %> |
||||
<% end %> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
@ -1,9 +1,16 @@
|
||||
<%= render 'users/shared/links' %> |
||||
<br> |
||||
|
||||
<div class="row"> |
||||
<div class="col-lg-offset-4 col-lg-4 well"> |
||||
<div class="col-md-3"> |
||||
|
||||
<%= render 'users/registrations/new' %> |
||||
<%= render 'users/shared/links' %> |
||||
|
||||
</div> |
||||
<div class="col-md-offset-2 col-md-4"> |
||||
|
||||
<div class="well"> |
||||
<%= render 'users/registrations/new' %> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
|
@ -1,36 +1,43 @@
|
||||
<%= render 'users/shared/links' %> |
||||
<br> |
||||
|
||||
<div class="row"> |
||||
<div class="col-lg-offset-4 col-lg-4 well"> |
||||
<div class="col-md-3"> |
||||
|
||||
<%= render 'users/shared/links' %> |
||||
|
||||
</div> |
||||
<div class="col-md-offset-2 col-md-4"> |
||||
|
||||
<div class="well"> |
||||
<p> |
||||
<%= link_to user_omniauth_authorize_path(:google_oauth2), |
||||
class: 'btn btn-block btn-social btn-google-plus', |
||||
'data-no-turbolink' => true do %> |
||||
<i class="fa fa-google-plus"></i> Sign in with Google |
||||
<% end %> |
||||
</p> |
||||
|
||||
<h5 class="text-info text-center text-separator">Or use the form below</h5> |
||||
|
||||
<%= simple_form_for(resource, |
||||
as: resource_name, |
||||
url: session_path(resource_name) |
||||
) do |f| %> |
||||
|
||||
<%= f.input :email, required: true %> |
||||
<%= f.input :password, required: true %> |
||||
<% if devise_mapping.rememberable? -%> |
||||
<%= f.input :remember_me, as: :boolean %> |
||||
<% end -%> |
||||
|
||||
<%= f.submit "Sign in", class: 'btn btn-primary' %> |
||||
<small> |
||||
or <%= link_to "Sign up", new_registration_path(resource_name) %> |
||||
/ <%= link_to 'Forgot password', new_password_path(resource_name) %> |
||||
</small> |
||||
|
||||
<p> |
||||
<%= link_to user_omniauth_authorize_path(:google_oauth2), |
||||
class: 'btn btn-block btn-social btn-google-plus', |
||||
'data-no-turbolink' => true do %> |
||||
<i class="fa fa-google-plus"></i> Sign in with Google |
||||
<% end %> |
||||
</p> |
||||
|
||||
<h5 class="text-info text-center text-separator">Or use the form below</h5> |
||||
|
||||
<%= simple_form_for(resource, |
||||
as: resource_name, |
||||
url: session_path(resource_name) |
||||
) do |f| %> |
||||
|
||||
<%= f.input :email, required: true %> |
||||
<%= f.input :password, required: true %> |
||||
<% if devise_mapping.rememberable? -%> |
||||
<%= f.input :remember_me, as: :boolean %> |
||||
<% end -%> |
||||
|
||||
<%= f.submit "Sign in", class: 'btn btn-primary' %> |
||||
<small> |
||||
or <%= link_to "Sign up", new_registration_path(resource_name) %> |
||||
/ <%= link_to 'Forgot password', new_password_path(resource_name) %> |
||||
</small> |
||||
|
||||
<% end %> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
@ -1,10 +1,22 @@
|
||||
<br /> |
||||
<% semantic_navigation :devise_nav, html: { class: 'nav nav-tabs nav-justified' } do |n| %> |
||||
<%= n.item "Sign in", link: new_session_path(resource_name) %> |
||||
<%= n.item "Sign up", link: new_registration_path(resource_name) %> |
||||
<%= n.item "Forgot password", link: new_password_path(resource_name), |
||||
highlights_on: [{ controller: 'devise/passwords' }] %> |
||||
<%= n.item "Resend confirmation instructions", link: new_confirmation_path(resource_name) %> |
||||
<%= n.item "Resend unlock instructions", link: new_unlock_path(resource_name) %> |
||||
<% end %> |
||||
</br> |
||||
<div class="navbar navbar-vertical navbar-default navbar-links" role="navigation"> |
||||
<div class="navbar-header"> |
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-links-collapse"> |
||||
<span class="sr-only">Toggle navigation</span> |
||||
<span class="icon-bar"></span> |
||||
<span class="icon-bar"></span> |
||||
<span class="icon-bar"></span> |
||||
</button> |
||||
<span class="navbar-brand visible-sm">Menu</span> |
||||
</div> |
||||
|
||||
<div class="collapse navbar-collapse navbar-links-collapse"> |
||||
<% semantic_navigation :devise_nav, html: { class: 'nav nav-stacked navbar-nav' } do |n| %> |
||||
<%= n.item "Sign in", link: new_session_path(resource_name) %> |
||||
<%= n.item "Sign up", link: new_registration_path(resource_name) %> |
||||
<%= n.item "Forgot password", link: new_password_path(resource_name), |
||||
highlights_on: [{ controller: 'devise/passwords' }] %> |
||||
<%= n.item "Resend confirmation instructions", link: new_confirmation_path(resource_name) %> |
||||
<%= n.item "Resend unlock instructions", link: new_unlock_path(resource_name) %> |
||||
<% end %> |
||||
</div> |
||||
</div> |
||||
|
@ -1,20 +1,27 @@
|
||||
<%= render :partial => "users/shared/links" %> |
||||
<br> |
||||
|
||||
<div class="row"> |
||||
<div class="col-lg-offset-4 col-lg-4 well"> |
||||
|
||||
<%= simple_form_for(resource, |
||||
as: resource_name, |
||||
url: unlock_path(resource_name), |
||||
method: :post |
||||
) do |f| %> |
||||
<div class="col-md-3"> |
||||
|
||||
<%= render 'users/shared/links' %> |
||||
|
||||
</div> |
||||
<div class="col-md-offset-2 col-md-4"> |
||||
|
||||
<div class="well"> |
||||
<%= simple_form_for(resource, |
||||
as: resource_name, |
||||
url: unlock_path(resource_name), |
||||
method: :post |
||||
) do |f| %> |
||||
|
||||
<%= devise_error_messages! %> |
||||
<%= devise_error_messages! %> |
||||
|
||||
<%= f.input :email, required: true %> |
||||
<%= f.input :email, required: true %> |
||||
|
||||
<%= f.submit "Resend unlock instructions", class: 'btn btn-primary' %> |
||||
<% end %> |
||||
<%= f.submit "Resend unlock instructions", class: 'btn btn-primary' %> |
||||
<% end %> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
Loading…
Reference in new issue