Commit 11e431f6 authored by Gonzalo Rodriguez's avatar Gonzalo Rodriguez

Add flash message above the login form

parent dfa5d875
......@@ -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')
......
......@@ -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
......@@ -677,7 +681,7 @@ a.paginate, #infscr-loading
#main_stream .pagination
:display none
.stream_element
.right
:position absolute
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment