root / hci / trunk / eneraptor-web-app / grails-app / views / sysLog / browse.gsp @ 76
History | View | Annotate | Download (2.21 KB)
1 | 3 | alexbesir | <html> |
---|---|---|---|
2 | |||
3 | <head> |
||
4 | <title>Log » Browsing</title> |
||
5 | <meta name="layout" content="main" /> |
||
6 | </head> |
||
7 | |||
8 | <body> |
||
9 | |||
10 | 42 | alexbesir | <erptr:box title="Select device and interval"> |
11 | <p>Please, select which devices to show / ignore:</p> |
||
12 | |||
13 | <form id="browseForm" action="browse"> |
||
14 | <g:each in="${devicesForCheckBox}" var="deviceForCheckBox"> |
||
15 | <label for="cb_${deviceForCheckBox.deviceId}"> </label> |
||
16 | <g:checkBox name="cb_${deviceForCheckBox.deviceId}" value="${params['cb_' + deviceForCheckBox.deviceId]}"/> |
||
17 | <span>${deviceForCheckBox.friendlyName}</span> |
||
18 | <br /> |
||
19 | </g:each> |
||
20 | <label for="all_cb"> </label> |
||
21 | <g:checkBox name="all_cb" value="${params['all_cb']}" /> |
||
22 | <span><b>All devices (including <i>unknown devices</i>)</b></span> |
||
23 | <br /><br /> |
||
24 | <label for="fromDate">From</label> |
||
25 | <g:datePicker name="fromDate" value="${params.fromDate}" /> |
||
26 | <br /><br /> |
||
27 | <label for="tillDate">Till</label> |
||
28 | <g:datePicker name="tillDate" value="${params.tillDate}" /> |
||
29 | <br /><br /> |
||
30 | <g:submitButton name="submitButton" value="Show" /> |
||
31 | </form> |
||
32 | |||
33 | </erptr:box> |
||
34 | |||
35 | 3 | alexbesir | <erptr:box title="Browse log"> |
36 | |||
37 | <table width="100%"> |
||
38 | <thead> |
||
39 | <tr> |
||
40 | <th width="40px"><a href="#">Id</a></th> |
||
41 | <th width="200px"><a href="#">Date</a></th> |
||
42 | <th width="200px"><a href="#">Source (device)</a></th> |
||
43 | <th><a href="#">Data</a></th> |
||
44 | <th width="60px"><a href="#">Options</a></th> |
||
45 | </tr> |
||
46 | </thead> |
||
47 | <tbody> |
||
48 | <g:each in="${data}" var="entry"> |
||
49 | <tr> |
||
50 | <td class="a-center">${entry.id}</td> |
||
51 | <td><a href="#">${entry.dateRecieved}</a></td> |
||
52 | 6 | alexbesir | <td><a href="#"> |
53 | <g:if test="${icons[entry.deviceId]}"> |
||
54 | <erptr:icon w="${icons[entry.deviceId]}" /> |
||
55 | </g:if> |
||
56 | <g:if test="${devices[entry.deviceId]}"> |
||
57 | ${devices[entry.deviceId]} |
||
58 | </g:if> |
||
59 | <g:else> |
||
60 | ${entry.deviceId} |
||
61 | </g:else> |
||
62 | </a></td> |
||
63 | 3 | alexbesir | <td>${entry.reportedData}</td> |
64 | <td><erptr:logEntryOptions for="${entry.id}" /></td> |
||
65 | </tr> |
||
66 | </g:each> |
||
67 | </tbody> |
||
68 | </table> |
||
69 | <g:if test="${data.size() < 1}"> |
||
70 | <center>The log is empty.</center> |
||
71 | </g:if> |
||
72 | |||
73 | </erptr:box> |
||
74 | |||
75 | 42 | alexbesir | <js:checkBoxToggle /> |
76 | |||
77 | 3 | alexbesir | </body> |
78 | |||
79 | </html> |