|
Last change
on this file since 836 was
834,
checked in by gav, 15 years ago
|
|
AJAX Work Done and PM Entry, second draft, part 2.
|
|
File size:
2.4 KB
|
| Line | |
|---|
| 1 | |
|---|
| 2 | <h1> |
|---|
| 3 | <g:if test="${entryList[0]?.entryType?.id == 1}"> |
|---|
| 4 | Faults |
|---|
| 5 | </g:if> |
|---|
| 6 | <g:if test="${entryList[0]?.entryType?.id == 2}"> |
|---|
| 7 | Causes |
|---|
| 8 | </g:if> |
|---|
| 9 | <g:if test="${entryList[0]?.entryType?.id == 3}"> |
|---|
| 10 | Work Done |
|---|
| 11 | </g:if> |
|---|
| 12 | <g:if test="${entryList[0]?.entryType?.id == 6}"> |
|---|
| 13 | PM Entries |
|---|
| 14 | </g:if> |
|---|
| 15 | </h1> |
|---|
| 16 | <div class="list"> |
|---|
| 17 | <table> |
|---|
| 18 | <thead> |
|---|
| 19 | <tr> |
|---|
| 20 | <th>Comment</th> |
|---|
| 21 | <th>Date Done</th> |
|---|
| 22 | <th>Duration</th> |
|---|
| 23 | <th>Entered By</th> |
|---|
| 24 | <th></th> |
|---|
| 25 | </tr> |
|---|
| 26 | </thead> |
|---|
| 27 | <tbody> |
|---|
| 28 | <g:each in="${entryList}" status="i" var="entry"> |
|---|
| 29 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
|---|
| 30 | |
|---|
| 31 | <td width="65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
|---|
| 32 | ${entry.comment.encodeAsHTML()} |
|---|
| 33 | </td> |
|---|
| 34 | |
|---|
| 35 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
|---|
| 36 | <g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/> |
|---|
| 37 | </td> |
|---|
| 38 | |
|---|
| 39 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
|---|
| 40 | ${entry.durationHour}:${entry.durationMinute} |
|---|
| 41 | </td> |
|---|
| 42 | |
|---|
| 43 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
|---|
| 44 | ${entry.enteredBy.encodeAsHTML()} |
|---|
| 45 | </td> |
|---|
| 46 | |
|---|
| 47 | <td class="notClickable"> |
|---|
| 48 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
|---|
| 49 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" title="Edit" /> |
|---|
| 50 | </g:link> |
|---|
| 51 | </td> |
|---|
| 52 | |
|---|
| 53 | </tr> |
|---|
| 54 | </g:each> |
|---|
| 55 | </tbody> |
|---|
| 56 | </table> |
|---|
| 57 | </div> |
|---|
Note: See
TracBrowser
for help on using the repository browser.