Ignore:
Timestamp:
Feb 18, 2010, 1:20:22 AM (14 years ago)
Author:
gav
Message:

Detail Manufacturer and Supplier views and controllers.

File:
1 edited

Legend:

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

    r178 r374  
    66        <meta name="layout" content="main" />
    77        <title>Show Manufacturer</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">Manufacturer List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New Manufacturer</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1313        </div>
    1414        <div class="body">
    15             <h1>Show Manufacturer</h1>
    1615            <g:if test="${flash.message}">
    1716            <div class="message">${flash.message}</div>
     
    3029                   
    3130                        <tr class="prop">
    32                             <td valign="top" class="name">Description:</td>
     31                            <td valign="top" class="name">Name:</td>
    3332                           
    34                             <td valign="top" class="value">${fieldValue(bean:manufacturerInstance, field:'description')}</td>
     33                            <td valign="top" class="value">${fieldValue(bean:manufacturerInstance, field:'name')}</td>
    3534                           
    3635                        </tr>
    3736                   
    3837                        <tr class="prop">
    39                             <td valign="top" class="name">Inventory Items:</td>
     38                            <td valign="top" class="name">Description:</td>
    4039                           
    41                             <td  valign="top" style="text-align:left;" class="value">
    42                                 <ul>
    43                                 <g:each var="i" in="${manufacturerInstance.inventoryItems}">
    44                                     <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
    45                                 </g:each>
    46                                 </ul>
    47                             </td>
     40                            <td valign="top" class="value">${fieldValue(bean:manufacturerInstance, field:'description')}</td>
    4841                           
    4942                        </tr>
     
    5952                            <td valign="top" class="name">Manufacturer Type:</td>
    6053                           
    61                             <td valign="top" class="value"><g:link controller="manufacturerType" action="show" id="${manufacturerInstance?.manufacturerType?.id}">${manufacturerInstance?.manufacturerType?.encodeAsHTML()}</g:link></td>
     54                            <td valign="top" class="value"><g:link controller="manufacturerTypeDetailed" action="show" id="${manufacturerInstance?.manufacturerType?.id}">${manufacturerInstance?.manufacturerType?.encodeAsHTML()}</g:link></td>
    6255                           
    6356                        </tr>
    6457                   
    6558                        <tr class="prop">
    66                             <td valign="top" class="name">Name:</td>
     59                            <td valign="top" class="name">Inventory Items:</td>
    6760                           
    68                             <td valign="top" class="value">${fieldValue(bean:manufacturerInstance, field:'name')}</td>
     61                            <td  valign="top" style="text-align:left;" class="value">
     62                                <ul>
     63                                <g:each var="i" in="${manufacturerInstance.inventoryItems}">
     64                                    <li><g:link controller="inventoryItemDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
     65                                </g:each>
     66                                </ul>
     67                            </td>
    6968                           
    7069                        </tr>
Note: See TracChangeset for help on using the changeset viewer.