Statistics
| Revision:

root / hci / trunk / eneraptor-web-app / grails-app / views / sysState / measure.gsp @ 6

History | View | Annotate | Download (1.61 KB)

1
<html>
2

    
3
<head>
4
	<title>System State &raquo; Last measurements</title>
5
	<meta name="layout" content="main" />
6
</head>
7

    
8
<body>
9

    
10
	<erptr:box title="Last measurements">
11
		<form id="measureForm" action="measureUpdate">
12
			<table>
13
				<thead>
14
					<tr>
15
						<th style="width:20px;">&nbsp;</th>
16
						<th style="width:200px;">Device</th>
17
						<th>Value</th>
18
						<th style="width:200px;">Time measured</th>
19
					</tr>
20
				</thead>
21
				<tbody>
22
					<g:each in="${inDevicesData}" var="inDevice">
23
						<tr>
24
							<td>
25
								&nbsp;<g:checkBox name="${inDevice.deviceId}" />
26
							</td>
27
							<td><p>
28
							<g:if test="${inDevice.icon}">
29
								<erptr:icon w="${inDevice.icon}" />&nbsp;
30
							</g:if>
31
							${inDevice.friendlyName}</p></td>
32
							<td><p>${inDevice.loggedData?.reportedData ?: '<i>this device has not returned any value yet</i>'}</p></td>
33
							<td><p>${inDevice.loggedData?.dateRecieved ?: '<i>never</i>'}</p></td>
34
						</tr>
35
					</g:each>
36
				</tbody>
37
			</table>
38
			
39
			<p><a href="#" onclick="checkToggle('measureForm');return false;">Check / uncheck</a> all.</p>
40
			
41
			<table style="border:0px;">
42
				<tr>
43
					<td style="width:25px;border:0px;"><g:submitButton name="measureFormSubmit" type="image" src="${resource(dir:'img/icons/',file:'arrow_refresh.png')}" onclick="\$('refreshLabel').innerHTML = 'Refreshing... Please wait.';" /></td>
44
					<td style="border:0px;"><p id="refreshLabel" style="position:relative;top:-2px">Refresh selected devices' values manually</p></td>
45
				</tr>
46
			</table>
47
			
48
		</form>		
49
	</erptr:box>
50
	
51
	<js:checkBoxToggle />
52

    
53
</body>
54

    
55
</html>