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

    r178 r374  
    66        <meta name="layout" content="main" />
    77        <title>Edit 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>Edit Manufacturer</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:manufacturerInstance,field:'description','errors')}">
    36                                     <input type="text" id="description" name="description" value="${fieldValue(bean:manufacturerInstance,field:'description')}"/>
     34                                <td valign="top" class="value ${hasErrors(bean:manufacturerInstance,field:'name','errors')}">
     35                                    <input type="text" id="name" name="name" value="${fieldValue(bean:manufacturerInstance,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:manufacturerInstance,field:'inventoryItems','errors')}">
    45                                    
     43                                <td valign="top" class="value ${hasErrors(bean:manufacturerInstance,field:'description','errors')}">
     44                                    <input type="text" id="description" name="description" value="${fieldValue(bean:manufacturerInstance,field:'description')}"/>
    4645                                </td>
    4746                            </tr>
     
    6463                                </td>
    6564                            </tr>
    66                        
    67                             <tr class="prop">
    68                                 <td valign="top" class="name">
    69                                     <label for="name">Name:</label>
    70                                 </td>
    71                                 <td valign="top" class="value ${hasErrors(bean:manufacturerInstance,field:'name','errors')}">
    72                                     <input type="text" id="name" name="name" value="${fieldValue(bean:manufacturerInstance,field:'name')}"/>
    73                                 </td>
    74                             </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="${manufacturerInstance.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.