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.

Location:
trunk/grails-app/views/maintenanceActionDetailed
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/maintenanceActionDetailed/list.gsp

    r122 r124  
    2424                                <g:sortableColumn property="id" title="Id" />
    2525                       
    26                                 <th>System Section</th>
     26                            <th>Action</th>
     27                       
     28                                <th>Planned Maintenance</th>
    2729                           
    2830                                <th>Asset</th>
     
    3133                           
    3234                                <th>Assembly</th>
    33                            
    34                                 <th>Sub Assembly</th>
     35
     36                            <th></th>
    3537                           
    3638                        </tr>
     
    3840                    <tbody>
    3941                    <g:each in="${maintenanceActionInstanceList}" status="i" var="maintenanceActionInstance">
    40                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    41                        
     42                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/show/${maintenanceActionInstance.id}"'/>
     43
    4244                            <td><g:link action="show" id="${maintenanceActionInstance.id}">${fieldValue(bean:maintenanceActionInstance, field:'id')}</g:link></td>
    43                        
    44                             <td>${fieldValue(bean:maintenanceActionInstance, field:'systemSection')}</td>
     45                                               
     46                            <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td>
     47
     48                            <td>${fieldValue(bean:maintenanceActionInstance, field:'plannedMaintenance')}</td>
    4549                       
    4650                            <td>${fieldValue(bean:maintenanceActionInstance, field:'asset')}</td>
     
    5054                            <td>${fieldValue(bean:maintenanceActionInstance, field:'assembly')}</td>
    5155                       
    52                             <td>${fieldValue(bean:maintenanceActionInstance, field:'subAssembly')}</td>
    53                        
     56                            <td>
     57                                <g:link action="show" id="${maintenanceActionInstance.id}">
     58                                    <img  src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" />
     59                                </g:link>
     60                            </td>
     61
    5462                        </tr>
    5563                    </g:each>
Note: See TracChangeset for help on using the changeset viewer.