2009-01-06 11:49:19 +01:00
|
|
|
!!!
|
|
|
|
%html
|
|
|
|
%head
|
|
|
|
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
|
|
|
|
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
|
2011-05-14 19:41:46 +02:00
|
|
|
= stylesheet_link_tag 'main', 'rails_messages', 'nav', 'simple_form', 'token-input', :cache => "all_cached"
|
2009-02-18 12:01:51 +01:00
|
|
|
= stylesheet_link_tag "print", :media => "print"
|
2009-06-19 21:38:51 +02:00
|
|
|
<!--[if lte IE 7]>
|
|
|
|
= stylesheet_link_tag 'ie_hacks'
|
|
|
|
<![endif]-->
|
2011-05-15 23:43:23 +02:00
|
|
|
= javascript_include_tag 'jquery.min', 'jquery-ui.min', 'jquery_ujs', 'jquery.tokeninput', 'jquery.observe_field',
|
|
|
|
'application', 'ordering', :cache => "all_cached"
|
|
|
|
= csrf_meta_tag
|
2009-10-17 12:22:13 +02:00
|
|
|
= yield(:head)
|
2009-01-06 11:49:19 +01:00
|
|
|
%body
|
2009-02-18 12:01:51 +01:00
|
|
|
#logininfo= render :partial => 'shared/loginInfo'
|
|
|
|
|
|
|
|
#header
|
|
|
|
#logo
|
2011-05-15 23:43:23 +02:00
|
|
|
= link_to root_path do
|
2009-02-18 12:01:51 +01:00
|
|
|
<span>food</span>soft
|
2009-03-24 17:25:33 +01:00
|
|
|
%span{:style => "color:white; font-size:45%; letter-spacing: -1px;"}= Foodsoft.config[:name]
|
2009-02-18 12:01:51 +01:00
|
|
|
#nav= render :partial => 'layouts/main_tabnav'
|
|
|
|
|
|
|
|
#main
|
|
|
|
#content
|
2011-05-11 15:14:39 +02:00
|
|
|
- flash.each do |name, msg|
|
2011-05-11 17:41:43 +02:00
|
|
|
= content_tag :h3, msg, :id => "flash#{name.to_s.camelize}", :class => "flash #{name}"
|
2009-02-18 12:01:51 +01:00
|
|
|
#loader{:style => "display:none;"}= image_tag("loader.gif", :border => 0)
|
2009-08-12 18:41:25 +02:00
|
|
|
- if show_title?
|
2009-02-18 12:01:51 +01:00
|
|
|
%h1= yield(:title)
|
|
|
|
= yield
|
2009-08-11 19:49:31 +02:00
|
|
|
#ajax_box(style="display:none")
|