Add flash message above the login form

This commit is contained in:
Gonzalo Rodriguez 2011-02-16 23:35:06 -02:00
parent dfa5d875c5
commit 11e431f640
2 changed files with 10 additions and 1 deletions

View file

@ -17,6 +17,7 @@
$("#spinner").fadeIn(300);
});
});
$(".login_error").remove();
});
});
@ -25,6 +26,10 @@
= image_tag('logo_caps.png', :id => 'logo', :width => 143, :height => 21)
%br
%br
- flash.each do |name, msg|
= content_tag :p, msg, :class => "login_error"
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
%p
= f.label :username , t('username')

View file

@ -90,6 +90,10 @@ form
:text
:shadow 0 1px #C66
.login_error
:color rgb(208,49,43)
:text-shadow 1px 1px 7px rgb(208,49,43)
.fieldWithErrors
:display inline