Changeset 175 for trunk/grails-app/views/inventoryLocation/edit.gsp
- Timestamp:
- Oct 29, 2009, 8:30:58 PM (15 years ago)
- Location:
- trunk/grails-app/views/inventoryLocation
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryLocation/edit.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit StoreLocation</title>7 <title>Edit InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit StoreLocation</h1>16 <h1>Edit InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ storeLocationInstance}">20 <g:hasErrors bean="${inventoryLocationInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ storeLocationInstance}" as="list" />22 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />27 <input type="hidden" name="version" value="${ storeLocationInstance?.version}" />26 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 27 <input type="hidden" name="version" value="${inventoryLocationInstance?.version}" /> 28 28 <div class="dialog"> 29 29 <table> … … 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" bin">Bin:</label>34 <label for="name">Name:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}"> 37 <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/> 36 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 43 <label for="inventoryItems">Inventory Items:</label> 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}"> 46 47 <ul> 48 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}"> 49 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 50 </g:each> 51 </ul> 52 <g:link controller="inventoryItem" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link> 53 38 54 </td> 39 55 </tr> … … 43 59 <label for="inventoryStore">Inventory Store:</label> 44 60 </td> 45 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">46 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>61 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 62 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 47 63 </td> 48 64 </tr> … … 52 68 <label for="isActive">Is Active:</label> 53 69 </td> 54 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}"> 55 <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="storedItems">Stored Items:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'storedItems','errors')}"> 64 65 <ul> 66 <g:each var="s" in="${storeLocationInstance?.storedItems?}"> 67 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="storedItem" params="['storeLocation.id':storeLocationInstance?.id]" action="create">Add StoredItem</g:link> 71 70 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 71 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 72 72 </td> 73 73 </tr>
Note: See TracChangeset
for help on using the changeset viewer.