<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head data-hook="admin_inside_head">
  <%= render :partial => 'spree/admin/shared/head' %>
</head>
<body class='admin'>
<!--[if IE 7]>
<div id='IE7'>
<![endif]-->
<div id='wrapper' data-hook>

  <div id="header" data-hook>

    <div data-hook="admin_login_navigation_bar"></div>

    <%= link_to image_tag(Spree::Config[:admin_interface_logo], :id => 'logo'), spree.admin_path %>
    <h1><%= link_to t(:administration), spree.admin_path %></h1>
    <div id="progress"><%= image_tag 'admin/progress.gif' %> <%= t(:loading) %>...</div>
  </div>

  <div id="admin-menu" data-hook>
    <ul data-hook="admin_tabs">
      <%= render :partial => 'spree/admin/shared/tabs' %>
    </ul>
    <br class="clear" />
  </div>

  <div id="sub-menu" data-hook>
    <%= yield :sub_menu %>
    <br class="clear" />
  </div>

  <div class="<%= 'with-sidebar ' if content_for?(:sidebar) %> clear tile_bg" id="content" data-hook>

    <% if flash[:error] %>
      <div class="flash error"><%= flash[:error] %></div>
    <% end %>
    <% if notice %>
      <div class="flash notice"><%= notice %></div>
    <% end %>

    <%= render :partial => 'spree/admin/shared/alert', :collection => session[:alerts] %>

    <%= yield %>

    <% if content_for?(:sidebar) %>
      <br class="clear" />
      <div id="sidebar" data-hook>
        <%= yield :sidebar %>
      </div>
    <% end %>

  </div>

  <div id="footer" data-hook>
    <p><%= t(:icons_by) %> <%= link_to 'pInvoke', 'http://pinvoke.com' %></p>
  </div>


</div>
<!--[if IE]>
</div>
<![endif]-->

<div data-hook="admin_footer_scripts"></div>
</body>
</html>
