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