[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> |
---|
[858] | 32 | <g:if test="${entryList[0].entryType.id == 1}"> |
---|
| 33 | <th>Production</th> |
---|
| 34 | <th>Down Time</th> |
---|
| 35 | </g:if> |
---|
[834] | 36 | <th>Entered By</th> |
---|
| 37 | <th></th> |
---|
| 38 | </tr> |
---|
| 39 | </thead> |
---|
| 40 | <tbody> |
---|
| 41 | <g:each in="${entryList}" status="i" var="entry"> |
---|
| 42 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
| 43 | |
---|
[838] | 44 | <g:if test="${entryList[0]?.entryType?.id == 6}"> |
---|
| 45 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 46 | ${entry.highestSeverity.code.encodeAsHTML()} |
---|
| 47 | </td> |
---|
| 48 | </g:if> |
---|
| 49 | |
---|
[834] | 50 | <td width="65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 51 | ${entry.comment.encodeAsHTML()} |
---|
| 52 | </td> |
---|
| 53 | |
---|
| 54 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 55 | <g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/> |
---|
| 56 | </td> |
---|
| 57 | |
---|
[846] | 58 | <g:if test="${(entryList[0].entryType.id == 3) || (entryList[0].entryType.id == 6)}"> |
---|
| 59 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 60 | ${entry.durationHour}:${entry.durationMinute} |
---|
| 61 | </td> |
---|
| 62 | </g:if> |
---|
[834] | 63 | |
---|
[858] | 64 | <g:if test="${entryList[0].entryType.id == 1}"> |
---|
| 65 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 66 | ${fieldValue(bean:entry, field:'productionReference')} |
---|
| 67 | </td> |
---|
| 68 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 69 | ${entry.durationHour}:${entry.durationMinute} |
---|
| 70 | </td> |
---|
| 71 | </g:if> |
---|
| 72 | |
---|
[834] | 73 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 74 | ${entry.enteredBy.encodeAsHTML()} |
---|
| 75 | </td> |
---|
| 76 | |
---|
| 77 | <td class="notClickable"> |
---|
| 78 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 79 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" title="Edit" /> |
---|
| 80 | </g:link> |
---|
| 81 | </td> |
---|
| 82 | |
---|
| 83 | </tr> |
---|
| 84 | </g:each> |
---|
| 85 | </tbody> |
---|
| 86 | </table> |
---|
| 87 | </div> |
---|