Fixed missing js for login layout.
This commit is contained in:
parent
2a72263bd3
commit
2eb714b603
2 changed files with 9 additions and 11 deletions
|
@ -4,7 +4,7 @@
|
|||
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
|
||||
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
|
||||
= stylesheet_link_tag 'main', 'rails_messages', 'nav', :cache => "all_cached"
|
||||
= javascript_include_tag 'prototype', 'effects', 'controls', 'application', 'ordering', :cache => "all_cached"
|
||||
= javascript_include_tag 'jquery.min'
|
||||
= yield(:head)
|
||||
%body
|
||||
#login
|
||||
|
|
|
@ -1,20 +1,18 @@
|
|||
- 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();
|
||||
$(function() {
|
||||
$('#nick').focus();
|
||||
});
|
||||
|
||||
- title "FoodSoft login"
|
||||
|
||||
#javascript-warn.error(style="font-size:1.5em")
|
||||
%b Achtung, Cookies und Javascript müssen aktiviert sein!
|
||||
%noscript
|
||||
#javascript-warn.error(style="font-size:1.5em")
|
||||
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")
|
||||
#login-form.edit_form(style="width:25em")
|
||||
= form_tag sessions_path do
|
||||
%p
|
||||
%label{:for => 'user'} Benutzerin
|
||||
|
|
Loading…
Reference in a new issue