2009-10-17 18:42:07 +02:00
|
|
|
- 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();
|
2009-02-06 20:51:14 +01:00
|
|
|
|
2009-10-17 18:42:07 +02:00
|
|
|
$('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")
|
2009-01-06 11:49:19 +01:00
|
|
|
- form_tag :action => 'login' do
|
|
|
|
- if flash[:notice]
|
|
|
|
%div.notice= flash[:notice]
|
|
|
|
- if flash[:error]
|
|
|
|
%div.error= flash[:error]
|
|
|
|
%p
|
2009-02-06 20:51:14 +01:00
|
|
|
%label{:for => 'user'} Benutzerin
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
|
|
|
= text_field 'login', 'user'
|
|
|
|
%p
|
2009-02-06 20:51:14 +01:00
|
|
|
%label{:for => 'password'} Passwort
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
|
|
|
= password_field 'login', 'password'
|
2009-02-06 20:51:14 +01:00
|
|
|
= submit_tag "Anmelden"
|
2009-01-06 11:49:19 +01:00
|
|
|
|
|
2009-10-17 18:42:07 +02:00
|
|
|
= link_to "Passwort vergessen?", :action => 'forgot_password'
|