foodsoft/app/views/login/login.haml
Benjamin Meichsner 0b6b5eb0b5 Improved noscript warning on login page.
Also add 'foodsoft' to title. closes #48
2009-10-17 18:42:07 +02:00

33 lines
No EOL
964 B
Text

- content_for :head do
:javascript
document.observe("dom:loaded", function() {
// initially hide javascript warn message, when javascript is available
$('javascript-warn').hide(); $('login-form').show();
$('login_user').focus();
});
- title "FoodSoft login"
#javascript-warn.error(style="font-size:1.5em")
%b Achtung, Cookies und Javascript müssen aktiviert sein!
= link_to "NoScript", "http://noscript.net/"
bitte abschalten.
#login-form.edit_form(style="width:25em;display:none")
- form_tag :action => 'login' do
- if flash[:notice]
%div.notice= flash[:notice]
- if flash[:error]
%div.error= flash[:error]
%p
%label{:for => 'user'} Benutzerin
%br/
= text_field 'login', 'user'
%p
%label{:for => 'password'} Passwort
%br/
= password_field 'login', 'password'
= submit_tag "Anmelden"
|
= link_to "Passwort vergessen?", :action => 'forgot_password'