| 1 |     <g:if test="${taskInstanceList.size() > 0}"> | 
|---|
| 2 |         <div class="list"> | 
|---|
| 3 |             <table> | 
|---|
| 4 |                 <thead> | 
|---|
| 5 |                     <tr> | 
|---|
| 6 |  | 
|---|
| 7 |                         <custom:sortableColumnWithImg property="attentionFlag" | 
|---|
| 8 |                                                                                         imgSrc="${resource(dir:'images/skin',file:'flag_red.png')}" | 
|---|
| 9 |                                                                                         imgAlt="Flag" | 
|---|
| 10 |                                                                                         imgTitle="Attention Flag" | 
|---|
| 11 |                                                                                         params="${filterParams}" /> | 
|---|
| 12 |  | 
|---|
| 13 |                         <custom:sortableColumnWithImg property="highestSeverity" | 
|---|
| 14 |                                                                                         imgSrc="${resource(dir:'images/skin',file:'award_star_silver_3.png')}" | 
|---|
| 15 |                                                                                         imgAlt="Severity" | 
|---|
| 16 |                                                                                         imgTitle="Highest Severity" | 
|---|
| 17 |                                                                                         params="${filterParams}" /> | 
|---|
| 18 |  | 
|---|
| 19 |                         <g:sortableColumn property="targetStartDate" title="Target Start Date" params="${filterParams}" /> | 
|---|
| 20 |  | 
|---|
| 21 |                         <g:sortableColumn property="description" title="Description" params="${filterParams}" /> | 
|---|
| 22 |  | 
|---|
| 23 |                         <g:sortableColumn property="taskGroup" title="Group" params="${filterParams}" /> | 
|---|
| 24 |  | 
|---|
| 25 |                         <g:sortableColumn  property="taskType" title="Type" params="${filterParams}" /> | 
|---|
| 26 |  | 
|---|
| 27 |                         <custom:sortableColumnWithImg property="taskStatus" | 
|---|
| 28 |                                                                                         imgSrc="${resource(dir:'images/skin',file:'status.png')}" | 
|---|
| 29 |                                                                                         imgAlt="Status" | 
|---|
| 30 |                                                                                         imgTitle="Status" | 
|---|
| 31 |                                                                                         params="${filterParams}" /> | 
|---|
| 32 |  | 
|---|
| 33 |                         <g:sortableColumn  property="taskPriority" title="Priority" params="${filterParams}" /> | 
|---|
| 34 |  | 
|---|
| 35 |                         <custom:sortableColumnWithImg property="defaultSort" | 
|---|
| 36 |                                                                                         imgSrc="${resource(dir:'images/skin',file:'table_sort.png')}" | 
|---|
| 37 |                                                                                         imgAlt="Sort" | 
|---|
| 38 |                                                                                         imgTitle="Default Sort" | 
|---|
| 39 |                                                                                         params="${filterParams}" /> | 
|---|
| 40 |  | 
|---|
| 41 |                     </tr> | 
|---|
| 42 |                 </thead> | 
|---|
| 43 |                 <tbody> | 
|---|
| 44 |                 <g:each in="${taskInstanceList}" status="i" var="taskInstance"> | 
|---|
| 45 |                 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> | 
|---|
| 46 |  | 
|---|
| 47 |                         <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> | 
|---|
| 48 |                             <g:if test="${taskInstance.attentionFlag}"> | 
|---|
| 49 |                                 <img  src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Flag" title="Attention Flag"/> | 
|---|
| 50 |                             </g:if> | 
|---|
| 51 |                         </td> | 
|---|
| 52 |  | 
|---|
| 53 |                         <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> | 
|---|
| 54 |                             <g:if test="${taskInstance.highestSeverity}"> | 
|---|
| 55 |                                 ${taskInstance.highestSeverity.code.encodeAsHTML()} | 
|---|
| 56 |                             </g:if> | 
|---|
| 57 |                         </td> | 
|---|
| 58 |  | 
|---|
| 59 |                         <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> | 
|---|
| 60 |                             <g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/> | 
|---|
| 61 |                         </td> | 
|---|
| 62 |  | 
|---|
| 63 |                         <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> | 
|---|
| 64 |                             <b> | 
|---|
| 65 |                                 Task #${fieldValue(bean:taskInstance, field:'id')} | 
|---|
| 66 |                             </b> | 
|---|
| 67 |                             <g:if test="${taskInstance.approved}" > | 
|---|
| 68 |                                 <img  src="${resource(dir:'images/skin',file:'cog.png')}" alt="Approved" title="Approved" /> | 
|---|
| 69 |                             </g:if> | 
|---|
| 70 |                             <g:if test="${taskInstance.taskRecurringSchedule?.enabled}" > | 
|---|
| 71 |                                 <img  src="${resource(dir:'images/skin',file:'arrow_refresh.png')}" alt="Recurrence Enabled" title="Recurrence Enabled" /> | 
|---|
| 72 |                             </g:if> | 
|---|
| 73 |                             <br /> | 
|---|
| 74 |  | 
|---|
| 75 |                             <b> | 
|---|
| 76 |                             <g:if test="${taskInstance.primaryAsset}"> | 
|---|
| 77 |                                 ${fieldValue(bean:taskInstance, field:'primaryAsset')}: | 
|---|
| 78 |                             </g:if> | 
|---|
| 79 |                             ${fieldValue(bean:taskInstance, field:'description')} | 
|---|
| 80 |                             </b> | 
|---|
| 81 |                             <g:if test="${taskInstance.taskProcedureRevision?.maintenanceActions}" > | 
|---|
| 82 |                                 <br /> | 
|---|
| 83 |                                 <custom:taskProcedureMachines taskProcedureRevision="${taskInstance.taskProcedureRevision}" /> | 
|---|
| 84 |                             </g:if> | 
|---|
| 85 |                             <g:if test="${taskInstance.safetyRequirement}" > | 
|---|
| 86 |                                 <br /> | 
|---|
| 87 |                                 <img  src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" /> | 
|---|
| 88 |                                 Safety | 
|---|
| 89 |                             </g:if> | 
|---|
| 90 |                             <g:if test="${taskInstance.regulatoryRequirement}" > | 
|---|
| 91 |                                 <br /> | 
|---|
| 92 |                                 <img  src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" /> | 
|---|
| 93 |                                 Regulatory | 
|---|
| 94 |                             </g:if> | 
|---|
| 95 |                             <g:if test="${taskInstance.mandatoryRequirement}" > | 
|---|
| 96 |                                 <br /> | 
|---|
| 97 |                                 <img  src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" /> | 
|---|
| 98 |                                 Mandatory | 
|---|
| 99 |                             </g:if> | 
|---|
| 100 |                             <br /> | 
|---|
| 101 |                             <br /> | 
|---|
| 102 |                             <g:each in="${taskInstance.assignedGroups}" status="j" var="assignedGroup"> | 
|---|
| 103 |                                 ${assignedGroup.encodeAsHTML()}<br /> | 
|---|
| 104 |                             </g:each> | 
|---|
| 105 |                             <g:each in="${taskInstance.assignedPersons}" status="k" var="assignedPerson"> | 
|---|
| 106 |                                 ${assignedPerson.encodeAsHTML()}<br /> | 
|---|
| 107 |                             </g:each> | 
|---|
| 108 |                             <g:each in="${taskInstance.entries}" status="m" var="entry"> | 
|---|
| 109 |                                 <g:if test="${entry.entryType.id == 3}"> | 
|---|
| 110 |                                     <em>${'WD: ' +entry.toShortString().encodeAsHTML()}</em><br /> | 
|---|
| 111 |                                 </g:if> | 
|---|
| 112 |                             </g:each> | 
|---|
| 113 |                             <g:if test="${taskInstance.subTasks}"> | 
|---|
| 114 |                                 Sub Tasks: ${taskInstance.subTasks.size()}<br /> | 
|---|
| 115 |                             </g:if> | 
|---|
| 116 |                         </td> | 
|---|
| 117 |  | 
|---|
| 118 |                         <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> | 
|---|
| 119 |                             ${fieldValue(bean:taskInstance, field:'taskGroup')} | 
|---|
| 120 |                         </td> | 
|---|
| 121 |  | 
|---|
| 122 |                         <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> | 
|---|
| 123 |                             ${fieldValue(bean:taskInstance, field:'taskType')} | 
|---|
| 124 |                         </td> | 
|---|
| 125 |  | 
|---|
| 126 |                         <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> | 
|---|
| 127 |                             <g:if test="${taskInstance.taskStatus.id == 1}" > | 
|---|
| 128 |                                 <img  src="${resource(dir:'images/skin',file:'not_started.png')}" alt="Not Started" title="Not Started" /> | 
|---|
| 129 |                             </g:if> | 
|---|
| 130 |                             <g:if test="${taskInstance.taskStatus.id == 2}" > | 
|---|
| 131 |                                 <img  src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" /> | 
|---|
| 132 |                             </g:if> | 
|---|
| 133 |                             <g:if test="${taskInstance.taskStatus.id == 3}" > | 
|---|
| 134 |                                 <img  src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" /> | 
|---|
| 135 |                             </g:if> | 
|---|
| 136 |                         </td> | 
|---|
| 137 |  | 
|---|
| 138 |                         <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'> | 
|---|
| 139 |                             ${fieldValue(bean:taskInstance, field:'taskPriority')} | 
|---|
| 140 |                         </td> | 
|---|
| 141 |  | 
|---|
| 142 |                         <td class="notClickable"> | 
|---|
| 143 |                             <g:link action="show" id="${taskInstance.id}"> | 
|---|
| 144 |                                 <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" title="Show" /> | 
|---|
| 145 |                             </g:link> | 
|---|
| 146 |                         </td> | 
|---|
| 147 |  | 
|---|
| 148 |                     </tr> | 
|---|
| 149 |                 </g:each> | 
|---|
| 150 |                 </tbody> | 
|---|
| 151 |             </table> | 
|---|
| 152 |         </div> | 
|---|
| 153 |     </g:if> | 
|---|