[834] | 1 | |
---|
| 2 | <h1> |
---|
[846] | 3 | <g:if test="${entryList[0].entryType.id == 1}"> |
---|
[834] | 4 | Faults |
---|
| 5 | </g:if> |
---|
[846] | 6 | <g:if test="${entryList[0].entryType.id == 2}"> |
---|
[834] | 7 | Causes |
---|
| 8 | </g:if> |
---|
[846] | 9 | <g:if test="${entryList[0].entryType.id == 3}"> |
---|
[834] | 10 | Work Done |
---|
| 11 | </g:if> |
---|
[846] | 12 | <g:if test="${entryList[0].entryType.id == 6}"> |
---|
[834] | 13 | PM Entries |
---|
| 14 | </g:if> |
---|
| 15 | </h1> |
---|
| 16 | <div class="list"> |
---|
| 17 | <table> |
---|
| 18 | <thead> |
---|
| 19 | <tr> |
---|
[846] | 20 | <g:if test="${entryList[0].entryType.id == 6}"> |
---|
[838] | 21 | <th> |
---|
| 22 | <img src="${resource(dir:'images/skin',file:'award_star_silver_3.png')}" |
---|
| 23 | alt="Severity" |
---|
| 24 | title="Highest Severity" /> |
---|
| 25 | </th> |
---|
| 26 | </g:if> |
---|
[834] | 27 | <th>Comment</th> |
---|
| 28 | <th>Date Done</th> |
---|
[846] | 29 | <g:if test="${(entryList[0].entryType.id == 3) || (entryList[0].entryType.id == 6)}"> |
---|
| 30 | <th>Duration</th> |
---|
| 31 | </g:if> |
---|
[834] | 32 | <th>Entered By</th> |
---|
| 33 | <th></th> |
---|
| 34 | </tr> |
---|
| 35 | </thead> |
---|
| 36 | <tbody> |
---|
| 37 | <g:each in="${entryList}" status="i" var="entry"> |
---|
| 38 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
| 39 | |
---|
[838] | 40 | <g:if test="${entryList[0]?.entryType?.id == 6}"> |
---|
| 41 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 42 | ${entry.highestSeverity.code.encodeAsHTML()} |
---|
| 43 | </td> |
---|
| 44 | </g:if> |
---|
| 45 | |
---|
[834] | 46 | <td width="65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 47 | ${entry.comment.encodeAsHTML()} |
---|
| 48 | </td> |
---|
| 49 | |
---|
| 50 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 51 | <g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/> |
---|
| 52 | </td> |
---|
| 53 | |
---|
[846] | 54 | <g:if test="${(entryList[0].entryType.id == 3) || (entryList[0].entryType.id == 6)}"> |
---|
| 55 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 56 | ${entry.durationHour}:${entry.durationMinute} |
---|
| 57 | </td> |
---|
| 58 | </g:if> |
---|
[834] | 59 | |
---|
| 60 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 61 | ${entry.enteredBy.encodeAsHTML()} |
---|
| 62 | </td> |
---|
| 63 | |
---|
| 64 | <td class="notClickable"> |
---|
| 65 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 66 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" title="Edit" /> |
---|
| 67 | </g:link> |
---|
| 68 | </td> |
---|
| 69 | |
---|
| 70 | </tr> |
---|
| 71 | </g:each> |
---|
| 72 | </tbody> |
---|
| 73 | </table> |
---|
| 74 | </div> |
---|