Ignore:
Timestamp:
May 13, 2009, 7:36:01 PM (15 years ago)
Author:
gav
Message:

Protect taskRecurringSchedule from creating if one already exists.
Turn some taskInstance text into links.
Work on taskRecurringSchedule detail and creation.

File:
1 edited

Legend:

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

    r134 r135  
    3232                                    <label for="recForTask">Recurring Schedule for Task:</label>
    3333                                </td>
    34                                 <td valign="top" name="recForTask" class="value">
    35                                     ${taskRecurringScheduleInstance.task}
     34                                                                <td valign="top" name="recForTask" class="value">
     35                                                                        <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="startDate">Start Date:</label>
     42                                </td>
     43                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
     44                                    <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}"  precision="day"></g:datePicker>
    3645                                </td>
    3746                            </tr>   
     
    3948                            <tr class="prop">
    4049                                <td valign="top" class="name">
    41                                     <label for="lastGeneratedDate">Last Generated Date:</label>
     50                                    <label for="recurEvery">Recur Every:</label>
    4251                                </td>
    43                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}">
    44                                     <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" noSelection="['':'']"></g:datePicker>
     52                                <td valign="top" class="value" >
     53                                    <input type="text" class="time ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}"
     54                                                                                id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
     55                                    <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${taskRecurringScheduleInstance?.period?.id}" ></g:select>
    4556                                </td>
    46                             </tr>
    47                        
    48                             <tr class="prop">
    49                                 <td valign="top" class="name">
    50                                     <label for="lastGeneratedSubTask">Last Generated Sub Task:</label>
    51                                 </td>
    52                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedSubTask','errors')}">
    53                                     <g:select optionKey="id" from="${Task.list()}" name="lastGeneratedSubTask.id" value="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}" noSelection="['null':'']"></g:select>
    54                                 </td>
    55                             </tr>
     57                            </tr>
    5658                       
    5759                            <tr class="prop">
     
    6163                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
    6264                                    <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
    63                                 </td>
    64                             </tr>
    65                        
    66                             <tr class="prop">
    67                                 <td valign="top" class="name">
    68                                     <label for="nextDueDate">Next Due Date:</label>
    69                                 </td>
    70                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextDueDate','errors')}">
    71                                     <g:datePicker name="nextDueDate" value="${taskRecurringScheduleInstance?.nextDueDate}" ></g:datePicker>
    72                                 </td>
    73                             </tr>
    74                        
    75                             <tr class="prop">
    76                                 <td valign="top" class="name">
    77                                     <label for="period">Period:</label>
    78                                 </td>
    79                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'period','errors')}">
    80                                     <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${taskRecurringScheduleInstance?.period?.id}" ></g:select>
    81                                 </td>
    82                             </tr>
    83                        
    84                             <tr class="prop">
    85                                 <td valign="top" class="name">
    86                                     <label for="recurEvery">Recur Every:</label>
    87                                 </td>
    88                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}">
    89                                     <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
    90                                 </td>
    91                             </tr>
    92                        
    93                             <tr class="prop">
    94                                 <td valign="top" class="name">
    95                                     <label for="startDate">Start Date:</label>
    96                                 </td>
    97                                 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
    98                                     <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" ></g:datePicker>
    9965                                </td>
    10066                            </tr>
Note: See TracChangeset for help on using the changeset viewer.