<!DOCTYPE html>
<html lang="en-gb">
    <head>
      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title><%= site_name %> admin<%= @title ? ":" : "" %> <%=@title%></title>

      <%= javascript_include_tag '/javascripts/jquery.js', '/admin/javascripts/jquery-ui.min.js', '/admin/javascripts/bootstrap-collapse', '/admin/javascripts/bootstrap-tab', '/admin/javascripts/admin' %>
      <%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
      <%= stylesheet_link_tag "/admin/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>

    </head>
    <body class="admin">
      <div id="main" class="container">
        <%= render :partial => 'admin_general/admin_navbar' %>
        <% if flash[:error] %>
          <div class="row">
            <div class="span12">
              <div class="alert alert-error">
                <%= flash[:error] %>
              </div>
            </div>
          </div>
        <% end %>

        <% if flash[:notice] %>
          <div class="row">
            <div class="span12">
              <div class="alert alert-info">
                <%= flash[:notice] %>
              </div>
            </div>
          </div>
        <% end %>

        <%= yield  %>
      </div>
    </body>
</html>

<!DOCTYPE html>
<html lang="en-gb">
    <head>
      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title><%= site_name %> admin<%= @title ? ":" : "" %> <%=@title%></title>

      <%= javascript_include_tag '/javascripts/jquery.js', '/admin/javascripts/jquery-ui.min.js', '/admin/javascripts/bootstrap-collapse', '/admin/javascripts/bootstrap-tab', '/admin/javascripts/admin', '/javascripts/jquery_ujs' %>
      <%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
      <%= stylesheet_link_tag "/admin/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>

    </head>
    <body class="admin">
      <div id="main" class="container">
        <%= render :partial => 'admin_general/admin_navbar' %>
        <% if flash[:error] %>
          <div class="row">
            <div class="span12">
              <div class="alert alert-error">
                <%= flash[:error] %>
              </div>
            </div>
          </div>
        <% end %>

        <% if flash[:notice] %>
          <div class="row">
            <div class="span12">
              <div class="alert alert-info">
                <%= flash[:notice] %>
              </div>
            </div>
          </div>
        <% end %>

        <%= yield  %>
      </div>
    </body>
</html>

Include unobtrusive js in the admin layout
Include unobtrusive js in the admin layout

We use the :confirm option of the submit_tag helper. Fixes #1042.
