root / hci / trunk / eneraptor-web-app / grails-app / views / statistics / graphs.gsp @ 42
History | View | Annotate | Download (1.96 KB)
1 |
<html> |
---|---|
2 |
|
3 |
<head> |
4 |
<title>Statistics</title> |
5 |
<meta name="layout" content="main" /> |
6 |
</head> |
7 |
|
8 |
<body> |
9 |
|
10 |
<erptr:box title="Saved graphs"> |
11 |
|
12 |
<table> |
13 |
<thead> |
14 |
<tr> |
15 |
<th><p>Graph name (short description)</p></th> |
16 |
<th><p>For device</p></th> |
17 |
<th><p>Type</p></th> |
18 |
<th><p>Options</p></th> |
19 |
</tr> |
20 |
</thead> |
21 |
<tbody> |
22 |
<g:each in="${savedGraphs}" var="savedGraph"> |
23 |
<tr> |
24 |
<td><p><erptr:icon w="chart_curve" /><g:link action="showGraph" params="[graphId: savedGraph.id]">${savedGraph.name}</g:link></p></td> |
25 |
<td><p>${savedGraph.deviceId}</p></td> |
26 |
<td><p>${savedGraph.type}</p></td> |
27 |
<td><p>TODO</p></td> |
28 |
</tr> |
29 |
</g:each> |
30 |
</tbody> |
31 |
</table> |
32 |
<g:if test="${savedGraphs.size == 0}"> |
33 |
<center><p><i>There are no saved graphs.</i></p></center> |
34 |
</g:if> |
35 |
|
36 |
</erptr:box> |
37 |
|
38 |
<erptr:box title="Create a new graph"> |
39 |
<p>To create a new graph, select one of the graph types below:</p> |
40 |
<table style="text-align:center;border:none;"> |
41 |
<tr> |
42 |
<td style="border:none;"><img src="${resource(dir:'img/',file:'min.png')}" /></td> |
43 |
<td style="border:none;"><img src="${resource(dir:'img/',file:'max.png')}" /></td> |
44 |
<td style="border:none;"><img src="${resource(dir:'img/',file:'avg.png')}" /></td> |
45 |
<td style="border:none;"><img src="${resource(dir:'img/',file:'sum.png')}" /></td> |
46 |
</tr> |
47 |
<tr> |
48 |
<td style="border:none;"><p><g:link action="newGraph" params="[graphType:'min']">Create a minimum value graph</g:link></p></td> |
49 |
<td style="border:none;"><p><g:link action="newGraph" params="[graphType:'max']">Create a maximum value graph</g:link></p></td> |
50 |
<td style="border:none;"><p><g:link action="newGraph" params="[graphType:'avg']">Create a average value graph</g:link></p></td> |
51 |
<td style="border:none;"><p><g:link action="newGraph" params="[graphType:'sum']">Create a cumulative graph</g:link></p></td> |
52 |
</tr> |
53 |
</table> |
54 |
</erptr:box> |
55 |
|
56 |
</body> |
57 |
|
58 |
</html> |