blob: 2443bbbbb480c2245b544f870f9a79b0bff06e8c [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
65</script>
66{% endblock %}
67
68{% block content %}
69dashboard goes here
70{% endblock %}