1 {% extends "base.html" %}
6 <!-- Morris Charts CSS -->
7 <link href="{% static "bower_components/morrisjs/morris.css" %}" rel="stylesheet">
9 <!-- DataTables CSS -->
10 <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}"
13 <!-- DataTables Responsive CSS -->
14 <link href="{% static "bower_components/datatables-responsive/css/dataTables.responsive.css" %}"
16 {% endblock extrahead %}
20 {% for resource, utilization, bookings in pods %}
22 <div class="col-lg-12">
23 <div class="panel panel-default">
24 <div class="panel-heading">
27 <div class="panel-body">
28 {% include "dashboard/resource_detail.html" %}
34 {% endblock content %}
38 <!-- DataTables JavaScript -->
39 <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}"
42 <script src={% static "bower_components/datatables/media/js/jquery.dataTables.min.js" %}></script>
43 <script src={% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js" %}></script>
47 <!-- Flot Charts JavaScript -->
48 <script src="{% static "bower_components/flot/excanvas.min.js" %}"></script>
49 <script src="{% static "bower_components/flot/jquery.flot.js" %}"></script>
50 <script src="{% static "bower_components/flot/jquery.flot.pie.js" %}"></script>
51 <script src="{% static "bower_components/flot/jquery.flot.resize.js" %}"></script>
52 <script src="{% static "bower_components/flot/jquery.flot.time.js" %}"></script>
53 <script src="{% static "bower_components/flot.tooltip/js/jquery.flot.tooltip.min.js" %}"></script>
54 <script src="{% static "js/flot-pie-chart.js" %}"></script><
56 <script type="text/javascript">
57 $(document).ready(function () {
58 {% for resource, utilization, bookings in pods %}
60 $('#{{ resource.id }}_server_table').DataTable({});
61 $('#{{ resource.id }}_bookings_table').DataTable({});
62 $('#{{ resource.id }}_vpn_user_table').DataTable({});
64 var chart_id = "{{ resource.id }}_booking_utilization";
65 var utilization_url = "{% url 'dashboard:booking_utilization' resource_id=resource.id weeks=4 %}";
66 loadChartData(chart_id, utilization_url);
70 {% endblock extrajs %}