Revision 6 hci/trunk/eneraptor-web-app/grails-app/views/config/hci.gsp
hci.gsp | ||
---|---|---|
7 | 7 |
|
8 | 8 |
<body> |
9 | 9 |
|
10 |
<erptr:box title="HCI configuration"> |
|
11 |
<g:form name="hci-config-form" action="saveHci"> |
|
10 |
<erptr:box title="Information"> |
|
12 | 11 |
|
13 |
<label for="hci-version">HCI Version</label> |
|
14 |
<g:textField name="hci-version" value="${conf.findByConfigId('hci-version').configVal}" disabled="true" /> |
|
12 |
<p>HCI Version: <span style="font-family:monospace;">${conf.findByConfigId('hci-version').configVal}</span></p> |
|
15 | 13 |
|
16 |
</g:form> |
|
14 |
<p style="float: left;">Disk usage: </p> |
|
15 |
<div style="float:left;"> |
|
16 |
<div style="width: 100px;border:1px solid grey;"> |
|
17 |
<div style="width:${percent}px;background:grey;"> |
|
18 |
|
|
19 |
</div> |
|
20 |
</div> |
|
21 |
</div> |
|
22 |
<span> ${percent}% (free space ${(int)freeSpace} MB) </span> |
|
23 |
<g:if test="${percent >= 95}"> |
|
24 |
<i style="color:red;"> Warning: disk is almost full. You should erase some old log entries.</i> |
|
25 |
</g:if> |
|
26 |
|
|
17 | 27 |
</erptr:box> |
18 | 28 |
|
19 | 29 |
<erptr:box title="Known devices"> |
... | ... | |
21 | 31 |
<table width="100%"> |
22 | 32 |
<thead> |
23 | 33 |
<tr> |
24 |
<th width="28px"> </th> |
|
25 | 34 |
<th width="200px">Device ID</th> |
26 | 35 |
<th width="200px">Friendly name</th> |
36 |
<th width="100px">Capable of making</th> |
|
27 | 37 |
<th>Description</th> |
28 | 38 |
<th width="60px">Options</th> |
29 | 39 |
</tr> |
... | ... | |
31 | 41 |
<tbody> |
32 | 42 |
<g:each in="${devices}" var="device"> |
33 | 43 |
<tr> |
34 |
<td> |
|
44 |
<td><p>
|
|
35 | 45 |
<g:if test="${device.iconPath}"> |
36 |
<erptr:icon w="${device.iconPath}" />
|
|
46 |
<erptr:icon w="${device.iconPath}" />
|
|
37 | 47 |
</g:if> |
38 |
</td> |
|
39 |
<td>${device.deviceId}</td> |
|
40 |
<td>${device.friendlyName}</td> |
|
41 |
<td>${device.description}</td> |
|
42 |
<td>todo</td> |
|
48 |
${device.deviceId}</p></td> |
|
49 |
<td><p>${device.friendlyName}</p></td> |
|
50 |
<td><p> |
|
51 |
<g:if test="${device.inputDevice && device.outputDevice}"> |
|
52 |
measurements, actions |
|
53 |
</g:if> |
|
54 |
<g:if test="${device.inputDevice && !device.outputDevice}"> |
|
55 |
measurements |
|
56 |
</g:if> |
|
57 |
<g:if test="${!device.inputDevice && device.outputDevice}"> |
|
58 |
actions |
|
59 |
</g:if> |
|
60 |
</p></td> |
|
61 |
<td><p>${device.description}</p></td> |
|
62 |
<td><center><erptr:changeDeleteOptions table="Hci" for="${device.id}" /></center></td> |
|
43 | 63 |
</tr> |
44 | 64 |
</g:each> |
45 | 65 |
</tbody> |
... | ... | |
57 | 77 |
|
58 | 78 |
</erptr:box> |
59 | 79 |
|
80 |
<erptr:box title="Database information"> |
|
81 |
|
|
82 |
<p>Eneraptor system uses PostgreSQL database management system to store log data and HCI configuration.</p> |
|
83 |
|
|
84 |
<br /> |
|
85 |
|
|
86 |
<div id="dbConfigHolder"> |
|
87 |
<g:remoteLink action="dbInfo" update="dbConfigHolder"><erptr:icon w="eye" />View database configuration</g:remoteLink> |
|
88 |
</div> |
|
89 |
|
|
90 |
<br /> |
|
91 |
|
|
92 |
<g:link action="dbExec"><erptr:icon w="database_edit" />Execute SQL queries manually</g:link> |
|
93 |
|
|
94 |
</erptr:box> |
|
95 |
|
|
60 | 96 |
</body> |
61 | 97 |
|
62 | 98 |
</html> |
Also available in: Unified diff