[122] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[134] | 7 | <title>Show TaskRecurringSchedule</title> |
---|
[122] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[157] | 11 | <h1>Show Recurring Schedule</h1> |
---|
[122] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
| 14 | <g:if test="${flash.message}"> |
---|
[199] | 15 | <div class="message">${flash.message}</div> |
---|
[122] | 16 | </g:if> |
---|
| 17 | <div class="dialog"> |
---|
| 18 | <table> |
---|
[199] | 19 | <tbody> |
---|
[122] | 20 | <tr class="prop"> |
---|
[199] | 21 | <td valign="top" class="name">Recurring Schedule for task:</td> |
---|
[135] | 22 | |
---|
[137] | 23 | <td valign="top" class="value"> |
---|
[199] | 24 | <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance.task?.id}"> |
---|
| 25 | ${taskRecurringScheduleInstance.task.encodeAsHTML()} |
---|
| 26 | </g:link> |
---|
[137] | 27 | </td> |
---|
| 28 | </tr> |
---|
[199] | 29 | |
---|
[137] | 30 | <tr class="prop"> |
---|
[199] | 31 | <td valign="top" class="name"></td> |
---|
| 32 | |
---|
| 33 | <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td> |
---|
[122] | 34 | </tr> |
---|
[199] | 35 | |
---|
[122] | 36 | <tr class="prop"> |
---|
[445] | 37 | <td valign="top" class="name">Enabled:</td> |
---|
| 38 | |
---|
| 39 | <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td> |
---|
| 40 | </tr> |
---|
| 41 | |
---|
| 42 | <g:if test="${taskRecurringScheduleInstance.useTargetCompletionDate}" > |
---|
| 43 | <tr class="prop"> |
---|
| 44 | <td valign="top" class="name">Task Target Completion:</td> |
---|
| 45 | |
---|
| 46 | <td valign="top" class="value"> |
---|
| 47 | <g:formatDate date="${taskRecurringScheduleInstance.task.targetCompletionDate}" |
---|
| 48 | format="EEE, dd-MMM-yyyy"/> |
---|
| 49 | </td> |
---|
| 50 | </tr> |
---|
| 51 | </g:if> |
---|
| 52 | |
---|
| 53 | <tr class="prop"> |
---|
[199] | 54 | <td valign="top" class="name">Next Generation Date:</td> |
---|
| 55 | |
---|
[137] | 56 | <td valign="top" class="value"> |
---|
[199] | 57 | <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> |
---|
[137] | 58 | </td> |
---|
[122] | 59 | </tr> |
---|
[199] | 60 | |
---|
[122] | 61 | <tr class="prop"> |
---|
[137] | 62 | <td valign="top" class="name">Generate Ahead:</td> |
---|
[199] | 63 | |
---|
[137] | 64 | <td valign="top" class="value"> |
---|
[199] | 65 | ${taskRecurringScheduleInstance.generateAhead} ${Period.get(1).encodeAsHTML()} |
---|
[137] | 66 | </td> |
---|
| 67 | </tr> |
---|
[199] | 68 | |
---|
[137] | 69 | <tr class="prop"> |
---|
[199] | 70 | <td valign="top" class="name">Next Target Start Date:</td> |
---|
| 71 | |
---|
| 72 | <td valign="top" class="value"> |
---|
| 73 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 74 | </td> |
---|
[134] | 75 | </tr> |
---|
[199] | 76 | |
---|
[134] | 77 | <tr class="prop"> |
---|
[199] | 78 | <td valign="top" class="name">Task Duration:</td> |
---|
| 79 | |
---|
[137] | 80 | <td valign="top" class="value"> |
---|
[199] | 81 | ${taskRecurringScheduleInstance.taskDuration} ${taskRecurringScheduleInstance.taskDurationPeriod} |
---|
| 82 | </td> |
---|
[137] | 83 | </tr> |
---|
[199] | 84 | |
---|
[122] | 85 | <tr class="prop"> |
---|
[137] | 86 | <td valign="top" class="name">Next Target Completion Date:</td> |
---|
[199] | 87 | |
---|
[135] | 88 | <td valign="top" class="value"> |
---|
[139] | 89 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
---|
[137] | 90 | </td> |
---|
[122] | 91 | </tr> |
---|
[199] | 92 | |
---|
| 93 | </tbody> |
---|
| 94 | </table> |
---|
| 95 | <table> |
---|
| 96 | <tbody> |
---|
| 97 | |
---|
[122] | 98 | <tr class="prop"> |
---|
[199] | 99 | <td valign="top" class="name">Note:</td> |
---|
| 100 | |
---|
[135] | 101 | <td valign="top" class="value"> |
---|
[199] | 102 | Recurring Schedules are reviewed and Sub Tasks generated every ${grailsApplication.config.taskRecurringScheduleJob.repeatInterval.encodeAsHTML()} seconds. |
---|
| 103 | </td> |
---|
[122] | 104 | </tr> |
---|
[199] | 105 | |
---|
[122] | 106 | <tr class="prop"> |
---|
[199] | 107 | <td valign="top" class="name">Sub Tasks Generated:</td> |
---|
| 108 | |
---|
[135] | 109 | <td valign="top" class="value"> |
---|
[199] | 110 | ${fieldValue(bean:taskRecurringScheduleInstance, field:'subTasksGenerated')} |
---|
| 111 | </td> |
---|
[122] | 112 | </tr> |
---|
[199] | 113 | |
---|
[445] | 114 | <g:if test="${taskRecurringScheduleInstance.maxSubTasks > 0}" > |
---|
| 115 | <tr class="prop"> |
---|
| 116 | <td valign="top" class="name">Max Sub Tasks:</td> |
---|
| 117 | |
---|
| 118 | <td valign="top" class="value"> |
---|
| 119 | ${fieldValue(bean:taskRecurringScheduleInstance, field:'maxSubTasks')} |
---|
| 120 | </td> |
---|
| 121 | </tr> |
---|
| 122 | </g:if> |
---|
| 123 | |
---|
[199] | 124 | <g:if test="${taskRecurringScheduleInstance.lastGeneratedSubTask}"> |
---|
| 125 | |
---|
| 126 | <tr class="prop"> |
---|
| 127 | <td valign="top" class="name">Last Generated Sub Task:</td> |
---|
| 128 | |
---|
| 129 | <td valign="top" class="value"> |
---|
| 130 | <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance.lastGeneratedSubTask?.id}"> |
---|
| 131 | ${taskRecurringScheduleInstance.lastGeneratedSubTask?.encodeAsHTML()} |
---|
| 132 | </g:link> |
---|
| 133 | </td> |
---|
| 134 | </tr> |
---|
| 135 | |
---|
| 136 | <tr class="prop"> |
---|
| 137 | <td valign="top" class="name"></td> |
---|
| 138 | |
---|
| 139 | <td valign="top" class="value"> |
---|
| 140 | ${TaskModification.findByTaskAndTaskModificationType(taskRecurringScheduleInstance.lastGeneratedSubTask, TaskModificationType.get(1))} |
---|
| 141 | </td> |
---|
| 142 | </tr> |
---|
| 143 | |
---|
| 144 | <tr class="prop"> |
---|
| 145 | <td valign="top" class="name"></td> |
---|
| 146 | |
---|
| 147 | <td valign="top" class="value"> |
---|
| 148 | With target start date: |
---|
| 149 | <g:formatDate date="${taskRecurringScheduleInstance.lastGeneratedSubTask?.targetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 150 | </td> |
---|
| 151 | </tr> |
---|
| 152 | |
---|
| 153 | </g:if> |
---|
| 154 | |
---|
[122] | 155 | </tbody> |
---|
| 156 | </table> |
---|
| 157 | </div> |
---|
| 158 | <div class="buttons"> |
---|
| 159 | <g:form> |
---|
[199] | 160 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance.id}" /> |
---|
[122] | 161 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
[137] | 162 | <!-- <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> |
---|
[122] | 163 | </g:form> |
---|
| 164 | </div> |
---|
| 165 | </div> |
---|
| 166 | </body> |
---|
| 167 | </html> |
---|