CSRF token support in xoslib
[plstackapi.git] / planetstack / templates / admin / base.html
1 {% load admin_static %}{% load suit_tags %}{% load url from future %}<!DOCTYPE html>
2 <html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
3 <head>
4   <title>{% block title %}  {%if title %} {{ title }} | {% endif %} {{ 'ADMIN_NAME'|suit_conf }}{% endblock %}</title>
5   <meta name="csrf-token" content="{{csrf_token}}">
6   <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% endblock %}"/>
7   <link rel="stylesheet" type="text/css" href="{% static 'suit/bootstrap/css/bootstrap.min.css' %}" media="all"/>
8   <link rel="stylesheet" type="text/css" href="{% static 'suit/css/suit.css' %}" media="all">
9   <link rel="stylesheet" type="text/css" href="{% static 'planetstack.css' %}" media="all">
10   {% block extrastyle %}{% endblock %}
11   {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}"/>{% endif %}
12   <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>
13   <script src="{% static 'suit/js/jquery-1.9.1.min.js' %}"></script>
14   <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
15   <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
16 <script type="text/javascript" src="{% static 'log4javascript-1.4.6/log4javascript.js' %}"></script>
17
18
19   <script type="text/javascript">var Suit = { $: $.noConflict() }; if (!$) $ = Suit.$; </script>
20   {% if 'SHOW_REQUIRED_ASTERISK'|suit_conf %}
21   <style type="text/css">.required:after { content: '*'; margin: 0 0 0 5px; position: absolute; color: #ccc;}</style>
22   {% endif %}
23   {% block extrahead %}{% endblock %}
24   {% block blockbots %}
25     <meta name="robots" content="NONE,NOARCHIVE"/>{% endblock %}
26   <link rel="shortcut icon" href="{% static 'favicon.png' %}">
27 </head>
28 {% load i18n %}
29
30 <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
31
32 <!-- Sticky footer wrap -->
33 <div id="wrap">
34
35   <!-- Container -->
36   {% block container %}
37     <div id="container">
38
39              <a href="{% url 'admin:index' %}"><h1 id="site-name"><img class="logo" height="70" width="259" src="{% static 'open-cloud-login-themed-light.png' %}"/></h1></a>
40       {% block header %}
41         {% if not is_popup %}
42           <!-- Header -->
43           <div id="header" class="header">
44             
45             <div id="branding">
46                   {% block quick-search %}
47                 {% with 'SEARCH_URL'|suit_conf as search_url %}
48                   {% if search_url %}
49                     <form class="form-search nav-quick-search" autocomplete="off" action="{% if '/' in search_url %}{{ search_url }}{% else %}{% url search_url %}{% endif %}" method="GET">
50                       <i class="input-icon icon-search"></i>
51                       <input type="text" name="q" class="input-medium search-query" id="quick-search">
52                       <input type="submit" class="submit" value="">
53                     </form>
54                   {% endif %}
55                 {% endwith %}
56               {% endblock %}
57             </div>
58           
59             {% block header_time %}
60             <div id="branding2">
61             <!--<div class="header-content header-content-first">
62               <div class="header-column icon">
63                 <i class="icon-time"></i>
64               </div>
65               <div class="header-column">
66                 <span class="date"> {% suit_date %}</span><br>
67                 <span class="time" id="clock">{% suit_time %}</span>
68               </div>
69             </div>-->
70           
71             {% endblock %}
72
73             {% block header_content %}
74               <!--<div class="header-content">
75                 <div class="header-column icon">
76                   <i class="icon-comment"></i>
77                 </div>
78                 <div class="header-column">
79                   <a href="" class="grey"><b>2</b> new messages</a>
80                 </div>
81               </div>-->
82             {% endblock %}
83
84             {% if user.is_active and user.is_staff %}
85               <div id="user-tools">
86                 {% trans 'Welcome,' %}
87                 <a href="http://{{ request.get_host}}/admin/core/user/{{user.id}}">{{user.email}}</a>
88                 <span class="user-links">
89                 {% block userlinks %}
90                   {% url 'django-admindocs-docroot' as docsroot %}
91                   {% if docsroot %}
92                     <a href="{{ docsroot }}">{% trans 'Documentation' %}</a>
93                    <span class="separator">|</span>
94                   {% endif %}
95                   <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a>
96                   <span class="separator">|</span>
97                   <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
98                   </span>
99                 {% endblock %}
100               </div>
101             {% endif %}
102
103             {% block nav-global %}{% endblock %}
104
105           </div>
106            </div>
107         {% endif %}
108         <!-- END Header -->
109       {% endblock %}
110
111
112       <div class="suit-columns {{ is_popup|yesno:'one-column,two-columns' }}">
113
114         {% block content-center %}
115           <div id="suit-center" class="suit-column">
116
117             {% if not is_popup %}
118             <div id=openCloudTopPage>
119             {% include "/opt/planetstack/templates/admin/newminidashboard.html" %}
120             </div>
121
122               {% block breadcrumbs %}
123                 <ul class="breadcrumb"> 
124                   <li><a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
125                     {% if title %}
126                       <span class="divider">&raquo;</span>
127                       </li>
128                       <li class="active">
129                       {{ title }}
130                     {% endif %}
131                     </li>
132                 </ul>
133               {% endblock %}
134             {% endif %}
135
136             {% block messages %}
137               {% if messages %}
138
139                 {% for message in messages %}
140                   <div class="alert alert-{% firstof message.tags 'info' %}">
141                     <button class="close" data-dismiss="alert">×</button>
142                     <strong>
143                       {% if message.tags %}{{ message.tags|capfirst }}{% else %}
144                         Message{% endif %}!</strong>
145                     {{ message }}
146                   </div>
147                 {% endfor %}
148               {% endif %}
149             {% endblock messages %}
150
151             <!-- Content -->
152             <div id="content" class="{% block coltype %}colM{% endblock %} row-fluid">
153               {% block pretitle %}{% endblock %}
154               {% block content_title %}{% if title %}
155                 <h2 class="content-title">{{ title }}</h2>
156               {% endif %}{% endblock %}
157               {% block content %}
158                 {% block object-tools %}{% endblock %}
159                 {{ content }}
160               {% endblock %}
161               {% block sidebar_content %}
162                 {% block sidebar %}{% endblock %}
163               {% endblock %}
164             </div>
165             <!-- END Content -->
166           <span class="clearfix"></span>
167           </div>
168         {% endblock %}
169
170
171         {% block content-left %}
172           {% if not is_popup %}
173             <div id="suit-left" class="suit-column">
174          
175
176               {% include 'suit/menu.html' %}
177
178             </div>
179           {% endif %}
180         {% endblock %}
181
182       </div>
183     </div>
184   {% endblock %}
185
186   {% if not is_popup %}
187   <!-- Sticky footer push -->
188   <div id="push"></div>
189   {% endif %}
190
191 </div>
192
193 {% block footer %}
194   {% if not is_popup %}
195   <div id="footer" class="footer">
196     <div class="content">
197       <div class="tools">
198         {% block footer_links %}
199           <a href="http://djangosuit.com/support/" target="_blank" class="icon"><i class="icon-question-sign"></i>Support</a>
200           <a href="http://djangosuit.com/pricing/" target="_blank" class="icon"><i class="icon-bookmark"></i>Licence</a>
201           <a href="http://github.com/darklow/django-suit/issues" target="_blank" class="icon"><i class="icon-comment"></i>Report a bug</a>
202         {% endblock %}
203       </div>
204
205       <!-- <div class="copyright">
206         {% block copyright %}
207           Copyright &copy; 2013 DjangoSuit.com<br>Developed by <a href="http://djangosuit.com" target="_blank">DjangoSuit.com</a>
208         {% endblock %}
209       </div> -->
210
211       <div class="branding">{% block footer_branding %}
212         {% with 'ADMIN_NAME'|suit_conf as admin_name %}
213           {{ admin_name }}
214           {% if admin_name == 'Django Suit' %}
215             v{{ 'VERSION'|suit_conf }}
216           {% endif %}
217         {% endwith %}
218       {% endblock %}</div>
219     </div>
220   </div>
221   {% endif %}
222 {% endblock %}
223
224   <script src="{% static 'suit/bootstrap/js/bootstrap.min.js' %}"></script>
225   <script src="{% static 'suit/js/suit.js' %}"></script>
226   <script type="text/javascript" src="//www.google.com/jsapi"></script>
227   <script src="{% static 'planetstack_graphs.js' %}"></script>
228   <!-- src="{% static 'planetstack_graphs_old.js' %}" -->
229
230   {% block extrajs %}{% endblock %}
231 <script src="http://d3js.org/d3.v3.js"></script>
232         <div class="modal fade hide" id="chartsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
233           <div class="modal-dialog">
234             <div class="modal-content">
235               <!--<div class="modal-header">
236                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
237                 <h4 class="modal-title" id="myModalLabel">OpenCloud</h4>
238               </div>-->
239               <div class="modal-body" style="overflow-y:hidden; overflow-x:hidden;">
240                 <div class="chartContainer">
241                         <div class="row">
242                                 <div class=" padding">
243                                 </div>
244                         </div>
245
246                         <div class="row">
247                                 <div class=" heading">
248                                         <p id="chartHeading" class="heading">OpenCloud</p>      
249                                 </div>
250                         </div>
251                         <div class="row">
252                                 <div class="padding"></div>
253                                 <div class="padding"></div>
254                         </div>
255                         <div class="row">
256                                 <div id="graph" class="graph">
257                                 </div>
258                         </div>
259                 </div>
260                 <div id="graph_work" style="display:none"></div>
261               </div>
262               <!--<div class="modal-footer">
263                 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
264               </div>-->
265             </div><!-- /.modal-content -->
266           </div><!-- /.modal-dialog -->
267         </div><!-- /.modal -->
268
269
270 <script>
271
272
273
274
275 </script>
276 </body>
277 </html>