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