Statistics
| Revision:

root / hci / trunk / eneraptor-web-app / grails-app / views / config / hci.gsp @ 66

History | View | Annotate | Download (1.46 KB)

1
<html>
2

    
3
<head>
4
	<title>Configuration &raquo; HCI</title>
5
	<meta name="layout" content="main" />
6
</head>
7

    
8
<body>
9
	
10
	<erptr:box title="Known devices">
11
	
12
		<table width="100%">
13
			<thead>
14
				<tr>
15
					<th width="200px">Device ID</th>
16
					<th width="200px">Friendly name</th>
17
					<th width="100px">Capable of making</th>
18
					<th>Description</th>
19
					<th width="60px">Options</th>
20
	            </tr>
21
			</thead>
22
			<tbody>
23
				<g:each in="${devices}" var="device">
24
					<tr>
25
						<td><p>
26
							<g:if test="${device.iconPath}">
27
								<erptr:icon w="${device.iconPath}" /> &nbsp;
28
							</g:if>
29
						${device.deviceId}</p></td>
30
						<td><p>${device.friendlyName}</p></td>
31
						<td><p>
32
							<g:if test="${device.inputDevice && device.outputDevice}">
33
								measurements, actions
34
							</g:if>
35
							<g:if test="${device.inputDevice && !device.outputDevice}">
36
								measurements
37
							</g:if>
38
							<g:if test="${!device.inputDevice && device.outputDevice}">
39
								actions
40
							</g:if>
41
						</p></td>
42
						<td><p>${device.description}</p></td>
43
						<td><center><erptr:changeDeleteOptions table="Hci" for="${device.id}" /></center></td>
44
					</tr>
45
				</g:each>
46
			</tbody>
47
		</table>
48
		<g:if test="${devices.size() < 1}">
49
			<center>There are no known devices.</center>
50
		</g:if>
51
		
52
		<br />
53
		
54
		<g:link action="addDevice">
55
			<erptr:icon w="add" />
56
			Add a new device
57
		</g:link>
58
	
59
	</erptr:box>
60
	
61
</body>
62

    
63
</html>