blob: 15aa3d2a5e22b7caba03c6ce917c5f23db06bda5 [file] [log] [blame]
Matteo Scandolo42e3fe22016-05-27 14:52:37 -07001{% load admin_static %}{% load suit_tags core_tags %}{% load url from future %}
Matteo Scandoloc442e102015-11-11 11:45:10 +01002<!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 Scandolo2500e392016-03-25 17:20:27 -07005 <meta name="viewport" content="width=device-width, initial-scale=1">
Matteo Scandolo56304cf2016-03-24 17:28:33 -07006 <title>
7 {% block title %}
8 {%if title %}
9 {{ title }} |
10 {% endif %}
11 {{XOS_BRANDING_NAME}}
12 {% endblock %}
13 </title>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040014 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% endblock %}"/>
Matteo Scandolo2500e392016-03-25 17:20:27 -070015 <!--<link rel="stylesheet" type="text/css" href="{% static 'suit/bootstrap/dist/css/bootstrap.min.css' %}" media="all"/>-->
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040016 <link rel="stylesheet" type="text/css" href="{% static 'suit/css/suit.css' %}" media="all">
Scott Baker97468b72015-02-18 15:15:58 -080017 <link rel="stylesheet" type="text/css" href="{% static 'xos.css' %}" media="all">
Matteo Scandolo90ed0642016-04-25 10:11:56 -070018 <link rel="stylesheet" type="text/css" href="{% static 'xosNgLib.css' %}" media="all">
Scott Bakerd1705e32015-07-20 15:49:00 -070019 {% if XOS_BRANDING_CSS %}
Matteo Scandolod728a712015-11-13 09:33:39 +010020 <link rel="stylesheet" type="text/css" href="{% static 'cord.css' %}" media="all">
Matteo Scandoloc442e102015-11-11 11:45:10 +010021 <link rel="stylesheet" type="text/css" href="{{ XOS_BRANDING_CSS }}">
Scott Bakerd1705e32015-07-20 15:49:00 -070022 {% endif %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040023 {% block extrastyle %}{% endblock %}
Matteo Scandoloc442e102015-11-11 11:45:10 +010024 {% if LANGUAGE_BIDI %}
25 <link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}"/>
26 {% endif %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040027 <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>
Scott Baker771819b2014-03-19 22:10:17 -070028 <script src="{% static 'suit/js/jquery-1.9.1.min.js' %}"></script>
Scott Baker904bada2014-03-27 09:16:37 -070029 <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
Scott Baker8c582192014-06-10 20:49:22 -070030 <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
Scott Baker9f6b8ed2014-11-17 23:44:03 -080031 <script type="text/javascript" src="{% static 'log4javascript-1.4.6/log4javascript.js' %}"></script>
32 <script type="text/javascript" src="{% static 'uploadTextarea.js' %}"></script>
Scott Baker904bada2014-03-27 09:16:37 -070033
Matteo Scandolod4771392015-11-04 12:41:13 +010034 <!-- ngXosLib -->
35 <script src="{% static 'js/vendor/ngXosVendor.js' %}"></script>
Matteo Scandolo2b626742015-11-04 16:03:59 +010036 <script src="{% static 'js/vendor/ngXosHelpers.js' %}"></script>
Matteo Scandolod4771392015-11-04 12:41:13 +010037
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040038 <script type="text/javascript">var Suit = { $: $.noConflict() }; if (!$) $ = Suit.$; </script>
39 {% if 'SHOW_REQUIRED_ASTERISK'|suit_conf %}
40 <style type="text/css">.required:after { content: '*'; margin: 0 0 0 5px; position: absolute; color: #ccc;}</style>
41 {% endif %}
42 {% block extrahead %}{% endblock %}
43 {% block blockbots %}
Matteo Scandoloc442e102015-11-11 11:45:10 +010044 <meta name="robots" content="NONE,NOARCHIVE"/>
45 {% endblock %}
Matteo Scandolo1c267cc2016-02-04 14:48:01 -080046 <link rel="shortcut icon" href="{{ XOS_BRANDING_FAVICON }}"></head>
Matteo Scandoloc442e102015-11-11 11:45:10 +010047 {% load i18n %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040048<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
Matteo Scandoloc442e102015-11-11 11:45:10 +010049 <div id="dialog-placeholder">
50 <!-- This is a placeholder for dialog boxes, like the observer calendar -->
51 </div>
Scott Baker9edfdc02015-02-11 15:54:44 -080052
Matteo Scandoloc442e102015-11-11 11:45:10 +010053 <!-- Sticky footer wrap -->
54 <div id="wrap">
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040055
Matteo Scandoloc442e102015-11-11 11:45:10 +010056 <!-- Container -->
57 {% block container %}
58 <!-- <div id="container"> -->
59
60 <!-- </div> -->
61 <!-- END Header -->
Matteo Scandolod06ee822015-12-07 13:46:22 -080062 {% if not is_popup %}
Matteo Scandoloc442e102015-11-11 11:45:10 +010063 <div id="wrapper">
Matteo Scandolod06ee822015-12-07 13:46:22 -080064 {% endif %}
65
66 {% if is_popup %}
67 <div id="wrapper-popup">
68 {% endif %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -040069
Matteo Scandoloc442e102015-11-11 11:45:10 +010070 <!-- Sidebar -->
Matteo Scandolod06ee822015-12-07 13:46:22 -080071 {% if not is_popup %}
Matteo Scandoloc442e102015-11-11 11:45:10 +010072 <div id="sidebar-wrapper">
73 <a href="{% url 'admin:index' %}" class="hidden-xs">
teone7ece6822015-12-09 13:10:20 -080074 <img class="logo" src="{% static XOS_BRANDING_ICON %}"/>
Matteo Scandoloc442e102015-11-11 11:45:10 +010075 </a>
Matteo Scandolo335c9b72016-03-25 13:33:10 -070076 {% comment %}
77 <!--{% include 'suit/menu.html' %}-->
78 {% endcomment %}
Matteo Scandolo4ac437b2016-01-20 16:23:20 -080079 {% include 'admin/menu.html' %}
Matteo Scandoloc442e102015-11-11 11:45:10 +010080 <button class="navbar-toggle collapsed visible-xs" type="button">
81 <i class="glyphicon glyphicon-arrow-left"></i>
82 </button>
83 </div>
Matteo Scandolod06ee822015-12-07 13:46:22 -080084 {% endif %}
Matteo Scandoloc442e102015-11-11 11:45:10 +010085 <!-- /#sidebar-wrapper -->
86
87 <!-- Page Content -->
88 <div id="page-content-wrapper">
89 <div class="container-fluid">
90 <div class="row">
91 <div class="col-xs-12">
92 {% block header %}
93 {% if not is_popup %}
94 <!-- Header -->
95 <div id="header" class="header">
96 <button class="navbar-toggle collapsed" type="button">
97 <span class="icon-bar"></span>
98 <span class="icon-bar"></span>
99 <span class="icon-bar"></span>
100 </button>
101 {% block logo %}
102 <a href="{% url 'admin:index' %}" class="visible-xs">
Matteo Scandolo18fa3132016-02-04 15:04:23 -0800103 <img class="logo" src="{% static XOS_BRANDING_ICON %}"/>
Matteo Scandoloc442e102015-11-11 11:45:10 +0100104 </a>
105 {% endblock %}
106 <!-- <div id="branding">
107 {% block quick-search %}
108 {% with 'SEARCH_URL'|suit_conf as search_url %}
109 {% if search_url %}
110 <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>
111 <input type="text" name="q" class="input-medium search-query" id="quick-search">
112 <input type="submit" class="submit" value="">
113 </form>
114 {% endif %}
115 {% endwith %}
116 {% endblock %}
117 </div> -->
118 {% block header_time %}
119 <!-- <div id="branding2">
120 <div class="header-content header-content-first">
121 <div class="header-column icon"> <i class="icon-time"></i></div>
122 <div class="header-column">
123 <span class="date">{% suit_date %}</span>
124 <br>
125 <span class="time" id="clock">{% suit_time %}</span>
126 </div>
127 </div>
128 </div> -->
129 {% endblock %}
130
131 {% block header_content %}
132 <div class="header-content">
133 <div class="header-column icon">
134 <i class="icon-comment"></i>
135 </div>
136 <div class="header-column">
137 <a href="" class="grey"> <b>2</b>
138 new messages
139 </a>
140 </div>
141 </div>
142 {% endblock %}
143
144 {% if user.is_active and user.is_staff %}
Matteo Scandolo42e3fe22016-05-27 14:52:37 -0700145 {% notification %}
Matteo Scandoloc442e102015-11-11 11:45:10 +0100146 <div id="user-tools">
147 {% trans 'Welcome,' %}
148 <a href="http://{{ request.get_host}}/admin/core/user/{{user.id}}">{{user.email}}</a>
Matteo Scandoloc442e102015-11-11 11:45:10 +0100149 <span class="user-links">
150 {% block userlinks %}
151 {% url 'django-admindocs-docroot' as docsroot %}
152 {% if docsroot %}
153 <a href="http://guide.xosproject.org/">{% trans 'Documentation' %}</a>
154 <span class="separator">|</span>
155 {% endif %}
156 <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a>
157 <span class="separator">|</span>
158 <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
159 {% endblock %}
160 </span>
161 </div>
162 {% endif %}
163
164 {% block nav-global %}
165 {% endblock %}
166 </div>
167 {% endif %}
Siobhan Tullycf04fb62014-01-11 11:25:57 -0500168 {% endblock %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400169 </div>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400170 </div>
Matteo Scandolo02c685a2016-03-28 10:21:48 -0700171 <div class="row content-wrapper">
Matteo Scandoloc442e102015-11-11 11:45:10 +0100172 <div class="col-lg-12">
173 <div class="suit-columns {{ is_popup|yesno:'one-column,two-columns' }}">
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100174 {% block content-center %}
175 {% if not is_popup %}
176 {% block minidash %}
177 <div id="openCloudTopPage">
178 {% include "admin/newminidashboard.html" %}
179 </div>
180 {% endblock %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400181
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100182 {% block breadcrumbs %}
183 <ul class="breadcrumb">
184 <li>
185 <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
186 {% if title %}
187 <span class="divider">&raquo;</span>
188 </li>
189 <li class="active">
190 {{ title }}
Matteo Scandoloc442e102015-11-11 11:45:10 +0100191 {% endif %}
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100192 </li>
193 </ul>
194 {% endblock %}
195 {% endif %}
Matteo Scandoloe34392f2015-11-10 17:29:57 +0100196
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100197 {% block messages %}
198 {% if messages %}
199 {% for message in messages %}
200 <div class="alert alert-{% firstof message.tags 'info' %}">
201 <button class="close" data-dismiss="alert">×</button>
202 <strong>{% if message.tags %}{{ message.tags|capfirst }}{% else %}Message{% endif %}!</strong>
203 {{ message }}
204 </div>
205 {% endfor %}
206 {% endif %}
207 {% endblock messages %}
Matteo Scandoloe34392f2015-11-10 17:29:57 +0100208
Matteo Scandoloc442e102015-11-11 11:45:10 +0100209 <!-- Content -->
Matteo Scandolo02c685a2016-03-28 10:21:48 -0700210 <div id="content" class="{% block coltype %}colM{% endblock %} row">
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100211 {% block pretitle %}
212 {% endblock %}
213 {% block content_title %}
214 {% if title %}
215 <h2 class="content-title">{{ title }}</h2>
216 {% endif %}
217 {% endblock %}
218 {% block content %}
219 {% block object-tools %}
220 {% endblock %}
221 {{ content }}
222 {% endblock %}
223 {% block sidebar_content %}
224 {% block sidebar %}{% endblock %}
225 {% endblock %}
Matteo Scandoloc442e102015-11-11 11:45:10 +0100226 </div>
227 <!-- END Content -->
228 <span class="clearfix"></span>
229 <!-- </div>
230 -->
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100231 {% endblock %}
Matteo Scandoloc442e102015-11-11 11:45:10 +0100232 </div>
233 </div>
Matteo Scandoloe34392f2015-11-10 17:29:57 +0100234 </div>
235 </div>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400236 </div>
Matteo Scandoloc442e102015-11-11 11:45:10 +0100237 <!-- /#page-content-wrapper -->
238 <!-- /#wrapper -->
239 {% endblock %}
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400240 </div>
Matteo Scandoloc442e102015-11-11 11:45:10 +0100241 {% if not is_popup %}
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100242 <!-- Sticky footer push -->
243 <div id="push"></div>
244 {% endif %}
Matteo Scandoloc442e102015-11-11 11:45:10 +0100245
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100246 {% block footer %}
247 {% if not is_popup %}
248 <div id="footer" class="footer">
Matteo Scandolo3943bbf2016-03-30 07:58:30 -0700249 <div class="container-fluid">
250 <div class="row">
251 <div class="tools col-xs-4">
252 {% block footer_links %}
Matteo Scandolode7361f2016-07-08 11:08:20 -0700253 <a href="https://wiki.opencord.org/" target="_blank" class="icon">
Matteo Scandolo3943bbf2016-03-30 07:58:30 -0700254 <i class="icon-question-sign"></i>
255 Support
256 </a>
Matteo Scandolode7361f2016-07-08 11:08:20 -0700257 <a href="https://wiki.opencord.org/" target="_blank" class="icon">
Matteo Scandolo3943bbf2016-03-30 07:58:30 -0700258 <i class="icon-bookmark"></i>
259 Licence
260 </a>
Matteo Scandolode7361f2016-07-08 11:08:20 -0700261 <a href="https://wiki.opencord.org/" target="_blank" class="icon">
Matteo Scandolo3943bbf2016-03-30 07:58:30 -0700262 <i class="icon-comment"></i>
263 Report a bug
264 </a>
265 {% endblock %}
266 </div>
Matteo Scandoloc442e102015-11-11 11:45:10 +0100267
Matteo Scandolo3943bbf2016-03-30 07:58:30 -0700268 <div class="branding col-xs-4">
269 {% block footer_branding %}
270 {% with 'ADMIN_NAME'|suit_conf as admin_name %}
271 {{XOS_BRANDING_NAME}}
272 <!-- {{ admin_name }} -->
273 {% endwith %}
274 {% endblock %}
275 </div>
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100276 </div>
Matteo Scandolo3943bbf2016-03-30 07:58:30 -0700277 <div class="row">
278 <div class="statusMsg col-xs-12" id="statusMsg">
279 <!-- this is a placeholder for xoslib views to display status messages -->
280 </div>
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100281 </div>
Matteo Scandoloc442e102015-11-11 11:45:10 +0100282 </div>
283 </div>
Matteo Scandolo9ff1a2a2015-11-11 12:29:36 +0100284 {% endif %}
285 {% endblock %}
286 </div>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400287
Matteo Scandolo9a607262015-11-10 17:13:04 +0100288 <script src="{% static 'suit/bootstrap/dist/js/bootstrap.min.js' %}"></script>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400289 <script src="{% static 'suit/js/suit.js' %}"></script>
Scott Baker771819b2014-03-19 22:10:17 -0700290 <script type="text/javascript" src="//www.google.com/jsapi"></script>
Matteo Scandoloc442e102015-11-11 11:45:10 +0100291 {% block extrajs %}
292 {% endblock %}
293 <script src="http://d3js.org/d3.v3.js"></script>
294 <div class="modal fade hide" id="chartsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
295 <div class="modal-dialog">
296 <div class="modal-content">
297 <!--<div class="modal-header">
298 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
299 <h4 class="modal-title" id="myModalLabel">OpenCloud</h4>
300 </div>-->
301 <div class="modal-body" style="overflow-y:hidden; overflow-x:hidden;">
302 <div class="chartContainer">
303 <div class="row">
304 <div class=" padding"></div>
305 </div>
Scott Baker771819b2014-03-19 22:10:17 -0700306
Matteo Scandoloc442e102015-11-11 11:45:10 +0100307 <div class="row">
308 <div class=" heading">
309 <p id="chartHeading" class="heading">OpenCloud</p>
310 </div>
311 </div>
312 <div class="row">
313 <div class="padding"></div>
314 <div class="padding"></div>
315 </div>
316 <div class="row">
317 <div id="graph" class="graph"></div>
318 </div>
319 </div>
320 <div id="graph_work" style="display:none"></div>
321 </div>
322 <!--<div class="modal-footer">
323 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
324 </div>
325 -->
326 </div>
327 <!-- /.modal-content -->
328 </div>
329 <!-- /.modal-dialog -->
330 </div>
331 <!-- /.modal -->
Sapan Bhatiaed4a9542014-02-27 13:16:49 -0500332
Matteo Scandoloc442e102015-11-11 11:45:10 +0100333 <!-- Menu Toggle Script -->
334 <script>
335 $(".navbar-toggle").click(function(e) {
336 e.preventDefault();
337 $("#wrapper").toggleClass("toggled");
338 });
339 </script>
Siobhan Tullybfd11dc2013-09-03 12:59:24 -0400340</body>
teone7ece6822015-12-09 13:10:20 -0800341</html>