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/list.gsp

    r134 r135  
    2424                                <g:sortableColumn property="id" title="Id" />
    2525                       
    26                                 <g:sortableColumn property="lastGeneratedDate" title="Last Generated Date" />
     26                                <g:sortableColumn property="taskId" title="Recurring Schedule for Task" />
    2727                       
    28                                 <th>Last Generated Sub Task</th>
    29                            
     28                                <g:sortableColumn property="recurEvery" title="Recur Every" />
     29                               
     30                                <g:sortableColumn property="period" title="Period" />
     31                               
    3032                                <g:sortableColumn property="isEnabled" title="Is Enabled" />
    31                        
    32                                 <g:sortableColumn property="nextDueDate" title="Next Due Date" />
    33                        
    34                                 <th>Period</th>
     33
     34                            <th></th>
    3535                           
    3636                        </tr>
     
    3838                    <tbody>
    3939                    <g:each in="${taskRecurringScheduleInstanceList}" status="i" var="taskRecurringScheduleInstance">
    40                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
     40                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskRecurringScheduleDetailed/show/${taskRecurringScheduleInstance.id}"'/>
     41
    4142                       
    4243                            <td><g:link action="show" id="${taskRecurringScheduleInstance.id}">${fieldValue(bean:taskRecurringScheduleInstance, field:'id')}</g:link></td>
    4344                       
    44                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedDate')}</td>
     45                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'task')}</td>
    4546                       
    46                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedSubTask')}</td>
     47                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'recurEvery')}</td>
     48                       
     49                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'period')}</td>
    4750                       
    4851                            <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td>
    49                        
    50                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'nextDueDate')}</td>
    51                        
    52                             <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'period')}</td>
     52
     53                            <td>
     54                                <g:link action="show" id="${taskRecurringScheduleInstance.id}">
     55                                    <img  src="${createLinkTo(dir:'images/skin',file:'database_go.png')}" alt="Show" />
     56                                </g:link>
     57                            </td>
    5358                       
    5459                        </tr>
Note: See TracChangeset for help on using the changeset viewer.