Changeset 199 for trunk/grails-app/views


Ignore:
Timestamp:
Nov 28, 2009, 2:17:34 PM (14 years ago)
Author:
gav
Message:

Upgrade quartz plugin to 0.4.1 propper.
Refactor and enable quartz scheduling for recurring tasks.
Adjust svn ignores to ignore all log files.
Create a pseudo system person for automated insertions.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 stacktrace.log
         1*.log
        22*.war
  • trunk/grails-app/views/taskDetailed/show.gsp

    r196 r199  
    462462
    463463                                            <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td>
    464 
    465                                         </tr>
    466 
    467                                         <tr class="prop">
    468                                             <td valign="top" class="name">Start Date:</td>
     464                                        </tr>
     465
     466                                        <tr class="prop">
     467                                            <td valign="top" class="name">Next Generation Date:</td>
    469468
    470469                                            <td valign="top" class="value">
    471                                                 <g:formatDate date="${taskRecurringScheduleInstance.startDate}" format="EEE, dd-MMM-yyyy"/>
     470                                                <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/>
    472471                                            </td>
    473 
     472                                        </tr>
     473
     474                                        <tr class="prop">
     475                                            <td valign="top" class="name">Generate Ahead:</td>
     476
     477                                            <td valign="top" class="value">
     478                                                ${taskRecurringScheduleInstance?.generateAhead} ${Period.get(1).encodeAsHTML()}
     479                                            </td>
     480                                        </tr>
     481
     482                                        <tr class="prop">
     483                                            <td valign="top" class="name">Next Target Start Date:</td>
     484
     485                                            <td valign="top" class="value">
     486                                                <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/>
     487                                            </td>
    474488                                        </tr>
    475489
     
    483497
    484498                                        <tr class="prop">
    485                                             <td valign="top" class="name">Generate Ahead:</td>
    486 
    487                                             <td valign="top" class="value">
    488                                                 ${taskRecurringScheduleInstance?.generateAhead} ${taskRecurringScheduleInstance?.generateAheadPeriod}
    489                                             </td>
    490 
    491                                         </tr>
    492 
    493                                         </tr>
    494 
    495                                         <tr class="prop">
    496                                             <td valign="top" class="name">Is Enabled:</td>
    497 
    498                                             <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td>
    499 
    500                                         </tr>
    501 
    502                                     </tbody>
    503                                 </table>
    504 
    505                                 <table>
    506                                     <tbody>
    507 
    508                                         <tr class="prop">
    509                                             <td valign="top" class="name">Next Target Start Date:</td>   
    510 
    511                                             <td valign="top" class="value">
    512                                                 <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/>
    513                                             </td>
    514 
    515                                         </tr>
    516 
    517                                         <tr class="prop">
    518                                             <td valign="top" class="name">Next Target Completion Date:</td>   
     499                                            <td valign="top" class="name">Next Target Completion Date:</td>
    519500
    520501                                            <td valign="top" class="value">
    521502                                                <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/>
    522503                                            </td>
    523 
    524                                         </tr>
    525 
    526                                         <tr class="prop">
    527                                             <td valign="top" class="name">Next Generation Date:</td>
    528 
    529                                             <td valign="top" class="value">
    530                                                 <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/>
    531                                             </td>
    532                                         </tr>
    533 
    534                                         <tr class="prop">
    535                                             <td valign="top" class="name">Last Generated Date:</td>
    536 
    537                                             <td valign="top" class="value">
    538                                                 <g:formatDate date="${taskRecurringScheduleInstance.lastGeneratedDate}" format="EEE, dd-MMM-yyyy"/>
    539                                             </td>
    540 
    541                                         </tr>
    542 
    543                                         <tr class="prop">
    544                                             <td valign="top" class="name">Last Generated Sub Task:</td>
    545 
    546                                             <td valign="top" class="value">
    547                                                 <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}">
    548                                                     ${taskRecurringScheduleInstance?.lastGeneratedSubTask?.encodeAsHTML()}
    549                                                 </g:link>
    550                                             </td>
    551                                         </tr>
     504                                        </tr>
     505
     506                                        <tr class="prop">
     507                                            <td valign="top" class="name">Enabled:</td>
     508
     509                                            <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td>
     510                                        </tr>
     511
    552512                                    </tbody>
    553513                                </table>
     
    557517                                    <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" />
    558518                                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
     519                                    <span class="button"><g:actionSubmit class="go" value="Show" /></span>
    559520                                </g:form>
    560521                            </div>
  • trunk/grails-app/views/taskRecurringSchedule/create.gsp

    r178 r199  
    5555                            <tr class="prop">
    5656                                <td valign="top" class="name">
    57                                     <label for="lastGeneratedDate">Last Generated Date:</label>
    58                                 </td>
    59                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}">
    60                                     <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" precision="minute" noSelection="['':'']"></g:datePicker>
    61                                 </td>
    62                             </tr>
    63                        
    64                             <tr class="prop">
    65                                 <td valign="top" class="name">
    6657                                    <label for="lastGeneratedSubTask">Last Generated Sub Task:</label>
    6758                                </td>
     
    7364                            <tr class="prop">
    7465                                <td valign="top" class="name">
    75                                     <label for="generateAheadPeriod">Generate Ahead Period:</label>
     66                                    <label for="enabled">Enabled:</label>
    7667                                </td>
    77                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAheadPeriod','errors')}">
    78                                     <g:select optionKey="id" from="${Period.list()}" name="generateAheadPeriod.id" value="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}" ></g:select>
    79                                 </td>
    80                             </tr>
    81                        
    82                             <tr class="prop">
    83                                 <td valign="top" class="name">
    84                                     <label for="isEnabled">Is Enabled:</label>
    85                                 </td>
    86                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
    87                                     <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
     68                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
     69                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
    8870                                </td>
    8971                            </tr>
     
    127109                            <tr class="prop">
    128110                                <td valign="top" class="name">
    129                                     <label for="startDate">Start Date:</label>
     111                                    <label for="subTasksGenerated">Sub Tasks Generated:</label>
    130112                                </td>
    131                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
    132                                     <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" precision="minute" ></g:datePicker>
     113                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'subTasksGenerated','errors')}">
     114                                    <input type="text" id="subTasksGenerated" name="subTasksGenerated" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'subTasksGenerated')}" />
    133115                                </td>
    134116                            </tr>
  • trunk/grails-app/views/taskRecurringSchedule/edit.gsp

    r178 r199  
    5858                            <tr class="prop">
    5959                                <td valign="top" class="name">
    60                                     <label for="lastGeneratedDate">Last Generated Date:</label>
    61                                 </td>
    62                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}">
    63                                     <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" precision="minute" noSelection="['':'']"></g:datePicker>
    64                                 </td>
    65                             </tr>
    66                        
    67                             <tr class="prop">
    68                                 <td valign="top" class="name">
    6960                                    <label for="lastGeneratedSubTask">Last Generated Sub Task:</label>
    7061                                </td>
     
    7667                            <tr class="prop">
    7768                                <td valign="top" class="name">
    78                                     <label for="generateAheadPeriod">Generate Ahead Period:</label>
     69                                    <label for="enabled">Enabled:</label>
    7970                                </td>
    80                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAheadPeriod','errors')}">
    81                                     <g:select optionKey="id" from="${Period.list()}" name="generateAheadPeriod.id" value="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}" ></g:select>
    82                                 </td>
    83                             </tr>
    84                        
    85                             <tr class="prop">
    86                                 <td valign="top" class="name">
    87                                     <label for="isEnabled">Is Enabled:</label>
    88                                 </td>
    89                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
    90                                     <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
     71                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
     72                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
    9173                                </td>
    9274                            </tr>
     
    130112                            <tr class="prop">
    131113                                <td valign="top" class="name">
    132                                     <label for="startDate">Start Date:</label>
     114                                    <label for="subTasksGenerated">Sub Tasks Generated:</label>
    133115                                </td>
    134                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
    135                                     <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" precision="minute" ></g:datePicker>
     116                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'subTasksGenerated','errors')}">
     117                                    <input type="text" id="subTasksGenerated" name="subTasksGenerated" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'subTasksGenerated')}" />
    136118                                </td>
    137119                            </tr>
  • trunk/grails-app/views/taskRecurringSchedule/list.gsp

    r178 r199  
    2929                                <g:sortableColumn property="generateAhead" title="Generate Ahead" />
    3030                       
    31                                 <g:sortableColumn property="lastGeneratedDate" title="Last Generated Date" />
    32                        
    3331                                <th>Last Generated Sub Task</th>
    3432                           
     33                                <g:sortableColumn property="enabled" title="Enabled" />
     34                       
    3535                        </tr>
    3636                    </thead>
     
    4747                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'generateAhead')}</td>
    4848                       
    49                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedDate')}</td>
     49                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedSubTask')}</td>
    5050                       
    51                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedSubTask')}</td>
     51                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td>
    5252                       
    5353                        </tr>
  • trunk/grails-app/views/taskRecurringSchedule/show.gsp

    r178 r199  
    5151                   
    5252                        <tr class="prop">
    53                             <td valign="top" class="name">Last Generated Date:</td>
    54                            
    55                             <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedDate')}</td>
    56                            
    57                         </tr>
    58                    
    59                         <tr class="prop">
    6053                            <td valign="top" class="name">Last Generated Sub Task:</td>
    6154                           
     
    6558                   
    6659                        <tr class="prop">
    67                             <td valign="top" class="name">Generate Ahead Period:</td>
     60                            <td valign="top" class="name">Enabled:</td>
    6861                           
    69                             <td valign="top" class="value"><g:link controller="period" action="show" id="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}">${taskRecurringScheduleInstance?.generateAheadPeriod?.encodeAsHTML()}</g:link></td>
    70                            
    71                         </tr>
    72                    
    73                         <tr class="prop">
    74                             <td valign="top" class="name">Is Enabled:</td>
    75                            
    76                             <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td>
     62                            <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td>
    7763                           
    7864                        </tr>
     
    10793                   
    10894                        <tr class="prop">
    109                             <td valign="top" class="name">Start Date:</td>
     95                            <td valign="top" class="name">Sub Tasks Generated:</td>
    11096                           
    111                             <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'startDate')}</td>
     97                            <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'subTasksGenerated')}</td>
    11298                           
    11399                        </tr>
  • trunk/grails-app/views/taskRecurringScheduleDetailed/create.gsp

    r157 r199  
    3838                            <tr class="prop">
    3939                                <td valign="top" class="name">
    40                                     <label for="startDate">Start Date:</label>
     40                                    <label for="nextTargetStartDate">Next Target Start Date:</label>
    4141                                </td>
    42                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
    43                                     <richui:dateChooser name="startDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.startDate}" />
     42                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}">
     43                                    <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" />
    4444                                </td>
    4545                            </tr>   
     
    7474                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}"
    7575                                        id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" />
    76                                     <g:select optionKey="id" from="${Period.list()}" name="generateAheadPeriod.id" value="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}" ></g:select>
     76                                        ${Period.get(1).encodeAsHTML()}
    7777                                </td>
    7878                            </tr>
     
    8080                            <tr class="prop">
    8181                                <td valign="top" class="name">
    82                                     <label for="isEnabled">Is Enabled:</label>
     82                                    <label for="enabled">Enabled:</label>
    8383                                </td>
    84                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
    85                                     <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
     84                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
     85                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
    8686                                </td>
    8787                            </tr>
  • trunk/grails-app/views/taskRecurringScheduleDetailed/edit.gsp

    r157 r199  
    3939                            <tr class="prop">
    4040                                <td valign="top" class="name">
    41                                     <label for="startDate">Start Date:</label>
     41                                    <label for="nextTargetStartDate">Next Target Start Date:</label>
    4242                                </td>
    43                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
    44                                     <richui:dateChooser name="startDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.startDate}" />
     43                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextTargetStartDate','errors')}">
     44                                    <richui:dateChooser name="nextTargetStartDate" format="dd-MM-yyyy" value="${taskRecurringScheduleInstance?.nextTargetStartDate}" />
    4545                                </td>
    4646                            </tr>   
     
    7575                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'generateAhead','errors')}"
    7676                                        id="generateAhead" name="generateAhead" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'generateAhead')}" />
    77                                     <g:select optionKey="id" from="${Period.list()}" name="generateAheadPeriod.id" value="${taskRecurringScheduleInstance?.generateAheadPeriod?.id}" ></g:select>
     77                                        ${Period.get(1).encodeAsHTML()}
    7878                                </td>
    7979                            </tr>
     
    8181                            <tr class="prop">
    8282                                <td valign="top" class="name">
    83                                     <label for="isEnabled">Is Enabled:</label>
     83                                    <label for="enabled">Enabled:</label>
    8484                                </td>
    85                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
    86                                     <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
     85                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
     86                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
    8787                                </td>
    8888                            </tr>
  • trunk/grails-app/views/taskRecurringScheduleDetailed/list.gsp

    r178 r199  
    2929                                <g:sortableColumn property="recurPeriod" title="Recur Period" />
    3030                               
    31                                 <g:sortableColumn property="isEnabled" title="Is Enabled" />
     31                                <g:sortableColumn property="enabled" title="Enabled" />
    3232
    3333                            <th></th>
     
    4848                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'recurPeriod')}</td>
    4949                       
    50                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td>
     50                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td>
    5151
    5252                            <td>
  • trunk/grails-app/views/taskRecurringScheduleDetailed/show.gsp

    r157 r199  
    1313        <div class="body">
    1414            <g:if test="${flash.message}">
    15             <div class="message">${flash.message}</div>
     15                <div class="message">${flash.message}</div>
    1616            </g:if>
    1717            <div class="dialog">
    1818                <table>
    19                     <tbody>     
    20                                    
     19                    <tbody>
    2120                        <tr class="prop">
    22                             <td valign="top" class="name">Id:</td>
    23                            
    24                             <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'id')}</td>
    25                            
     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>
    2628                        </tr>
    2729
    28                                                 <tr class="prop">
    29                                                         <td valign="top" class="name">
    30                                                                 <label for="recForTask">Recurring Schedule for Task:</label>
    31                                                         </td>
    32                                                         <td valign="top" name="recForTask" class="value">
    33                                                                 <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link>
    34                                                         </td>
    35                                                 </tr>
    36                    
    3730                        <tr class="prop">
    38                             <td valign="top" class="name">Start Date:</td>
    39                            
    40                             <td valign="top" class="value">
    41                                 <g:formatDate date="${taskRecurringScheduleInstance.startDate}" format="EEE, dd-MMM-yyyy"/>
    42                             </td>
     31                            <td valign="top" class="name"></td>
     32
     33                            <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td>
    4334                        </tr>
    44                    
    45                         <tr class="prop">
    46                             <td valign="top" class="name">Recur Every:</td>
    47                            
    48                             <td valign="top" class="value">
    49                                                                 ${taskRecurringScheduleInstance?.recurEvery} ${taskRecurringScheduleInstance?.recurPeriod}
    50                                                         </td>
    51                            
    52                         </tr>
    53                    
    54                         <tr class="prop">
    55                             <td valign="top" class="name">Task Duration:</td>
    56                            
    57                             <td valign="top" class="value">
    58                                 ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod}
    59                             </td>
    60                         </tr>
    61                    
    62                         <tr class="prop">
    63                             <td valign="top" class="name">Generate Ahead:</td>
    64                            
    65                             <td valign="top" class="value">
    66                                 ${taskRecurringScheduleInstance?.generateAhead} ${taskRecurringScheduleInstance?.generateAheadPeriod}
    67                             </td>
    68                            
    69                         </tr>
    70                    
    71                         <tr class="prop">
    72                             <td valign="top" class="name">Is Enabled:</td>
    73                            
    74                             <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td>
    75                            
    76                         </tr>
    77                     </tbody>
    78                 </table>
    79                
    80                 <table>
    81                     <tbody>
    82                         <tr class="prop">
    83                             <td valign="top" class="name">Next Target Start Date:</td>
    84                            
    85                             <td valign="top" class="value">
    86                                                                 <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/>
    87                                                         </td>
    88                            
    89                         </tr>
    90                    
    91                         <tr class="prop">
    92                             <td valign="top" class="name">Next Target Completion Date:</td>
    93                            
    94                             <td valign="top" class="value">
    95                                 <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/>
    96                             </td>
    97                            
    98                         </tr>
    99                        
     35
    10036                        <tr class="prop">
    10137                            <td valign="top" class="name">Next Generation Date:</td>
    102                            
     38
    10339                            <td valign="top" class="value">
    10440                                <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/>
    10541                            </td>
    10642                        </tr>
    107                                                
     43
    10844                        <tr class="prop">
    109                             <td valign="top" class="name">Last Generated Date:</td>
    110                            
     45                            <td valign="top" class="name">Generate Ahead:</td>
     46
    11147                            <td valign="top" class="value">
    112                                         <g:formatDate date="${taskRecurringScheduleInstance.lastGeneratedDate}" format="EEE, dd-MMM-yyyy"/>
    113                                                         </td>
     48                                ${taskRecurringScheduleInstance.generateAhead} ${Period.get(1).encodeAsHTML()}
     49                            </td>
    11450                        </tr>
    115                    
     51
    11652                        <tr class="prop">
    117                             <td valign="top" class="name">Last Generated Sub Task:</td>
    118                            
     53                            <td valign="top" class="name">Next Target Start Date:</td>
     54
    11955                            <td valign="top" class="value">
    120                                                                 <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}">
    121                                                                         ${taskRecurringScheduleInstance?.lastGeneratedSubTask?.encodeAsHTML()}
    122                                                                 </g:link>
    123                                                         </td>
    124                            
     56                                <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/>
     57                            </td>
    12558                        </tr>
    126                    
     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
    127134                    </tbody>
    128135                </table>
     
    130137            <div class="buttons">
    131138                <g:form>
    132                     <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" />
     139                    <input type="hidden" name="id" value="${taskRecurringScheduleInstance.id}" />
    133140                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
    134141<!--                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -->
Note: See TracChangeset for help on using the changeset viewer.