[84] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 4 | <meta name="layout" content="main" /> |
---|
[196] | 5 | <title>Show Task #${taskInstance.id}</title> |
---|
[139] | 6 | <nav:resources override="true"/> |
---|
[126] | 7 | <resource:tabView skin="tabviewCustom" /> |
---|
[84] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[139] | 11 | <nav:renderSubItems group="nav"/> |
---|
[84] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[418] | 14 | <g:render template="/shared/messages" /> |
---|
[181] | 15 | <g:if test="${taskInstance.trash}" > |
---|
| 16 | <div class="errors"> |
---|
[418] | 17 | <ul><li>This task is in the trash bin, but can be restored if required.<li><ul> |
---|
[181] | 18 | </div> |
---|
| 19 | </g:if> |
---|
[180] | 20 | <g:hasErrors bean="${taskInstance}"> |
---|
[133] | 21 | <div class="errors"> |
---|
[180] | 22 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
[133] | 23 | </div> |
---|
| 24 | </g:hasErrors> |
---|
[126] | 25 | |
---|
[418] | 26 | <div class="tabHeader"> |
---|
[500] | 27 | <h1> |
---|
[418] | 28 | Task #${taskInstance.id} |
---|
[729] | 29 | |
---|
| 30 | <g:if test="${taskInstance.approved}" > |
---|
| 31 | <img src="${resource(dir:'images/skin',file:'cog.png')}" alt="Approved" title="Approved" /> |
---|
| 32 | </g:if> |
---|
[730] | 33 | <g:if test="${taskRecurringScheduleInstance?.enabled}" > |
---|
| 34 | <img src="${resource(dir:'images/skin',file:'arrow_refresh.png')}" alt="Recurrence Enabled" title="Recurrence Enabled" /> |
---|
| 35 | </g:if> |
---|
[729] | 36 | <g:if test="${taskInstance.taskStatus.id == 2}" > |
---|
[736] | 37 | <img src="${resource(dir:'images/skin',file:'arrow_right.png')}" alt="In Progress" title="In Progress" /> |
---|
[729] | 38 | </g:if> |
---|
[418] | 39 | <g:if test="${taskInstance.attentionFlag}" > |
---|
[728] | 40 | <img src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Attention Flag" title="Attention Flag" /> |
---|
[418] | 41 | </g:if> |
---|
| 42 | <g:if test="${taskInstance.taskStatus.id == 3}" > |
---|
[728] | 43 | <img src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" /> |
---|
[418] | 44 | </g:if> |
---|
| 45 | </h1> |
---|
[799] | 46 | <g:if test="${taskInstance.primaryAsset}" > |
---|
| 47 | ${fieldValue(bean:taskInstance, field:'primaryAsset')}: |
---|
| 48 | </g:if> |
---|
[418] | 49 | ${fieldValue(bean:taskInstance, field:'description')} |
---|
[729] | 50 | <g:if test="${taskInstance.safetyRequirement}" > |
---|
| 51 | <img src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" /> |
---|
| 52 | Safety |
---|
| 53 | </g:if> |
---|
| 54 | <g:if test="${taskInstance.regulatoryRequirement}" > |
---|
| 55 | <img src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" /> |
---|
| 56 | Regulatory |
---|
| 57 | </g:if> |
---|
| 58 | <g:if test="${taskInstance.mandatoryRequirement}" > |
---|
| 59 | <img src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" /> |
---|
| 60 | Mandatory |
---|
| 61 | </g:if> |
---|
[418] | 62 | </div> |
---|
| 63 | |
---|
| 64 | <br/> |
---|
| 65 | |
---|
[131] | 66 | <richui:tabView id="tabView"> |
---|
[126] | 67 | |
---|
| 68 | <richui:tabLabels> |
---|
[418] | 69 | <richui:tabLabel selected="${showTab.task}" title="Details" /> |
---|
[574] | 70 | <g:if test="${taskProcedureExits}"> |
---|
| 71 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure (!)" /> |
---|
| 72 | </g:if> |
---|
| 73 | <g:else> |
---|
| 74 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure" /> |
---|
| 75 | </g:else> |
---|
| 76 | <g:if test="${taskRecurringScheduleExits}"> |
---|
| 77 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence (!)" /> |
---|
| 78 | </g:if> |
---|
| 79 | <g:else> |
---|
| 80 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence" /> |
---|
| 81 | </g:else> |
---|
| 82 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
---|
| 83 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory (${inventoryMovementList.size()})" /> |
---|
| 84 | </g:if> |
---|
| 85 | <g:else> |
---|
| 86 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory (0)" /> |
---|
| 87 | </g:else> |
---|
| 88 | <g:if test="${subTaskInstanceTotal > 0}"> |
---|
| 89 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks (${subTaskInstanceTotal})" /> |
---|
| 90 | </g:if> |
---|
| 91 | <g:else> |
---|
| 92 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks (0)" /> |
---|
| 93 | </g:else> |
---|
[126] | 94 | </richui:tabLabels> |
---|
[131] | 95 | |
---|
[126] | 96 | <richui:tabContents> |
---|
[131] | 97 | |
---|
[126] | 98 | <richui:tabContent> |
---|
[822] | 99 | <g:render template="showTaskTab" /> |
---|
[131] | 100 | </richui:tabContent> |
---|
[126] | 101 | |
---|
[131] | 102 | <richui:tabContent> |
---|
[822] | 103 | <g:render template="showProcedureTab" /> |
---|
[131] | 104 | </richui:tabContent> |
---|
[126] | 105 | |
---|
[131] | 106 | <richui:tabContent> |
---|
[822] | 107 | <g:render template="showRecurrenceTab" /> |
---|
[131] | 108 | </richui:tabContent> |
---|
[126] | 109 | |
---|
[131] | 110 | <richui:tabContent> |
---|
[822] | 111 | <g:render template="showInventoryTab" /> |
---|
[131] | 112 | </richui:tabContent> |
---|
[126] | 113 | |
---|
[131] | 114 | <richui:tabContent> |
---|
[822] | 115 | <g:render template="showSubTaskTab" /> |
---|
[131] | 116 | </richui:tabContent> |
---|
[126] | 117 | |
---|
[131] | 118 | </richui:tabContents> |
---|
| 119 | </richui:tabView> |
---|
[153] | 120 | |
---|
[418] | 121 | </div> <!--body--> |
---|
[84] | 122 | </body> |
---|
| 123 | </html> |
---|