| [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"> | 
|---|
| [199] | 37 |                             <td valign="top" class="name">Next Generation Date:</td> | 
|---|
 | 38 |  | 
|---|
| [137] | 39 |                             <td valign="top" class="value"> | 
|---|
| [199] | 40 |                                 <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> | 
|---|
| [137] | 41 |                             </td> | 
|---|
| [122] | 42 |                         </tr> | 
|---|
| [199] | 43 |  | 
|---|
| [122] | 44 |                         <tr class="prop"> | 
|---|
| [137] | 45 |                             <td valign="top" class="name">Generate Ahead:</td> | 
|---|
| [199] | 46 |  | 
|---|
| [137] | 47 |                             <td valign="top" class="value"> | 
|---|
| [199] | 48 |                                 ${taskRecurringScheduleInstance.generateAhead} ${Period.get(1).encodeAsHTML()} | 
|---|
| [137] | 49 |                             </td> | 
|---|
 | 50 |                         </tr> | 
|---|
| [199] | 51 |  | 
|---|
| [137] | 52 |                         <tr class="prop"> | 
|---|
| [199] | 53 |                             <td valign="top" class="name">Next Target Start Date:</td> | 
|---|
 | 54 |  | 
|---|
 | 55 |                             <td valign="top" class="value"> | 
|---|
 | 56 |                                 <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/> | 
|---|
 | 57 |                             </td> | 
|---|
| [134] | 58 |                         </tr> | 
|---|
| [199] | 59 |  | 
|---|
| [134] | 60 |                         <tr class="prop"> | 
|---|
| [199] | 61 |                             <td valign="top" class="name">Task Duration:</td> | 
|---|
 | 62 |  | 
|---|
| [137] | 63 |                             <td valign="top" class="value"> | 
|---|
| [199] | 64 |                                 ${taskRecurringScheduleInstance.taskDuration} ${taskRecurringScheduleInstance.taskDurationPeriod} | 
|---|
 | 65 |                             </td> | 
|---|
| [137] | 66 |                         </tr> | 
|---|
| [199] | 67 |  | 
|---|
| [122] | 68 |                         <tr class="prop"> | 
|---|
| [137] | 69 |                             <td valign="top" class="name">Next Target Completion Date:</td> | 
|---|
| [199] | 70 |  | 
|---|
| [135] | 71 |                             <td valign="top" class="value"> | 
|---|
| [139] | 72 |                                 <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> | 
|---|
| [137] | 73 |                             </td> | 
|---|
| [122] | 74 |                         </tr> | 
|---|
| [199] | 75 |  | 
|---|
| [137] | 76 |                         <tr class="prop"> | 
|---|
| [199] | 77 |                             <td valign="top" class="name">Enabled:</td> | 
|---|
 | 78 |  | 
|---|
 | 79 |                             <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td> | 
|---|
| [137] | 80 |                         </tr> | 
|---|
| [199] | 81 |  | 
|---|
 | 82 |                     </tbody> | 
|---|
 | 83 |                 </table> | 
|---|
 | 84 |                 <table> | 
|---|
 | 85 |                     <tbody> | 
|---|
 | 86 |  | 
|---|
| [122] | 87 |                         <tr class="prop"> | 
|---|
| [199] | 88 |                             <td valign="top" class="name">Note:</td> | 
|---|
 | 89 |  | 
|---|
| [135] | 90 |                             <td valign="top" class="value"> | 
|---|
| [199] | 91 |                                 Recurring Schedules are reviewed and Sub Tasks generated every ${grailsApplication.config.taskRecurringScheduleJob.repeatInterval.encodeAsHTML()} seconds. | 
|---|
 | 92 |                             </td> | 
|---|
| [122] | 93 |                         </tr> | 
|---|
| [199] | 94 |  | 
|---|
| [122] | 95 |                         <tr class="prop"> | 
|---|
| [199] | 96 |                             <td valign="top" class="name">Sub Tasks Generated:</td> | 
|---|
 | 97 |  | 
|---|
| [135] | 98 |                             <td valign="top" class="value"> | 
|---|
| [199] | 99 |                                 ${fieldValue(bean:taskRecurringScheduleInstance, field:'subTasksGenerated')} | 
|---|
 | 100 |                             </td> | 
|---|
| [122] | 101 |                         </tr> | 
|---|
| [199] | 102 |  | 
|---|
 | 103 |                         <g:if test="${taskRecurringScheduleInstance.lastGeneratedSubTask}"> | 
|---|
 | 104 |  | 
|---|
 | 105 |                             <tr class="prop"> | 
|---|
 | 106 |                                 <td valign="top" class="name">Last Generated Sub Task:</td> | 
|---|
 | 107 |  | 
|---|
 | 108 |                                 <td valign="top" class="value"> | 
|---|
 | 109 |                                     <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance.lastGeneratedSubTask?.id}"> | 
|---|
 | 110 |                                         ${taskRecurringScheduleInstance.lastGeneratedSubTask?.encodeAsHTML()} | 
|---|
 | 111 |                                     </g:link> | 
|---|
 | 112 |                                 </td> | 
|---|
 | 113 |                             </tr> | 
|---|
 | 114 |  | 
|---|
 | 115 |                             <tr class="prop"> | 
|---|
 | 116 |                                 <td valign="top" class="name"></td> | 
|---|
 | 117 |  | 
|---|
 | 118 |                                 <td valign="top" class="value"> | 
|---|
 | 119 |                                         ${TaskModification.findByTaskAndTaskModificationType(taskRecurringScheduleInstance.lastGeneratedSubTask, TaskModificationType.get(1))} | 
|---|
 | 120 |                                 </td> | 
|---|
 | 121 |                             </tr> | 
|---|
 | 122 |  | 
|---|
 | 123 |                             <tr class="prop"> | 
|---|
 | 124 |                                 <td valign="top" class="name"></td> | 
|---|
 | 125 |  | 
|---|
 | 126 |                                 <td valign="top" class="value"> | 
|---|
 | 127 |                                         With target start date: | 
|---|
 | 128 |                                         <g:formatDate date="${taskRecurringScheduleInstance.lastGeneratedSubTask?.targetStartDate}" format="EEE, dd-MMM-yyyy"/> | 
|---|
 | 129 |                                 </td> | 
|---|
 | 130 |                             </tr> | 
|---|
 | 131 |  | 
|---|
 | 132 |                         </g:if> | 
|---|
 | 133 |  | 
|---|
| [122] | 134 |                     </tbody> | 
|---|
 | 135 |                 </table> | 
|---|
 | 136 |             </div> | 
|---|
 | 137 |             <div class="buttons"> | 
|---|
 | 138 |                 <g:form> | 
|---|
| [199] | 139 |                     <input type="hidden" name="id" value="${taskRecurringScheduleInstance.id}" /> | 
|---|
| [122] | 140 |                     <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> | 
|---|
| [137] | 141 | <!--                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> | 
|---|
| [122] | 142 |                 </g:form> | 
|---|
 | 143 |             </div> | 
|---|
 | 144 |         </div> | 
|---|
 | 145 |     </body> | 
|---|
 | 146 | </html> | 
|---|