

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show TaskRecurringSchedule</title>
    </head>
    <body>
        <div class="nav">
            <h1>Show Recurring Schedule</h1>
        </div>
        <div class="body">
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>     
                                   
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'id')}</td>
                            
                        </tr>

						<tr class="prop">
							<td valign="top" class="name">
								<label for="recForTask">Recurring Schedule for Task:</label>
							</td>
							<td valign="top" name="recForTask" class="value">
								<g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link>
							</td>
						</tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Start Date:</td>
                            
                            <td valign="top" class="value">
                                <g:formatDate date="${taskRecurringScheduleInstance.startDate}" format="EEE, dd-MMM-yyyy"/>
                            </td>
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Recur Every:</td>
                            
                            <td valign="top" class="value">
								${taskRecurringScheduleInstance?.recurEvery} ${taskRecurringScheduleInstance?.recurPeriod}
							</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Task Duration:</td>
                            
                            <td valign="top" class="value">
                                ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod}
                            </td>
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Generate Ahead:</td>
                            
                            <td valign="top" class="value">
                                ${taskRecurringScheduleInstance?.generateAhead} ${taskRecurringScheduleInstance?.generateAheadPeriod}
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Is Enabled:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td>
                            
                        </tr>
                    </tbody>
                </table>
                
                <table>
                    <tbody>
                        <tr class="prop">
                            <td valign="top" class="name">Next Target Start Date:</td>
                            
                            <td valign="top" class="value">
								<g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/>
							</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Next Target Completion Date:</td>
                            
                            <td valign="top" class="value">
                                <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/>
                            </td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">Next Generation Date:</td>
                            
                            <td valign="top" class="value">
                                <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/>
                            </td>
                        </tr>
						
                        <tr class="prop">
                            <td valign="top" class="name">Last Generated Date:</td>
                            
                            <td valign="top" class="value">
                           		<g:formatDate date="${taskRecurringScheduleInstance.lastGeneratedDate}" format="EEE, dd-MMM-yyyy"/>
							</td>
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Last Generated Sub Task:</td>
                            
                            <td valign="top" class="value">
								<g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}">
									${taskRecurringScheduleInstance?.lastGeneratedSubTask?.encodeAsHTML()}
								</g:link>
							</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
<!--                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -->
                </g:form>
            </div>
        </div>
    </body>
</html>
