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/supplierDetailed/edit.gsp

    r178 r374  
    66        <meta name="layout" content="main" />
    77        <title>Edit Supplier</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">Supplier List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New Supplier</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1313        </div>
    1414        <div class="body">
    15             <h1>Edit Supplier</h1>
    1615            <g:if test="${flash.message}">
    1716            <div class="message">${flash.message}</div>
     
    3130                            <tr class="prop">
    3231                                <td valign="top" class="name">
    33                                     <label for="description">Description:</label>
     32                                    <label for="name">Name:</label>
    3433                                </td>
    35                                 <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'description','errors')}">
    36                                     <input type="text" id="description" name="description" value="${fieldValue(bean:supplierInstance,field:'description')}"/>
     34                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'name','errors')}">
     35                                    <input type="text" id="name" name="name" value="${fieldValue(bean:supplierInstance,field:'name')}"/>
    3736                                </td>
    3837                            </tr>
     
    4039                            <tr class="prop">
    4140                                <td valign="top" class="name">
    42                                     <label for="inventoryItems">Inventory Items:</label>
     41                                    <label for="description">Description:</label>
    4342                                </td>
    44                                 <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'inventoryItems','errors')}">
    45                                    
     43                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'description','errors')}">
     44                                    <input type="text" id="description" name="description" value="${fieldValue(bean:supplierInstance,field:'description')}"/>
    4645                                </td>
    4746                            </tr>
     
    5857                            <tr class="prop">
    5958                                <td valign="top" class="name">
    60                                     <label for="name">Name:</label>
    61                                 </td>
    62                                 <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'name','errors')}">
    63                                     <input type="text" id="name" name="name" value="${fieldValue(bean:supplierInstance,field:'name')}"/>
    64                                 </td>
    65                             </tr>
    66                        
    67                             <tr class="prop">
    68                                 <td valign="top" class="name">
    6959                                    <label for="supplierType">Supplier Type:</label>
    7060                                </td>
     
    7363                                </td>
    7464                            </tr>
     65                   
     66                            <tr class="prop">
     67                                <td valign="top" class="name">Inventory Items:</td>
     68                               
     69                                <td  valign="top" style="text-align:left;" class="value">
     70                                    <ul>
     71                                    <g:each var="i" in="${supplierInstance.inventoryItems}">
     72                                        <li><g:link controller="inventoryItemDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
     73                                    </g:each>
     74                                    </ul>
     75                                </td>
     76                               
     77                            </tr>
    7578                       
    7679                        </tbody>
     
    7982                <div class="buttons">
    8083                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
     84                    <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span>
    8185                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
    8286                </div>
Note: See TracChangeset for help on using the changeset viewer.