root / hci / trunk / eneraptor-web-app / grails-app / views / config / hci.gsp @ 16
History | View | Annotate | Download (2.66 KB)
1 |
<html> |
---|---|
2 |
|
3 |
<head> |
4 |
<title>Configuration » HCI</title> |
5 |
<meta name="layout" content="main" /> |
6 |
</head> |
7 |
|
8 |
<body> |
9 |
|
10 |
<erptr:box title="Information"> |
11 |
|
12 |
<p>HCI Version: <span style="font-family:monospace;">${conf.findByConfigId('hci-version').configVal}</span></p> |
13 |
|
14 |
<!-- DISK USAGE - ONLY IF ENERAPTOR HCI IS SUPERUSER |
15 |
<p style="float: left;">Disk usage: </p> |
16 |
<div style="float:left;"> |
17 |
<div style="width: 100px;border:1px solid grey;"> |
18 |
<div style="width:${percent}px;background:grey;"> |
19 |
|
20 |
</div> |
21 |
</div> |
22 |
</div> |
23 |
<span> ${percent}% (free space ${(int)freeSpace} MB) </span> |
24 |
<g:if test="${percent >= 95}"> |
25 |
<i style="color:red;"> Warning: disk is almost full. You should erase some old log entries.</i> |
26 |
</g:if> |
27 |
--> |
28 |
|
29 |
</erptr:box> |
30 |
|
31 |
<erptr:box title="Known devices"> |
32 |
|
33 |
<table width="100%"> |
34 |
<thead> |
35 |
<tr> |
36 |
<th width="200px">Device ID</th> |
37 |
<th width="200px">Friendly name</th> |
38 |
<th width="100px">Capable of making</th> |
39 |
<th>Description</th> |
40 |
<th width="60px">Options</th> |
41 |
</tr> |
42 |
</thead> |
43 |
<tbody> |
44 |
<g:each in="${devices}" var="device"> |
45 |
<tr> |
46 |
<td><p> |
47 |
<g:if test="${device.iconPath}"> |
48 |
<erptr:icon w="${device.iconPath}" /> |
49 |
</g:if> |
50 |
${device.deviceId}</p></td> |
51 |
<td><p>${device.friendlyName}</p></td> |
52 |
<td><p> |
53 |
<g:if test="${device.inputDevice && device.outputDevice}"> |
54 |
measurements, actions |
55 |
</g:if> |
56 |
<g:if test="${device.inputDevice && !device.outputDevice}"> |
57 |
measurements |
58 |
</g:if> |
59 |
<g:if test="${!device.inputDevice && device.outputDevice}"> |
60 |
actions |
61 |
</g:if> |
62 |
</p></td> |
63 |
<td><p>${device.description}</p></td> |
64 |
<td><center><erptr:changeDeleteOptions table="Hci" for="${device.id}" /></center></td> |
65 |
</tr> |
66 |
</g:each> |
67 |
</tbody> |
68 |
</table> |
69 |
<g:if test="${devices.size() < 1}"> |
70 |
<center>There are no known devices.</center> |
71 |
</g:if> |
72 |
|
73 |
<br /> |
74 |
|
75 |
<g:link action="addDevice"> |
76 |
<erptr:icon w="add" /> |
77 |
Add a new device |
78 |
</g:link> |
79 |
|
80 |
</erptr:box> |
81 |
|
82 |
<erptr:box title="Database information"> |
83 |
|
84 |
<p>Eneraptor system uses PostgreSQL database management system to store log data and HCI configuration.</p> |
85 |
|
86 |
<br /> |
87 |
|
88 |
<div id="dbConfigHolder"> |
89 |
<g:remoteLink action="dbInfo" update="dbConfigHolder"><erptr:icon w="eye" />View database configuration</g:remoteLink> |
90 |
</div> |
91 |
|
92 |
<br /> |
93 |
|
94 |
<g:link action="dbExec"><erptr:icon w="database_edit" />Execute SQL queries manually</g:link> |
95 |
|
96 |
</erptr:box> |
97 |
|
98 |
</body> |
99 |
|
100 |
</html> |