Ignore:
Timestamp:
May 4, 2009, 1:59:11 PM (15 years ago)
Author:
gav
Message:

Detail controller and views for Asset, AssetExtendedAttribute?, PlannedMaintenance?, MaintenanceAction?, RecurringSchedule?, SystemSection?.
Some minor work on Task controller and views.
Change PlannedMaintenance? relationship, adjust ERD, Bootstrap and Domain classes to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskDetailed/show.gsp

    r106 r124  
    176176                    <tbody>
    177177                    <g:each in="${taskInstance?.entries}" status="i" var="entry">
    178                         <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> 
    179                             <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
     178                        <g:if test="${entry.entryType == EntryType.findByName('Fault')}">
     179                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/>
    180180                           
    181181                                <td style="width:65%">${entry.comment}</td>
     
    183183                                <td>${entry.durationHour}:${entry.durationMinute}</td>
    184184                                <td>${entry.enteredBy}</td>
     185
    185186                                <td>
    186187                                    <g:link controller="entryDetailed" action="edit" id="${entry.id}">
     
    189190                                </td>
    190191
     192                            </tr>
    191193                        </g:if>
    192                        
    193                         </tr>
    194194                    </g:each>
    195195                    </tbody>
     
    207207                            <th>Entered By</th>
    208208                            <th></th>
     209
    209210<!--                            <g:sortableColumn property="commentW" title="Comment" />
    210211                       
     
    216217                    <tbody>
    217218                    <g:each in="${taskInstance?.entries}" status="i" var="entry">
    218                         <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> 
    219                             <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    220                            
     219                        <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}">
     220                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/>
     221
    221222                                <td width="65%">${entry.comment}</td>
    222223                                <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td>
    223224                                <td>${entry.durationHour}:${entry.durationMinute}</td>
    224225                                <td>${entry.enteredBy}</td>
     226
    225227                                <td>
    226228                                    <g:link controller="entryDetailed" action="edit" id="${entry.id}">
     
    228230                                    </g:link>
    229231                                </td>
     232
     233                            </tr>
    230234                        </g:if>
    231                        
    232                         </tr>
    233235                    </g:each>
    234236                    </tbody>
Note: See TracChangeset for help on using the changeset viewer.