| 1 | <html> |
|---|
| 2 | <head> |
|---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
|---|
| 4 | <meta name="layout" content="main" /> |
|---|
| 5 | <title>Show Task #${taskInstance.id}</title> |
|---|
| 6 | <nav:resources override="true"/> |
|---|
| 7 | <resource:tabView skin="tabviewCustom" /> |
|---|
| 8 | <resource:dateChooser /> |
|---|
| 9 | <g:javascript src="taskShow.js" /> |
|---|
| 10 | </head> |
|---|
| 11 | <body> |
|---|
| 12 | <div class="nav"> |
|---|
| 13 | <nav:renderSubItems group="nav"/> |
|---|
| 14 | </div> |
|---|
| 15 | <div class="body"> |
|---|
| 16 | <g:render template="/shared/messages" /> |
|---|
| 17 | <g:if test="${taskInstance.trash}" > |
|---|
| 18 | <div class="errors"> |
|---|
| 19 | <ul><li>This task is in the trash bin, but can be restored if required.<li><ul> |
|---|
| 20 | </div> |
|---|
| 21 | </g:if> |
|---|
| 22 | <g:hasErrors bean="${taskInstance}"> |
|---|
| 23 | <div class="errors"> |
|---|
| 24 | <g:renderErrors bean="${taskInstance}" as="list" /> |
|---|
| 25 | </div> |
|---|
| 26 | </g:hasErrors> |
|---|
| 27 | |
|---|
| 28 | <div class="tabHeader"> |
|---|
| 29 | <g:render template="showTabHeader" /> |
|---|
| 30 | </div> |
|---|
| 31 | |
|---|
| 32 | <br/> |
|---|
| 33 | |
|---|
| 34 | <richui:tabView id="tabView"> |
|---|
| 35 | |
|---|
| 36 | <richui:tabLabels> |
|---|
| 37 | <richui:tabLabel selected="${showTab.task}" title="Details" /> |
|---|
| 38 | <g:if test="${taskProcedureExits}"> |
|---|
| 39 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure (!)" /> |
|---|
| 40 | </g:if> |
|---|
| 41 | <g:else> |
|---|
| 42 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure" /> |
|---|
| 43 | </g:else> |
|---|
| 44 | <g:if test="${taskRecurringScheduleExits}"> |
|---|
| 45 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence (!)" /> |
|---|
| 46 | </g:if> |
|---|
| 47 | <g:else> |
|---|
| 48 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence" /> |
|---|
| 49 | </g:else> |
|---|
| 50 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
|---|
| 51 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory (${inventoryMovementList.size()})" /> |
|---|
| 52 | </g:if> |
|---|
| 53 | <g:else> |
|---|
| 54 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory (0)" /> |
|---|
| 55 | </g:else> |
|---|
| 56 | <g:if test="${subTaskInstanceTotal > 0}"> |
|---|
| 57 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks (${subTaskInstanceTotal})" /> |
|---|
| 58 | </g:if> |
|---|
| 59 | <g:else> |
|---|
| 60 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks (0)" /> |
|---|
| 61 | </g:else> |
|---|
| 62 | </richui:tabLabels> |
|---|
| 63 | |
|---|
| 64 | <richui:tabContents> |
|---|
| 65 | |
|---|
| 66 | <richui:tabContent> |
|---|
| 67 | <g:render template="showTaskTab" /> |
|---|
| 68 | </richui:tabContent> |
|---|
| 69 | |
|---|
| 70 | <richui:tabContent> |
|---|
| 71 | <g:render template="showProcedureTab" /> |
|---|
| 72 | </richui:tabContent> |
|---|
| 73 | |
|---|
| 74 | <richui:tabContent> |
|---|
| 75 | <g:render template="showRecurrenceTab" /> |
|---|
| 76 | </richui:tabContent> |
|---|
| 77 | |
|---|
| 78 | <richui:tabContent> |
|---|
| 79 | <g:render template="showInventoryTab" /> |
|---|
| 80 | </richui:tabContent> |
|---|
| 81 | |
|---|
| 82 | <richui:tabContent> |
|---|
| 83 | <g:render template="showSubTaskTab" /> |
|---|
| 84 | </richui:tabContent> |
|---|
| 85 | |
|---|
| 86 | </richui:tabContents> |
|---|
| 87 | </richui:tabView> |
|---|
| 88 | |
|---|
| 89 | </div> <!--body--> |
|---|
| 90 | </body> |
|---|
| 91 | </html> |
|---|