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

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

Update service, controller and view logic to hand Task and Entry highestSeverity.
Also remove associatedAssets from task search panes.

File size: 3.2 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                        <th>Duration</th>
30                        <th>Entered By</th>
31                        <th></th>
32                    </tr>
33                </thead>
34                <tbody>
35                    <g:each in="${entryList}" status="i" var="entry">
36                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}">
37
38                                <g:if test="${entryList[0]?.entryType?.id == 6}">
39                                    <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'>
40                                        ${entry.highestSeverity.code.encodeAsHTML()}
41                                    </td>
42                                </g:if>
43
44                                <td width="65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'>
45                                    ${entry.comment.encodeAsHTML()}
46                                </td>
47
48                                <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'>
49                                    <g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/>
50                                </td>
51
52                                <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'>
53                                    ${entry.durationHour}:${entry.durationMinute}
54                                </td>
55
56                                <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'>
57                                    ${entry.enteredBy.encodeAsHTML()}
58                                </td>
59
60                                <td class="notClickable">
61                                    <g:link controller="entryDetailed" action="edit" id="${entry.id}">
62                                        <img  src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" title="Edit" />
63                                    </g:link>
64                                </td>
65
66                            </tr>
67                    </g:each>
68                </tbody>
69            </table>
70        </div>
Note: See TracBrowser for help on using the repository browser.