Add flash message above the login form
This commit is contained in:
parent
dfa5d875c5
commit
11e431f640
2 changed files with 10 additions and 1 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
$("#spinner").fadeIn(300);
|
$("#spinner").fadeIn(300);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
$(".login_error").remove();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -25,6 +26,10 @@
|
||||||
= image_tag('logo_caps.png', :id => 'logo', :width => 143, :height => 21)
|
= image_tag('logo_caps.png', :id => 'logo', :width => 143, :height => 21)
|
||||||
%br
|
%br
|
||||||
%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|
|
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
||||||
%p
|
%p
|
||||||
= f.label :username , t('username')
|
= f.label :username , t('username')
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,10 @@ form
|
||||||
:text
|
:text
|
||||||
:shadow 0 1px #C66
|
:shadow 0 1px #C66
|
||||||
|
|
||||||
|
.login_error
|
||||||
|
:color rgb(208,49,43)
|
||||||
|
:text-shadow 1px 1px 7px rgb(208,49,43)
|
||||||
|
|
||||||
.fieldWithErrors
|
.fieldWithErrors
|
||||||
:display inline
|
:display inline
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue