-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Huerta
committed
Aug 24, 2014
1 parent
975e339
commit 06baf8d
Showing
18 changed files
with
91 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
<div class="space"></div> | ||
<div class="login-container"> | ||
<div class="login"> | ||
<h2 class="admin_heading">Sign in</h2> | ||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> | ||
<div> | ||
<%= f.email_field :email, :autofocus => true, :placeholder => "Email", :class => "text-field" %></div> | ||
|
||
<%= f.email_field :email, :autofocus => true, :placeholder => "Email", :class => "text-field" %> | ||
</div> | ||
<div> | ||
<%= f.password_field :password, :placeholder => "Password", :class => "text-field" %></div> | ||
|
||
<%= f.password_field :password, :placeholder => "Password", :class => "text-field" %> | ||
</div> | ||
<% if devise_mapping.rememberable? -%> | ||
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div> | ||
<% end -%> | ||
|
||
<div><%= f.submit "Sign in" %></div> | ||
|
||
<%= render "devise/shared/links" %> | ||
<div><%= f.submit "Sign in", :id => "login-button", :class => "admin-form-button" %></div> | ||
<div class="login-links"><%= render "devise/shared/links" %></div> | ||
<% end %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<%- if controller_name != 'sessions' %> | ||
<%= link_to "Sign in", new_session_path(resource_name) %> | ||
<%= link_to "Sign in", new_session_path(resource_name), class: 'admin-form-button' %> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %> | ||
<%= link_to "Sign up", new_registration_path(resource_name) %> | ||
<%= link_to "Sign up", new_registration_path(resource_name), class: 'admin-form-button' %> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %> | ||
<%= link_to "Forgot your password?", new_password_path(resource_name) %> | ||
<%= link_to "Forgot your password?", new_password_path(resource_name), class: 'admin-form-button' %> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> | ||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %> | ||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: 'admin-form-button' %> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> | ||
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %> | ||
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name), class: 'admin-form-button' %> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.omniauthable? %> | ||
<%- resource_class.omniauth_providers.each do |provider| %> | ||
<%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %> | ||
<%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), class: 'admin-form-button' %> | ||
<% end -%> | ||
<% end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters