source: trunk/grails-app/views/entryDetailed/_list.gsp @ 846

Last change on this file since 846 was 846, checked in by gav, 13 years ago

Update Entry list and Task showTaskTab templates to use ajax create/save.

File size: 3.5 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                        <g:if test="${entryList[0].entryType.id == 6}">
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>
27                        <th>Comment</th>
28                        <th>Date Done</th>
29                        <g:if test="${(entryList[0].entryType.id == 3) || (entryList[0].entryType.id == 6)}">
30                            <th>Duration</th>
31                        </g:if>
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
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
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
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>
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>
Note: See TracBrowser for help on using the repository browser.