| 1 |  | 
|---|
| 2 |  | 
|---|
| 3 | <html> | 
|---|
| 4 |     <head> | 
|---|
| 5 |         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | 
|---|
| 6 |         <meta name="layout" content="main" /> | 
|---|
| 7 |         <title>Show TaskRecurringSchedule</title> | 
|---|
| 8 |     </head> | 
|---|
| 9 |     <body> | 
|---|
| 10 |         <div class="nav"> | 
|---|
| 11 |             <h1>Show Recurring Schedule</h1> | 
|---|
| 12 |         </div> | 
|---|
| 13 |         <div class="body"> | 
|---|
| 14 |             <g:if test="${flash.message}"> | 
|---|
| 15 |                 <div class="message">${flash.message}</div> | 
|---|
| 16 |             </g:if> | 
|---|
| 17 |             <div class="dialog"> | 
|---|
| 18 |                 <table> | 
|---|
| 19 |                     <tbody> | 
|---|
| 20 |                         <tr class="prop"> | 
|---|
| 21 |                             <td valign="top" class="name">Recurring Schedule for task:</td> | 
|---|
| 22 |  | 
|---|
| 23 |                             <td valign="top" class="value"> | 
|---|
| 24 |                                 <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance.task?.id}"> | 
|---|
| 25 |                                     ${taskRecurringScheduleInstance.task.encodeAsHTML()} | 
|---|
| 26 |                                 </g:link> | 
|---|
| 27 |                             </td> | 
|---|
| 28 |                         </tr> | 
|---|
| 29 |  | 
|---|
| 30 |                         <tr class="prop"> | 
|---|
| 31 |                             <td valign="top" class="name"></td> | 
|---|
| 32 |  | 
|---|
| 33 |                             <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td> | 
|---|
| 34 |                         </tr> | 
|---|
| 35 |  | 
|---|
| 36 |                         <tr class="prop"> | 
|---|
| 37 |                             <td valign="top" class="name">Next Generation Date:</td> | 
|---|
| 38 |  | 
|---|
| 39 |                             <td valign="top" class="value"> | 
|---|
| 40 |                                 <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> | 
|---|
| 41 |                             </td> | 
|---|
| 42 |                         </tr> | 
|---|
| 43 |  | 
|---|
| 44 |                         <tr class="prop"> | 
|---|
| 45 |                             <td valign="top" class="name">Generate Ahead:</td> | 
|---|
| 46 |  | 
|---|
| 47 |                             <td valign="top" class="value"> | 
|---|
| 48 |                                 ${taskRecurringScheduleInstance.generateAhead} ${Period.get(1).encodeAsHTML()} | 
|---|
| 49 |                             </td> | 
|---|
| 50 |                         </tr> | 
|---|
| 51 |  | 
|---|
| 52 |                         <tr class="prop"> | 
|---|
| 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> | 
|---|
| 58 |                         </tr> | 
|---|
| 59 |  | 
|---|
| 60 |                         <tr class="prop"> | 
|---|
| 61 |                             <td valign="top" class="name">Task Duration:</td> | 
|---|
| 62 |  | 
|---|
| 63 |                             <td valign="top" class="value"> | 
|---|
| 64 |                                 ${taskRecurringScheduleInstance.taskDuration} ${taskRecurringScheduleInstance.taskDurationPeriod} | 
|---|
| 65 |                             </td> | 
|---|
| 66 |                         </tr> | 
|---|
| 67 |  | 
|---|
| 68 |                         <tr class="prop"> | 
|---|
| 69 |                             <td valign="top" class="name">Next Target Completion Date:</td> | 
|---|
| 70 |  | 
|---|
| 71 |                             <td valign="top" class="value"> | 
|---|
| 72 |                                 <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> | 
|---|
| 73 |                             </td> | 
|---|
| 74 |                         </tr> | 
|---|
| 75 |  | 
|---|
| 76 |                         <tr class="prop"> | 
|---|
| 77 |                             <td valign="top" class="name">Enabled:</td> | 
|---|
| 78 |  | 
|---|
| 79 |                             <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td> | 
|---|
| 80 |                         </tr> | 
|---|
| 81 |  | 
|---|
| 82 |                     </tbody> | 
|---|
| 83 |                 </table> | 
|---|
| 84 |                 <table> | 
|---|
| 85 |                     <tbody> | 
|---|
| 86 |  | 
|---|
| 87 |                         <tr class="prop"> | 
|---|
| 88 |                             <td valign="top" class="name">Note:</td> | 
|---|
| 89 |  | 
|---|
| 90 |                             <td valign="top" class="value"> | 
|---|
| 91 |                                 Recurring Schedules are reviewed and Sub Tasks generated every ${grailsApplication.config.taskRecurringScheduleJob.repeatInterval.encodeAsHTML()} seconds. | 
|---|
| 92 |                             </td> | 
|---|
| 93 |                         </tr> | 
|---|
| 94 |  | 
|---|
| 95 |                         <tr class="prop"> | 
|---|
| 96 |                             <td valign="top" class="name">Sub Tasks Generated:</td> | 
|---|
| 97 |  | 
|---|
| 98 |                             <td valign="top" class="value"> | 
|---|
| 99 |                                 ${fieldValue(bean:taskRecurringScheduleInstance, field:'subTasksGenerated')} | 
|---|
| 100 |                             </td> | 
|---|
| 101 |                         </tr> | 
|---|
| 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 |  | 
|---|
| 134 |                     </tbody> | 
|---|
| 135 |                 </table> | 
|---|
| 136 |             </div> | 
|---|
| 137 |             <div class="buttons"> | 
|---|
| 138 |                 <g:form> | 
|---|
| 139 |                     <input type="hidden" name="id" value="${taskRecurringScheduleInstance.id}" /> | 
|---|
| 140 |                     <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> | 
|---|
| 141 | <!--                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> | 
|---|
| 142 |                 </g:form> | 
|---|
| 143 |             </div> | 
|---|
| 144 |         </div> | 
|---|
| 145 |     </body> | 
|---|
| 146 | </html> | 
|---|