-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
13 changed files
with
233 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<h2>Resend confirmation instructions</h2> | ||
|
||
<%= simple_form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %> | ||
<%= f.error_notification %> | ||
<%= f.full_error :confirmation_token %> | ||
|
||
<div class="form-inputs"> | ||
<%= f.input :email, :required => true, :autofocus => true %> | ||
</div> | ||
|
||
<div class="form-actions"> | ||
<%= f.button :submit, "Resend confirmation instructions" %> | ||
</div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<p>Welcome <%= @email %>!</p> | ||
|
||
<p>You can confirm your account email through the link below:</p> | ||
|
||
<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<p>Hello <%= @resource.email %>!</p> | ||
|
||
<p>Someone has requested a link to change your password. You can do this through the link below.</p> | ||
|
||
<p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p> | ||
|
||
<p>If you didn't request this, please ignore this email.</p> | ||
<p>Your password won't change until you access the link above and create a new one.</p> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<p>Hello <%= @resource.email %>!</p> | ||
|
||
<p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p> | ||
|
||
<p>Click the link below to unlock your account:</p> | ||
|
||
<p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p> |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<h2>Change your password</h2> | ||
|
||
<%= simple_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %> | ||
<%= f.error_notification %> | ||
|
||
<%= f.input :reset_password_token, :as => :hidden %> | ||
<%= f.full_error :reset_password_token %> | ||
|
||
<div class="form-inputs"> | ||
<%= f.input :password, :label => "New password", :required => true, :autofocus => true %> | ||
<%= f.input :password_confirmation, :label => "Confirm your new password", :required => true %> | ||
</div> | ||
|
||
<div class="form-actions"> | ||
<%= f.button :submit, "Change my password" %> | ||
</div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<h2>Forgot your password?</h2> | ||
|
||
<%= simple_form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> | ||
<%= f.error_notification %> | ||
|
||
<div class="form-inputs"> | ||
<%= f.input :email, :required => true, :autofocus => true %> | ||
</div> | ||
|
||
<div> | ||
<%= f.button :submit, "Send me reset password instructions" %> | ||
<%= link_to 'Cancel', root_url, :class => 'btn' %> | ||
</div> | ||
<div> | ||
<%= link_to "Sign in", new_session_path(resource_name) %> | | ||
<%= link_to "Sign up", new_registration_path(resource_name) %> | ||
</div> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<h2>Edit My Account</h2> | ||
|
||
<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> | ||
<%= f.error_notification %> | ||
|
||
<div class="form-inputs"> | ||
<%= f.input :email, :required => true, :autofocus => true %> | ||
|
||
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> | ||
<p>Currently waiting confirmation for: <%= resource.unconfirmed_email %></p> | ||
<% end %> | ||
|
||
<%= f.input :password, :autocomplete => "off", :hint => "leave it blank if you don't want to change it", :required => false %> | ||
<%= f.input :password_confirmation, :required => false %> | ||
<%= f.input :current_password, :hint => "we need your current password to confirm your changes", :required => true %> | ||
</div> | ||
|
||
<div> | ||
<%= f.button :submit, "Update", :class => 'btn btn-primary' %> | ||
</div> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h2>Sign up</h2> | ||
|
||
<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> | ||
<%= f.error_notification %> | ||
|
||
<div class="form-inputs"> | ||
<%= f.input :email, :required => true, :autofocus => true %> | ||
<%= f.input :password, :required => true %> | ||
<%= f.input :password_confirmation, :required => true %> | ||
</div> | ||
|
||
<div> | ||
<%= f.button :submit, 'Sign up', :class => 'btn btn-primary' %> | ||
<%= link_to 'Cancel', root_url, :class => 'btn' %> | ||
</div> | ||
<div> | ||
<%= link_to "Sign in", new_session_path(resource_name) %> | | ||
<%= link_to "Forgot your password?", new_password_path(resource_name) %> | ||
</div> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<h2>Sign in</h2> | ||
|
||
<%= simple_form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> | ||
<div class="form-inputs"> | ||
<%= f.input :email, :required => false, :autofocus => true %> | ||
<%= f.input :password, :required => false %> | ||
<%= f.input :remember_me, :as => :boolean, :item_wrapper_class => 'inline' if devise_mapping.rememberable? %> | ||
</div> | ||
|
||
<div> | ||
<%= f.button :submit, "Sign in", :class => 'btn btn-primary' %> | ||
<%= link_to 'Cancel', root_url, :class => 'btn' %> | ||
</div> | ||
|
||
<div> | ||
<%= link_to "Sign up", new_registration_path(resource_name) %> | | ||
<%= link_to "Forgot your password?", new_password_path(resource_name) %> | ||
</div> | ||
|
||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<%- if controller_name != 'sessions' %> | ||
<%= link_to "Sign in", new_session_path(resource_name) %><br /> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %> | ||
<%= link_to "Sign up", new_registration_path(resource_name) %><br /> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %> | ||
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br /> | ||
<% end -%> | ||
|
||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> | ||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br /> | ||
<% 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) %><br /> | ||
<% 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) %><br /> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<h2>Resend unlock instructions</h2> | ||
|
||
<%= simple_form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %> | ||
<%= f.error_notification %> | ||
<%= f.full_error :unlock_token %> | ||
|
||
<div class="form-inputs"> | ||
<%= f.input :email, :required => true, :autofocus => true %> | ||
</div> | ||
|
||
<div class="form-actions"> | ||
<%= f.button :submit, "Resend unlock instructions" %> | ||
</div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title><%= content_for?(:title) ? yield(:title) : "BaseJumper" %></title> | ||
<%= csrf_meta_tags %> | ||
|
||
<!-- Le HTML5 shim, for IE6-8 support of HTML elements --> | ||
<!--[if lt IE 9]> | ||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script> | ||
<![endif]--> | ||
|
||
<%= stylesheet_link_tag "application", :media => "all" %> | ||
|
||
<!-- <link href="images/favicon.ico" rel="shortcut icon"> | ||
<link href="images/apple-touch-icon.png" rel="apple-touch-icon"> | ||
<link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72"> | ||
<link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114"> --> | ||
</head> | ||
<body> | ||
|
||
<%= render 'shared/navbar' %> | ||
|
||
<div class="container"> | ||
<%= render 'shared/flash_messages' %> | ||
<div class="content"> | ||
<div class="row"> | ||
<div class="offset3 span6"> | ||
<div class="well"> | ||
<%= yield %> | ||
</div> | ||
</div> | ||
</div><!--/row--> | ||
</div><!--/content--> | ||
|
||
<footer> | ||
<p>© Company 2012</p> | ||
</footer> | ||
</div> <!-- /container --> | ||
|
||
|
||
|
||
<!-- Javascripts | ||
================================================== --> | ||
<!-- Placed at the end of the document so the pages load faster --> | ||
<%= javascript_include_tag "application" %> | ||
|
||
</body> | ||
</html> |
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