root / hci / trunk / eneraptor-web-app / grails-app / views / config / hci.gsp @ 5
History | View | Annotate | Download (1.31 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="HCI configuration"> |
11 |
<g:form name="hci-config-form" action="saveHci"> |
12 |
|
13 |
<label for="hci-version">HCI Version</label> |
14 |
<g:textField name="hci-version" value="${conf.findByConfigId('hci-version').configVal}" disabled="true" /> |
15 |
|
16 |
</g:form> |
17 |
</erptr:box> |
18 |
|
19 |
<erptr:box title="Known devices"> |
20 |
|
21 |
<table width="100%"> |
22 |
<thead> |
23 |
<tr> |
24 |
<th width="28px"> </th> |
25 |
<th width="200px">Device ID</th> |
26 |
<th width="200px">Friendly name</th> |
27 |
<th>Description</th> |
28 |
<th width="60px">Options</th> |
29 |
</tr> |
30 |
</thead> |
31 |
<tbody> |
32 |
<g:each in="${devices}" var="device"> |
33 |
<tr> |
34 |
<td> |
35 |
<g:if test="${device.iconPath}"> |
36 |
<erptr:icon w="${device.iconPath}" /> |
37 |
</g:if> |
38 |
</td> |
39 |
<td>${device.deviceId}</td> |
40 |
<td>${device.friendlyName}</td> |
41 |
<td>${device.description}</td> |
42 |
<td>todo</td> |
43 |
</tr> |
44 |
</g:each> |
45 |
</tbody> |
46 |
</table> |
47 |
<g:if test="${devices.size() < 1}"> |
48 |
<center>There are no known devices.</center> |
49 |
</g:if> |
50 |
|
51 |
<br /> |
52 |
|
53 |
<g:link action="addDevice"> |
54 |
<erptr:icon w="add" /> |
55 |
Add a new device |
56 |
</g:link> |
57 |
|
58 |
</erptr:box> |
59 |
|
60 |
</body> |
61 |
|
62 |
</html> |