Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab
[unfold.git] / portal / templates / onelab / onelab_slice-resource-view.html
1 {% extends "layout_wide.html" %}
2
3 {% block head %}
4 <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC1RUj824JAiHRVqgc2CSIg4CpKHhh84Lw&sensor=false"></script>
5 <script src="{{ STATIC_URL }}js/onelab_slice-resource-view.js"></script>
6 <script>
7         myslice.slice = "{{ slice }}";
8 </script>
9 {% endblock %}
10
11 {% block content %}
12         <div class="col-md-2">
13                 <div id="select-platform" class="list-group">
14                 </div>
15                         
16                 <ul class="list-group">
17                   <li class="list-group-item">Filter: CPU</li>
18                   <li class="list-group-item">Filter: Interface</li>
19                   <li class="list-group-item">...</li>
20                   <li class="list-group-item">...</li>
21                   <li class="list-group-item">...</li>
22                 </ul>
23         
24         </div>
25         <div class="col-md-10" style="height:100%;">
26                 <div class="row">
27                         {% include theme|add:"_widget-slice-sections.html" %}
28                 </div>
29                 <div class="row slice-pending">
30                         <ul class="nav nav-pills">
31                                 <li><a href="">Unreserved</a></li>
32                                 <li><a href="">Reserved</a></li>
33                                 <li><a href="">Pending<span class="badge" id="badge-pending" style="display:none;"></span></a></li>
34                                 <li>
35                                         <button type="button" class="btn btn-primary apply" id="ApplyPendind">Apply</button>
36                                         <button type="button" class="btn btn-default clear">Clear</button>
37                                 </li>
38                                 <li>
39                                         <div id="loading" style="display:none;"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading" /></div>
40                                 </li>
41                         </ul>
42                 </div>
43                 <div class="row">
44                         {% if msg %}
45                         <div class="col-md-12"><p class="alert-success">{{ msg }}</p></div>
46                         {% endif %}
47                 </div>
48                 <div class="row">
49                         <ul class="nav nav-tabs nav-resources">
50                           <li class="active"><a data-panel="resources" href="#">Resources</a></li>
51                           <li id="GoogleMap"><a data-panel="map" href="#">Map</a></li>
52                           <li><a data-panel="pending" href="#">Pending</a></li>
53                           <li><a href="#"></a></li>
54                         </ul>
55                 </div>
56                 <div class="row" style="height:100%;">
57                         <div id="resources" class="panel">
58                 {{list_resources}}
59                         </div>
60                         <div id="map" class="panel" style="height:370px;display:none;">
61                 {{map_resources}}
62                         </div>
63                         <div id="pending" class="panel" style="height:370px;display:none;">
64                 {{pending_resources}}
65                         </div>
66                 </div>
67         </div>
68 {% endblock %}