Scott Baker | 3dd69ac | 2014-05-18 19:25:50 -0700 | [diff] [blame] | 1 | {% 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 Baker | 0686895 | 2015-02-18 15:15:58 -0800 | [diff] [blame^] | 8 | <link rel="stylesheet" type="text/css" href="{% static 'xos.css' %}" media="all"> |
Scott Baker | 6cdfad4 | 2014-06-10 20:53:02 -0700 | [diff] [blame] | 9 | <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> |
Scott Baker | 3dd69ac | 2014-05-18 19:25:50 -0700 | [diff] [blame] | 10 | <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 | |
| 29 | var consoleAppender = new log4javascript.BrowserConsoleAppender(); |
| 30 | var patternLayout = new log4javascript.PatternLayout("%d{HH:mm:ss,SSS} %l{s:l} %-5p - %m{1}%n"); |
| 31 | consoleAppender.setLayout(patternLayout); |
| 32 | //var log = log4javascript.getDefaultLogger(); |
| 33 | var log = log4javascript.getRootLogger(); |
| 34 | log.addAppender(consoleAppender); |
| 35 | log.setLevel(log4javascript.Level.ERROR); |
| 36 | |
| 37 | function 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 Baker | e34e67d | 2014-05-21 17:53:11 -0700 | [diff] [blame] | 64 | function 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 Baker | e34e67d | 2014-05-21 17:53:11 -0700 | [diff] [blame] | 77 | $( this ).dialog( "close" ); |
| 78 | }, |
| 79 | }, |
| 80 | close: { |
| 81 | } |
| 82 | }); |
| 83 | return def.promise(); |
| 84 | } |
| 85 | |
Scott Baker | 3dd69ac | 2014-05-18 19:25:50 -0700 | [diff] [blame] | 86 | </script> |
| 87 | {% endblock %} |
| 88 | |
| 89 | {% block content %} |
| 90 | dashboard goes here |
| 91 | {% endblock %} |