blob: 1f5493856a0161413d5afb16b181de89e80b0900 [file] [log] [blame]
Scott Baker3dd69ac2014-05-18 19:25:50 -07001{% extends "admin/base.html" %}
2{% load admin_static %}
3
4{% block extrahead %}
5<link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/css/jquery.dataTables.css">
6<link rel="stylesheet" type="text/css" href="{% static 'suit/css/suit.css' %}" media="all">
7<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/css/jquery.dataTables_themeroller.css">
Scott Baker06868952015-02-18 15:15:58 -08008<link rel="stylesheet" type="text/css" href="{% static 'xos.css' %}" media="all">
Scott Bakera5b25982015-07-20 15:49:00 -07009{% if XOS_BRANDING_CSS %}
10 <link rel="stylesheet" type="text/css" href="{{ XOS_BRANDING_CSS }}">
11{% endif %}
Scott Baker6cdfad42014-06-10 20:53:02 -070012<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
Scott Baker3dd69ac2014-05-18 19:25:50 -070013<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
14<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
15
16
17<!-- no need to include jquery here as it's already included by base.html. Including it multiple times will break mtuity statistics. -->
18<!-- src="http://code.jquery.com/jquery-1.9.1.js" -->
19
20<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
21<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script>
22<script type="text/javascript" src="{% static 'log4javascript-1.4.6/log4javascript.js' %}"></script>
23<script src="{% static 'js/Leaflet.MakiMarkers.js' %}" > </script>
24
25<script>
26 $(function() {
27 $( "#hometabs" ).tabs({active: 0, //event: "mouseover"
28 //collapsible: true
29 });
30 });
31
32var consoleAppender = new log4javascript.BrowserConsoleAppender();
33var patternLayout = new log4javascript.PatternLayout("%d{HH:mm:ss,SSS} %l{s:l} %-5p - %m{1}%n");
34consoleAppender.setLayout(patternLayout);
35//var log = log4javascript.getDefaultLogger();
36var log = log4javascript.getRootLogger();
37log.addAppender(consoleAppender);
38log.setLevel(log4javascript.Level.ERROR);
39
40function confirmDialog(title,msg) {
41 var dialog = $('<div>'+msg+'</div>');
42 var def = $.Deferred();
43
44 $(dialog).dialog({
45 resizable: false,
46 title: title,
47 autoOpen: true,
48 modal: true,
49 dialogClass: "dashboard-hpc-sliver",
50 buttons: {
51 'OK': function() {
52 def.resolve();
53 log.debug("Chose to add a sliver");
54 $( this ).dialog( "close" );
55 },
56 'Cancel': function() {
57 def.reject();
58 $( this ).dialog( "close" );
59 }
60 },
61 close: {
62 }
63 });
64 return def.promise();
65}
66
Scott Bakere34e67d2014-05-21 17:53:11 -070067function errorDialog(title,msg) {
68 var dialog = $('<div>'+msg+'</div>');
69 var def = $.Deferred();
70
71 $(dialog).dialog({
72 resizable: false,
73 title: title,
74 autoOpen: true,
75 modal: true,
76 dialogClass: "dashboard-hpc-sliver",
77 buttons: {
78 'OK': function() {
79 def.resolve();
Scott Bakere34e67d2014-05-21 17:53:11 -070080 $( this ).dialog( "close" );
81 },
82 },
83 close: {
84 }
85 });
86 return def.promise();
87}
88
Scott Baker3dd69ac2014-05-18 19:25:50 -070089</script>
90{% endblock %}
91
92{% block content %}
93dashboard goes here
94{% endblock %}