Revision 6 hci/trunk/eneraptor-web-app/grails-app/views/sysState/main.gsp
main.gsp | ||
---|---|---|
6 | 6 |
</head> |
7 | 7 |
|
8 | 8 |
<body> |
9 |
<p>Deluje!</p> |
|
9 |
|
|
10 |
<erptr:box title="Welcome"> |
|
11 |
<p>Welcome to Eneraptor's administration web application (HCI)!</p> |
|
12 |
</erptr:box> |
|
13 |
|
|
14 |
<erptr:box title="Last measurements overview"> |
|
15 |
<table> |
|
16 |
<thead> |
|
17 |
<tr> |
|
18 |
<th style="width:200px;">Device</th> |
|
19 |
<th>Value</th> |
|
20 |
<th style="width:200px;">Time measured</th> |
|
21 |
</tr> |
|
22 |
</thead> |
|
23 |
<tbody> |
|
24 |
<g:each in="${inDevicesData}" var="inDevice"> |
|
25 |
<tr> |
|
26 |
<td><p> |
|
27 |
<g:if test="${inDevice.icon}"> |
|
28 |
<erptr:icon w="${inDevice.icon}" /> |
|
29 |
</g:if> |
|
30 |
${inDevice.friendlyName}</p></td> |
|
31 |
<td><p>${inDevice.loggedData?.reportedData ?: '<i>this device has not returned any value yet</i>'}</p></td> |
|
32 |
<td><p>${inDevice.loggedData?.dateRecieved ?: '<i>never</i>'}</p></td> |
|
33 |
</tr> |
|
34 |
</g:each> |
|
35 |
</tbody> |
|
36 |
</table> |
|
37 |
<br /> |
|
38 |
|
|
39 |
<g:link action="measure"><erptr:icon w="monitor" /> View details and options</g:link> |
|
40 |
|
|
41 |
</erptr:box> |
|
42 |
|
|
43 |
<erptr:box title="Last actions taken overview"> |
|
44 |
<table> |
|
45 |
<thead> |
|
46 |
<tr> |
|
47 |
<th style="width:200px;">Device</th> |
|
48 |
<th>Action taken</th> |
|
49 |
<th style="width:200px;">Time executed</th> |
|
50 |
</tr> |
|
51 |
</thead> |
|
52 |
<tbody> |
|
53 |
<g:each in="${outDevicesData}" var="outDevice"> |
|
54 |
<tr> |
|
55 |
<td><p> |
|
56 |
<g:if test="${outDevice.icon}"> |
|
57 |
<erptr:icon w="${outDevice.icon}" /> |
|
58 |
</g:if> |
|
59 |
${outDevice.friendlyName}</p></td> |
|
60 |
<td><p>${outDevice.loggedData?.reportedData ?: '<i>no actions have been executed on this device yet</i>'}</p></td> |
|
61 |
<td><p>${outDevice.loggedData?.dateRecieved ?: '<i>never</i>'}</p></td> |
|
62 |
</tr> |
|
63 |
</g:each> |
|
64 |
</tbody> |
|
65 |
</table> |
|
66 |
<br /> |
|
67 |
|
|
68 |
<g:link action="actions"><erptr:icon w="lightning" /> View details and options</g:link> |
|
69 |
|
|
70 |
</erptr:box> |
|
71 |
|
|
10 | 72 |
</body> |
11 | 73 |
|
12 | 74 |
</html> |
Also available in: Unified diff