Ignore:
Timestamp:
Feb 18, 2010, 3:09:18 AM (14 years ago)
Author:
gav
Message:

Svn move InventoryLocation and InventoryStore controllers and views to detailed and complete detailing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/inventoryLocationDetailed/edit.gsp

    r178 r377  
    66        <meta name="layout" content="main" />
    77        <title>Edit InventoryLocation</title>
     8        <nav:resources override="true"/>
    89    </head>
    910    <body>
    1011        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span>
     12            <nav:renderSubItems group="navAlt"/>
    1313        </div>
    1414        <div class="body">
    15             <h1>Edit InventoryLocation</h1>
    1615            <g:if test="${flash.message}">
    1716            <div class="message">${flash.message}</div>
     
    4039                            <tr class="prop">
    4140                                <td valign="top" class="name">
    42                                     <label for="inventoryItems">Inventory Items:</label>
    43                                 </td>
    44                                 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}">
    45                                    
    46 <ul>
    47 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}">
    48     <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
    49 </g:each>
    50 </ul>
    51 <g:link controller="inventoryItem" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link>
    52 
    53                                 </td>
    54                             </tr>
    55                        
    56                             <tr class="prop">
    57                                 <td valign="top" class="name">
    5841                                    <label for="inventoryStore">Inventory Store:</label>
    5942                                </td>
     
    7255                            </tr>
    7356                       
     57                            <tr class="prop">
     58                                <td valign="top" class="name">
     59                                    <label for="inventoryItems">Inventory Items:</label>
     60                                </td>
     61                                <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}">
     62                                   
     63<ul>
     64<g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}">
     65    <li><g:link controller="inventoryItemDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
     66</g:each>
     67</ul>
     68<g:link controller="inventoryItemDetailed" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link>
     69
     70                                </td>
     71                            </tr>
     72                       
    7473                        </tbody>
    7574                    </table>
     
    7776                <div class="buttons">
    7877                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
     78                    <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span>
    7979                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
    8080                </div>
Note: See TracChangeset for help on using the changeset viewer.