From 2b863b8d8a196f57e46e42fad2ffab9e6105d208 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 18 Jan 2014 12:11:43 -0500 Subject: [PATCH] Updated Forget Password, other minor changes --- app/views/devise/_links.erb | 11 ++++------- app/views/devise/passwords/new.html.erb | 12 ++++++++---- app/views/layouts/application.html.haml | 5 ++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/views/devise/_links.erb b/app/views/devise/_links.erb index 136f3f0..fc68770 100644 --- a/app/views/devise/_links.erb +++ b/app/views/devise/_links.erb @@ -1,31 +1,28 @@ <%- if controller_name != 'sessions' %>

- <%= link_to "Sign in", new_session_path(resource_name), class: "btn btn-block" %>
+ <%= link_to "Sign in", new_session_path(resource_name), class: "btn btn-block btn-default" %>

<% end -%> <%- if devise_mapping.registerable? && controller_name != 'registrations' %>

- <%= link_to "Sign up", new_registration_path(resource_name), class: "btn btn-block" %>
+ <%= link_to "Sign up", new_registration_path(resource_name), class: "btn btn-block btn-default" %>

<% end -%> <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>

- <%= link_to "Forgot your password?", new_password_path(resource_name), class: "btn btn-block" %>
+ <%= link_to "Forgot your password?", new_password_path(resource_name), class: "btn btn-block btn-default" %>

<% end -%> <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>

- <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: "btn btn-block" %>
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: "btn btn-block btn-default" %>

<% 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), class: "btn btn-block" %>
-

<% end -%> <%- if devise_mapping.omniauthable? %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index b9b59d4..ee989dd 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,12 +1,16 @@ -

Forgot your password?

+<%= stylesheet_link_tag "bootstrap_and_overrides", :media => "all" %> +

Forgot your password?

+
+
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> <%= devise_error_messages! %> -
<%= f.label :email %>
- <%= f.email_field :email %>
+
+ <%= f.email_field :email, placeholder: "Email", class: "form-control input-lg" %> +
-
<%= f.submit "Send me reset password instructions" %>
+
<%= f.submit "Reset Password", class:"btn btn-lg btn-primary"%>
<% end %> <%= render "links" %> diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 1754796..fc64970 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -3,7 +3,6 @@ %head %meta{:charset => "utf-8"}/ %title= content_for?(:title) ? yield(:title) : "Velocipede" - = load_netzke = csrf_meta_tags /[if lt IE 9] = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js" @@ -24,11 +23,11 @@ - if flash[:alert] %p{:class => 'alert'}= flash[:alert] .row - .span13 + .span12 = yield %footer - %p © Velocipede 2013 + %p © BikeShed 2014 = javascript_include_tag "application" = javascript_include_tag params[:controller]