Ignore:
Timestamp:
Mar 16, 2010, 5:18:20 PM (14 years ago)
Author:
gav
Message:

Add maxSubTasks and useTargetCompletionDate to TaskRecurringSchedule as features to end subTask generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskRecurringScheduleDetailed/edit.gsp

    r213 r445  
    3434                                <td valign="top" name="recForTask" class="value">
    3535                                    <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link>
     36                                </td>
     37                            </tr>
     38                       
     39                            <tr class="prop">
     40                                <td valign="top" class="name">
     41                                    <label for="enabled">Enabled:</label>
     42                                </td>
     43                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
     44                                    <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
     45                                        <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.enabled" />
    3646                                </td>
    3747                            </tr>
     
    8292                                </td>
    8393                            </tr>
     94                     
     95                            <tr class="prop">
     96                                <td valign="top" class="name">
     97                                    <label for="maxSubTasks">Max Sub Tasks:</label>
     98                                </td>
     99                                <td valign="top" class="value" >
     100                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'maxSubTasks','errors')}"
     101                                        id="maxSubTasks" name="maxSubTasks" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'maxSubTasks')}" />
     102                                        <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.maxSubTasks" />
     103                                </td>
     104                            </tr>
    84105                       
    85106                            <tr class="prop">
    86107                                <td valign="top" class="name">
    87                                     <label for="enabled">Enabled:</label>
     108                                    <label for="useTargetCompletionDate">Use Target Completion Date:</label>
    88109                                </td>
    89                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'enabled','errors')}">
    90                                     <g:checkBox name="enabled" value="${taskRecurringScheduleInstance?.enabled}" ></g:checkBox>
    91                                         <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.enabled" />
     110                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'useTargetCompletionDate','errors')}">
     111                                    <g:checkBox name="useTargetCompletionDate"
     112                                                                value="${taskRecurringScheduleInstance?.useTargetCompletionDate}" >
     113                                    </g:checkBox>
     114                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.useTargetCompletionDate" />
     115                                    <g:formatDate date="${taskRecurringScheduleInstance.task.targetCompletionDate}"
     116                                                                    format="EEE, dd-MMM-yyyy"/>
    92117                                </td>
    93118                            </tr>
Note: See TracChangeset for help on using the changeset viewer.