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.

Location:
trunk/grails-app/views/taskRecurringScheduleDetailed
Files:
3 edited

Legend:

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

    r213 r445  
    8181                                </td>
    8282                            </tr>
     83                     
     84                            <tr class="prop">
     85                                <td valign="top" class="name">
     86                                    <label for="maxSubTasks">Max Sub Tasks:</label>
     87                                </td>
     88                                <td valign="top" class="value" >
     89                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'maxSubTasks','errors')}"
     90                                        id="maxSubTasks" name="maxSubTasks" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'maxSubTasks')}" />
     91                                        <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.maxSubTasks" />
     92                                </td>
     93                            </tr>
     94                       
     95                            <tr class="prop">
     96                                <td valign="top" class="name">
     97                                    <label for="useTargetCompletionDate">Use Target Completion Date:</label>
     98                                </td>
     99                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'useTargetCompletionDate','errors')}">
     100                                    <g:checkBox name="useTargetCompletionDate"
     101                                                            value="${taskRecurringScheduleInstance?.useTargetCompletionDate}" >
     102                                    </g:checkBox>
     103                                    <g:helpBalloon class="helpballoon" code="taskRecurringSchedule.useTargetCompletionDate" />
     104                                    <g:formatDate date="${taskRecurringScheduleInstance.task.targetCompletionDate}"
     105                                                                    format="EEE, dd-MMM-yyyy"/>
     106                                </td>
     107                            </tr>
    83108                       
    84109                            <tr class="prop">
  • 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>
  • trunk/grails-app/views/taskRecurringScheduleDetailed/show.gsp

    r199 r445  
    3333                            <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td>
    3434                        </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>
    3552
    3653                        <tr class="prop">
     
    7491                        </tr>
    7592
    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 
    8293                    </tbody>
    8394                </table>
     
    100111                            </td>
    101112                        </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>
    102123
    103124                        <g:if test="${taskRecurringScheduleInstance.lastGeneratedSubTask}">
Note: See TracChangeset for help on using the changeset viewer.