blob: c1cada3cdf4ac53d9103ff18bb795f0f37255cf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<%= csrf_meta_tags %>
<title><%= "#{params[:controller]} | #{params[:action]}" %></title>
<%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? %>
<%= javascript_include_tag 'admin_bundle' %>
<%= tinymce_assets %>
<link rel="stylesheet" href="/stylesheets/admin.css">
<script src="/javascripts/admin_search.js"></script>
<script src="/javascripts/admin_interface.js"></script>
<script>
var ADMIN_SEARCH_URL = "<%= admin_search_path %>";
var ADMIN_MENU_SEARCH_URL = "<%= admin_menu_search_path %>";
</script>
</head>
<body>
<div id="wrapper">
<div id="navigation">
<div id="main_navigation">
<%= render :partial => 'admin/menu' if current_user %>
</div>
<div id="sub_navigation">
<%= yield :subnavigation %>
</div>
</div>
<div style="clear: both;"></div>
<div id="flash">
<%= flash[:notice] %>
<% if flash[:error] %>
<span id="flash_error"><%= flash[:error] %></span>
<% end %>
</div>
<div id="content">
<%= yield %>
</div>
<div id="results"></div>
</div>
<div id="search_widget" style="display: none;">
<div>
<%= form_tag admin_search_path, method: :get do %>
<span>Search: </span><%= text_field_tag :search_term %>
<% end %>
</div>
<div id="search_results" style="display: none">
</div>
</div>
</body>
</html>
|