blob: 8d8dcd1672b4fa18d6908a816b9c909b3ec36ee9 [file] [log] [blame]
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +01001{% load admin_static %}{% load suit_tags %}{% load url from future %}
2<!DOCTYPE html>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -04003<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
4<head>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +01005 <title>{% block title %} {%if title %} {{ title }} | {% endif %} {{ 'ADMIN_NAME'|suit_conf }}{% endblock %}</title>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -04006 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% endblock %}"/>
Matteo Scandolo2d2484f2015-11-10 17:13:04 +01007 <link rel="stylesheet" type="text/css" href="{% static 'suit/bootstrap/dist/css/bootstrap.min.css' %}" media="all"/>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -04008 <link rel="stylesheet" type="text/css" href="{% static 'suit/css/suit.css' %}" media="all">
Scott Baker06868952015-02-18 15:15:58 -08009 <link rel="stylesheet" type="text/css" href="{% static 'xos.css' %}" media="all">
Scott Bakera5b25982015-07-20 15:49:00 -070010 {% if XOS_BRANDING_CSS %}
Matteo Scandolo2bea45e2015-11-13 09:33:39 +010011 <link rel="stylesheet" type="text/css" href="{% static 'cord.css' %}" media="all">
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010012 <link rel="stylesheet" type="text/css" href="{{ XOS_BRANDING_CSS }}">
Scott Bakera5b25982015-07-20 15:49:00 -070013 {% endif %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040014 {% block extrastyle %}{% endblock %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010015 {% if LANGUAGE_BIDI %}
16 <link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}"/>
17 {% endif %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040018 <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>
Scott Baker771819b2014-03-19 22:10:17 -070019 <script src="{% static 'suit/js/jquery-1.9.1.min.js' %}"></script>
Scott Baker904bada2014-03-27 09:16:37 -070020 <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
Scott Baker8c582192014-06-10 20:49:22 -070021 <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
Scott Baker69e045d2014-11-17 23:44:03 -080022 <script type="text/javascript" src="{% static 'log4javascript-1.4.6/log4javascript.js' %}"></script>
23 <script type="text/javascript" src="{% static 'uploadTextarea.js' %}"></script>
Scott Bakere3d6faf2015-01-27 15:29:41 -080024 <script type="text/javascript" src="{% static 'observer_status.js' %}"></script>
Scott Baker904bada2014-03-27 09:16:37 -070025
Matteo Scandolo32f83922016-02-11 09:35:29 -080026 <script
27 src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.min.js"
28 data-apikey="748d877b8b4e211dcd3249c1aa46d263">
29 </script>
30
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +010031 <!-- ngXosLib -->
32 <script src="{% static 'js/vendor/ngXosVendor.js' %}"></script>
Matteo Scandolob0238d32015-11-04 16:03:59 +010033 <script src="{% static 'js/vendor/ngXosHelpers.js' %}"></script>
Matteo Scandolo52d71ed2015-11-04 12:45:55 +010034 <script src="{% static 'js/xosApi.js' %}"></script>
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +010035
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040036 <script type="text/javascript">var Suit = { $: $.noConflict() }; if (!$) $ = Suit.$; </script>
37 {% if 'SHOW_REQUIRED_ASTERISK'|suit_conf %}
38 <style type="text/css">.required:after { content: '*'; margin: 0 0 0 5px; position: absolute; color: #ccc;}</style>
39 {% endif %}
40 {% block extrahead %}{% endblock %}
41 {% block blockbots %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010042 <meta name="robots" content="NONE,NOARCHIVE"/>
43 {% endblock %}
Matteo Scandolo520b1ad2016-02-04 14:48:01 -080044 <link rel="shortcut icon" href="{{ XOS_BRANDING_FAVICON }}"></head>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010045 {% load i18n %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040046<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010047 <div id="dialog-placeholder">
48 <!-- This is a placeholder for dialog boxes, like the observer calendar -->
49 </div>
Scott Baker2cead242015-02-11 15:54:44 -080050
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010051 <!-- Sticky footer wrap -->
52 <div id="wrap">
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040053
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010054 <!-- Container -->
55 {% block container %}
56 <!-- <div id="container"> -->
57
58 <!-- </div> -->
59 <!-- END Header -->
Matteo Scandoloce36ba52015-12-07 13:46:22 -080060 {% if not is_popup %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010061 <div id="wrapper">
Matteo Scandoloce36ba52015-12-07 13:46:22 -080062 {% endif %}
63
64 {% if is_popup %}
65 <div id="wrapper-popup">
66 {% endif %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040067
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010068 <!-- Sidebar -->
Matteo Scandoloce36ba52015-12-07 13:46:22 -080069 {% if not is_popup %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010070 <div id="sidebar-wrapper">
71 <a href="{% url 'admin:index' %}" class="hidden-xs">
teone0ab38632015-12-09 13:10:20 -080072 <img class="logo" src="{% static XOS_BRANDING_ICON %}"/>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010073 </a>
Matteo Scandolof3ce0792016-01-20 16:23:20 -080074 <!--{% include 'suit/menu.html' %}-->
75 {% include 'admin/menu.html' %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010076 <button class="navbar-toggle collapsed visible-xs" type="button">
77 <i class="glyphicon glyphicon-arrow-left"></i>
78 </button>
79 </div>
Matteo Scandoloce36ba52015-12-07 13:46:22 -080080 {% endif %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +010081 <!-- /#sidebar-wrapper -->
82
83 <!-- Page Content -->
84 <div id="page-content-wrapper">
85 <div class="container-fluid">
86 <div class="row">
87 <div class="col-xs-12">
88 {% block header %}
89 {% if not is_popup %}
90 <!-- Header -->
91 <div id="header" class="header">
92 <button class="navbar-toggle collapsed" type="button">
93 <span class="icon-bar"></span>
94 <span class="icon-bar"></span>
95 <span class="icon-bar"></span>
96 </button>
97 {% block logo %}
98 <a href="{% url 'admin:index' %}" class="visible-xs">
Matteo Scandolo6ff07cb2016-02-04 15:04:23 -080099 <img class="logo" src="{% static XOS_BRANDING_ICON %}"/>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100100 </a>
101 {% endblock %}
102 <!-- <div id="branding">
103 {% block quick-search %}
104 {% with 'SEARCH_URL'|suit_conf as search_url %}
105 {% if search_url %}
106 <form class="form-search nav-quick-search" autocomplete="off" action="{% if '/' in search_url %}{{ search_url }}{% else %}{% url search_url %}{% endif %}" method="GET"> <i class="input-icon icon-search"></i>
107 <input type="text" name="q" class="input-medium search-query" id="quick-search">
108 <input type="submit" class="submit" value="">
109 </form>
110 {% endif %}
111 {% endwith %}
112 {% endblock %}
113 </div> -->
114 {% block header_time %}
115 <!-- <div id="branding2">
116 <div class="header-content header-content-first">
117 <div class="header-column icon"> <i class="icon-time"></i></div>
118 <div class="header-column">
119 <span class="date">{% suit_date %}</span>
120 <br>
121 <span class="time" id="clock">{% suit_time %}</span>
122 </div>
123 </div>
124 </div> -->
125 {% endblock %}
126
127 {% block header_content %}
128 <div class="header-content">
129 <div class="header-column icon">
130 <i class="icon-comment"></i>
131 </div>
132 <div class="header-column">
133 <a href="" class="grey"> <b>2</b>
134 new messages
135 </a>
136 </div>
137 </div>
138 {% endblock %}
139
140 {% if user.is_active and user.is_staff %}
141 <div id="user-tools">
142 {% trans 'Welcome,' %}
143 <a href="http://{{ request.get_host}}/admin/core/user/{{user.id}}">{{user.email}}</a>
144 <span id="observer-status"></span>
145 <span class="user-links">
146 {% block userlinks %}
147 {% url 'django-admindocs-docroot' as docsroot %}
148 {% if docsroot %}
149 <a href="http://guide.xosproject.org/">{% trans 'Documentation' %}</a>
150 <span class="separator">|</span>
151 {% endif %}
152 <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a>
153 <span class="separator">|</span>
154 <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
155 {% endblock %}
156 </span>
157 </div>
158 {% endif %}
159
160 {% block nav-global %}
161 {% endblock %}
162 </div>
163 {% endif %}
Siobhan Tullycf04fb62014-01-11 11:25:57 -0500164 {% endblock %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400165 </div>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400166 </div>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100167 <div class="row">
168 <div class="col-lg-12">
169 <div class="suit-columns {{ is_popup|yesno:'one-column,two-columns' }}">
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100170 {% block content-center %}
171 {% if not is_popup %}
172 {% block minidash %}
173 <div id="openCloudTopPage">
174 {% include "admin/newminidashboard.html" %}
175 </div>
176 {% endblock %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400177
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100178 {% block breadcrumbs %}
179 <ul class="breadcrumb">
180 <li>
181 <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
182 {% if title %}
183 <span class="divider">&raquo;</span>
184 </li>
185 <li class="active">
186 {{ title }}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100187 {% endif %}
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100188 </li>
189 </ul>
190 {% endblock %}
191 {% endif %}
Matteo Scandolo7064f722015-11-10 17:29:57 +0100192
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100193 {% block messages %}
194 {% if messages %}
195 {% for message in messages %}
196 <div class="alert alert-{% firstof message.tags 'info' %}">
197 <button class="close" data-dismiss="alert">×</button>
198 <strong>{% if message.tags %}{{ message.tags|capfirst }}{% else %}Message{% endif %}!</strong>
199 {{ message }}
200 </div>
201 {% endfor %}
202 {% endif %}
203 {% endblock messages %}
Matteo Scandolo7064f722015-11-10 17:29:57 +0100204
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100205 <!-- Content -->
206 <div id="content" class="{% block coltype %}colM{% endblock %} row-fluid">
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100207 {% block pretitle %}
208 {% endblock %}
209 {% block content_title %}
210 {% if title %}
211 <h2 class="content-title">{{ title }}</h2>
212 {% endif %}
213 {% endblock %}
214 {% block content %}
215 {% block object-tools %}
216 {% endblock %}
217 {{ content }}
218 {% endblock %}
219 {% block sidebar_content %}
220 {% block sidebar %}{% endblock %}
221 {% endblock %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100222 </div>
223 <!-- END Content -->
224 <span class="clearfix"></span>
225 <!-- </div>
226 -->
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100227 {% endblock %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100228 </div>
229 </div>
Matteo Scandolo7064f722015-11-10 17:29:57 +0100230 </div>
231 </div>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400232 </div>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100233 <!-- /#page-content-wrapper -->
234 <!-- /#wrapper -->
235 {% endblock %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400236 </div>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100237 {% if not is_popup %}
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100238 <!-- Sticky footer push -->
239 <div id="push"></div>
240 {% endif %}
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100241
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100242 {% block footer %}
243 {% if not is_popup %}
244 <div id="footer" class="footer">
245 <div class="content">
246 <div class="tools">
247 {% block footer_links %}
248 <a href="http://djangosuit.com/support/" target="_blank" class="icon">
249 <i class="icon-question-sign"></i>
250 Support
251 </a>
252 <a href="http://djangosuit.com/pricing/" target="_blank" class="icon">
253 <i class="icon-bookmark"></i>
254 Licence
255 </a>
256 <a href="http://github.com/darklow/django-suit/issues" target="_blank" class="icon">
257 <i class="icon-comment"></i>
258 Report a bug
259 </a>
260 {% endblock %}
261 </div>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100262
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100263 <div class="statusMsg" id="statusMsg">
264 <!-- this is a placeholder for xoslib views to display status messages -->
265 </div>
266
267 <div class="branding">
268 {% block footer_branding %}
269 {% with 'ADMIN_NAME'|suit_conf as admin_name %}
Matteo Scandoloa16d44b2015-12-07 12:49:50 -0800270 {{XOS_BRANDING_NAME}}
271 <!-- {{ admin_name }} -->
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100272 {% if admin_name == 'Django Suit' %}
Matteo Scandoloa16d44b2015-12-07 12:49:50 -0800273 {{ 'VERSION'|suit_conf }}
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100274 {% endif %}
275 {% endwith %}
276 {% endblock %}
277 </div>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100278 </div>
279 </div>
Matteo Scandolo8b9d46a2015-11-11 12:29:36 +0100280 {% endif %}
281 {% endblock %}
282 </div>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400283
Matteo Scandolo2d2484f2015-11-10 17:13:04 +0100284 <script src="{% static 'suit/bootstrap/dist/js/bootstrap.min.js' %}"></script>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400285 <script src="{% static 'suit/js/suit.js' %}"></script>
Scott Baker771819b2014-03-19 22:10:17 -0700286 <script type="text/javascript" src="//www.google.com/jsapi"></script>
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100287 {% block extrajs %}
288 {% endblock %}
289 <script src="http://d3js.org/d3.v3.js"></script>
290 <div class="modal fade hide" id="chartsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
291 <div class="modal-dialog">
292 <div class="modal-content">
293 <!--<div class="modal-header">
294 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
295 <h4 class="modal-title" id="myModalLabel">OpenCloud</h4>
296 </div>-->
297 <div class="modal-body" style="overflow-y:hidden; overflow-x:hidden;">
298 <div class="chartContainer">
299 <div class="row">
300 <div class=" padding"></div>
301 </div>
Scott Baker771819b2014-03-19 22:10:17 -0700302
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100303 <div class="row">
304 <div class=" heading">
305 <p id="chartHeading" class="heading">OpenCloud</p>
306 </div>
307 </div>
308 <div class="row">
309 <div class="padding"></div>
310 <div class="padding"></div>
311 </div>
312 <div class="row">
313 <div id="graph" class="graph"></div>
314 </div>
315 </div>
316 <div id="graph_work" style="display:none"></div>
317 </div>
318 <!--<div class="modal-footer">
319 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
320 </div>
321 -->
322 </div>
323 <!-- /.modal-content -->
324 </div>
325 <!-- /.modal-dialog -->
326 </div>
327 <!-- /.modal -->
Sapan Bhatiaed4a9542014-02-27 13:16:49 -0500328
Matteo Scandolo48b1a1d2015-11-11 11:45:10 +0100329 <!-- Menu Toggle Script -->
330 <script>
331 $(".navbar-toggle").click(function(e) {
332 e.preventDefault();
333 $("#wrapper").toggleClass("toggled");
334 });
335 </script>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400336</body>
teone0ab38632015-12-09 13:10:20 -0800337</html>