Merge "Refactor selector step logic"
[pharos-tools.git] / dashboard / src / templates / resource / hostprofile_detail.html
1 {% extends "base.html" %}
2 {% load staticfiles %}
3
4 {% block content %}
5 <div class="row">
6     <div class="col-lg-6">
7         <div class="panel panel-default">
8             <div class="panel-heading clearfix">
9                 <h4 style="display: inline;">Available at</h4>
10                 <a data-toggle="collapse" data-target="#panel_overview" class="btn pull-right" style="line-height: 1;" >Expand</a>
11             </div>
12             <div class="panel-body" id="panel_overview">
13                 <table class="table">
14                     <tr>
15                         <td>
16                             <ul>
17                             {% for lab in hostprofile.labs.all %}
18                                 <li>{{lab.name}}</li>
19                             {% endfor %}
20                             </ul>
21                         </td>
22                     </tr>
23                 </table>
24             </div>
25         </div>
26         <div class="panel panel-default">
27             <div class="panel-heading clearfix">
28                 <h4 style="display: inline;">RAM</h4>
29                 <a data-toggle="collapse" data-target="#panel_overview" class="btn pull-right" style="line-height: 1;" >Expand</a>
30             </div>
31             <div class="panel-body" id="panel_overview">
32                 <table class="table">
33                     <tr>
34                         <td>{{hostprofile.ramprofile.first.amount}}G,
35                             {{hostprofile.ramprofile.first.channels}} channels</td>
36                     </tr>
37                 </table>
38             </div>
39         </div>
40         <div class="panel panel-default">
41             <div class="panel-heading clearfix">
42                 <h4 style="display: inline;">CPU</h4>
43                 <a data-toggle="collapse" data-target="#panel_overview" class="btn pull-right" style="line-height: 1;" >Expand</a>
44             </div>
45             <div class="panel-body" id="panel_overview">
46                 <table class="table">
47                     <tr>
48                         <td>Arch:</td>
49                         <td>{{hostprofile.cpuprofile.first.architecture}}</td>
50                     </tr>
51                     <tr>
52                         <td>Cores:</td>
53                         <td>{{hostprofile.cpuprofile.first.cores}}</td>
54                     </tr>
55                     <tr>
56                         <td>Sockets:</td>
57                         <td>{{hostprofile.cpuprofile.first.cpus}}</td>
58                     </tr>
59                 </table>
60             </div>
61         </div>
62     </div>
63     <div class="col-lg-6">
64         <div class="panel panel-default">
65             <div class="panel-heading clearfix">
66                 <h4 style="display: inline;">Interfaces</h4>
67                 <a data-toggle="collapse" data-target="#panel_overview" class="btn pull-right" style="line-height: 1;" >Expand</a>
68             </div>
69             <div class="panel-body" id="panel_overview">
70                 <table class="table">
71                             {% for intprof in hostprofile.interfaceprofile.all %}
72                             <tr>
73                                 <td>
74                                 <table class="table borderless">
75                                     <tr>
76                                         <td>Name:</td>
77                                         <td>{{intprof.name}}</td>
78                                     </tr>
79                                     <tr>
80                                         <td>Speed:</td>
81                                         <td>{{intprof.speed}}</td>
82                                     </tr>
83                                 </table>
84                                 </td>
85                             </tr>
86                             {% endfor %}
87                 </table>
88             </div>
89         </div>
90     </div>
91     <div class="col-lg-6">
92         <div class="panel panel-default">
93             <div class="panel-heading clearfix">
94                 <h4 style="display: inline;">Disk</h4>
95                 <a data-toggle="collapse" data-target="#panel_overview" class="btn pull-right" style="line-height: 1;" >Expand</a>
96             </div>
97             <div class="panel-body" id="panel_overview">
98                 <table class="table">
99                     <tr>
100                         <td>Size:</td>
101                         <td>{{hostprofile.storageprofile.first.size}} GiB</td>
102                     </tr>
103                     <tr>
104                         <td>Type:</td>
105                         <td>{{hostprofile.storageprofile.first.media_type}}</td>
106                     </tr>
107                     <tr>
108                         <td>Mount Point:</td>
109                         <td>{{hostprofile.storageprofile.first.name}}</td>
110                     </tr>
111                 </table>
112             </div>
113         </div>
114     </div>
115 </div>
116 {% endblock content %}