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/inventoryItemDetailed
Files:
2 edited

Legend:

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

    r116 r124  
    2828                                <g:sortableColumn property="description" title="Description" />
    2929                       
    30                                 <g:sortableColumn property="reorderPoint" title="Reorder Point" />
    31                        
    3230                                <g:sortableColumn property="enableReorder" title="Enable Reorder" />
    3331                       
    3432                                <g:sortableColumn property="isActive" title="Is Active" />
     33
     34                            <th></th>
    3535                       
    3636                        </tr>
     
    3838                    <tbody>
    3939                    <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance">
    40                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
     40                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"'/>
    4141                       
    42                             <td><g:link action="show" id="${inventoryItemInstance.id}">${fieldValue(bean:inventoryItemInstance, field:'id')}</g:link></td>
     42                            <td>${fieldValue(bean:inventoryItemInstance, field:'id')}</td>
    4343                       
    4444                            <td>${fieldValue(bean:inventoryItemInstance, field:'name')}</td>
     
    4646                            <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td>
    4747                       
    48                             <td>${fieldValue(bean:inventoryItemInstance, field:'reorderPoint')}</td>
    49                        
    5048                            <td>${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td>
    5149                       
    5250                            <td>${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td>
     51
     52                            <td>
     53                                <g:link action="show" id="${inventoryItemInstance.id}">
     54                                    <img  src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" />
     55                                </g:link>
     56                            </td>
    5357                       
    5458                        </tr>
  • trunk/grails-app/views/inventoryItemDetailed/show.gsp

    r116 r124  
    166166                                <ul>
    167167                                <g:each var="s" in="${inventoryItemInstance.spareFor}">
    168                                     <li><g:link controller="asset" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     168                                    <li><g:link controller="assetDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    169169                                </g:each>
    170170                                </ul>
Note: See TracChangeset for help on using the changeset viewer.