[823] | 1 | |
---|
[822] | 2 | <g:if test="${subTaskInstanceTotal > 0}"> |
---|
| 3 | <div class="list"> |
---|
| 4 | <table> |
---|
| 5 | <thead> |
---|
| 6 | <tr> |
---|
| 7 | |
---|
| 8 | <th>Id</th> |
---|
| 9 | |
---|
| 10 | <th>Target Start Date</th> |
---|
| 11 | |
---|
| 12 | <th>Description</th> |
---|
| 13 | |
---|
| 14 | <th>Lead Person</th> |
---|
| 15 | |
---|
| 16 | <th>Task Priority</th> |
---|
| 17 | |
---|
| 18 | <th>Task Status</th> |
---|
| 19 | |
---|
| 20 | <th></th> |
---|
| 21 | |
---|
| 22 | </tr> |
---|
| 23 | </thead> |
---|
| 24 | <tbody> |
---|
| 25 | <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> |
---|
[836] | 26 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"> |
---|
[822] | 27 | |
---|
| 28 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 29 | ${fieldValue(bean:subTaskInstance, field:'id')} |
---|
| 30 | </td> |
---|
| 31 | |
---|
| 32 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 33 | <g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 34 | </td> |
---|
| 35 | |
---|
| 36 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 37 | ${fieldValue(bean:subTaskInstance, field:'description')} |
---|
| 38 | </td> |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 42 | ${fieldValue(bean:subTaskInstance, field:'leadPerson')} |
---|
| 43 | </td> |
---|
| 44 | |
---|
| 45 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 46 | ${fieldValue(bean:subTaskInstance, field:'taskPriority')} |
---|
| 47 | </td> |
---|
| 48 | |
---|
| 49 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 50 | ${fieldValue(bean:subTaskInstance, field:'taskStatus')} |
---|
| 51 | </td> |
---|
| 52 | |
---|
| 53 | <td class="notClickable"> |
---|
| 54 | <g:link action="show" id="${subTaskInstance.id}"> |
---|
| 55 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" title="Show" /> |
---|
| 56 | </g:link> |
---|
| 57 | </td> |
---|
| 58 | |
---|
| 59 | </tr> |
---|
| 60 | </g:each> |
---|
| 61 | </tbody> |
---|
| 62 | </table> |
---|
| 63 | </div> |
---|
| 64 | |
---|
| 65 | <div class="buttons"> |
---|
| 66 | <g:form> |
---|
| 67 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
| 68 | <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> |
---|
| 69 | Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} |
---|
| 70 | <br /> |
---|
| 71 | </g:if> |
---|
| 72 | <g:else> |
---|
| 73 | Total ${subTaskInstanceTotal} |
---|
| 74 | <br /> |
---|
| 75 | </g:else> |
---|
| 76 | <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="List" /></span> |
---|
| 77 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
---|
| 78 | </g:form> |
---|
| 79 | </div> |
---|
| 80 | |
---|
| 81 | </g:if> |
---|
| 82 | <g:else> |
---|
| 83 | <br /> |
---|
| 84 | No Sub Tasks. |
---|
| 85 | <br /> |
---|
| 86 | <br /> |
---|
| 87 | |
---|
| 88 | <div class="buttons"> |
---|
| 89 | <g:form> |
---|
| 90 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
| 91 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
---|
| 92 | </g:form> |
---|
| 93 | </div> |
---|
[823] | 94 | </g:else> |
---|