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