Skip to content

Commit

Permalink
#51 adding link to reset password from homepage, showing flash messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesprior committed Jan 27, 2013
1 parent 37922a6 commit 89ce3b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/account_sessions/new.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
=image_tag "logo.png"
%tr.boxes
%td.boxes{:colspan=>2, :align=>"center"}
- if flash[:notice]
%p.notice
= flash[:notice]
=form_for @session, :url => account_session_path do |f|
=f.label :"Username : "
=f.text_field :username
Expand All @@ -28,6 +32,7 @@
document.getElementById("account_js_test_value").value = "on";
-if @session.errors.messages[:base]
.error_message= @session.errors.messages[:base][0]
%p=link_to("Forgot your password?", new_password_reset_path)
%tr
%td{:colspan=>2, :align=>"center"}
%br
Expand Down

0 comments on commit 89ce3b8

Please sign in to comment.