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">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"> |
---|
54 | <td valign="top" class="name">Next Generation Date:</td> |
---|
55 | |
---|
56 | <td valign="top" class="value"> |
---|
57 | <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> |
---|
58 | </td> |
---|
59 | </tr> |
---|
60 | |
---|
61 | <tr class="prop"> |
---|
62 | <td valign="top" class="name">Generate Ahead:</td> |
---|
63 | |
---|
64 | <td valign="top" class="value"> |
---|
65 | ${taskRecurringScheduleInstance.generateAhead} ${Period.get(1).encodeAsHTML()} |
---|
66 | </td> |
---|
67 | </tr> |
---|
68 | |
---|
69 | <tr class="prop"> |
---|
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> |
---|
75 | </tr> |
---|
76 | |
---|
77 | <tr class="prop"> |
---|
78 | <td valign="top" class="name">Task Duration:</td> |
---|
79 | |
---|
80 | <td valign="top" class="value"> |
---|
81 | ${taskRecurringScheduleInstance.taskDuration} ${taskRecurringScheduleInstance.taskDurationPeriod} |
---|
82 | </td> |
---|
83 | </tr> |
---|
84 | |
---|
85 | <tr class="prop"> |
---|
86 | <td valign="top" class="name">Next Target Completion Date:</td> |
---|
87 | |
---|
88 | <td valign="top" class="value"> |
---|
89 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
---|
90 | </td> |
---|
91 | </tr> |
---|
92 | |
---|
93 | </tbody> |
---|
94 | </table> |
---|
95 | <table> |
---|
96 | <tbody> |
---|
97 | |
---|
98 | <tr class="prop"> |
---|
99 | <td valign="top" class="name">Note:</td> |
---|
100 | |
---|
101 | <td valign="top" class="value"> |
---|
102 | Recurring Schedules are reviewed and Sub Tasks generated every ${grailsApplication.config.taskRecurringScheduleJob.repeatInterval.encodeAsHTML()} seconds. |
---|
103 | </td> |
---|
104 | </tr> |
---|
105 | |
---|
106 | <tr class="prop"> |
---|
107 | <td valign="top" class="name">Sub Tasks Generated:</td> |
---|
108 | |
---|
109 | <td valign="top" class="value"> |
---|
110 | ${fieldValue(bean:taskRecurringScheduleInstance, field:'subTasksGenerated')} |
---|
111 | </td> |
---|
112 | </tr> |
---|
113 | |
---|
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 | |
---|
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 | |
---|
155 | </tbody> |
---|
156 | </table> |
---|
157 | </div> |
---|
158 | <div class="buttons"> |
---|
159 | <g:form> |
---|
160 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance.id}" /> |
---|
161 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
162 | <!-- <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> |
---|
163 | </g:form> |
---|
164 | </div> |
---|
165 | </div> |
---|
166 | </body> |
---|
167 | </html> |
---|