[125] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
| 7 | <title>Edit StoredItem</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
| 12 | <span class="menuButton"><g:link class="list" action="list">StoredItem List</g:link></span> |
---|
| 13 | <span class="menuButton"><g:link class="create" action="create">New StoredItem</g:link></span> |
---|
| 14 | </div> |
---|
| 15 | <div class="body"> |
---|
| 16 | <h1>Edit StoredItem</h1> |
---|
| 17 | <g:if test="${flash.message}"> |
---|
| 18 | <div class="message">${flash.message}</div> |
---|
| 19 | </g:if> |
---|
| 20 | <g:hasErrors bean="${storedItemInstance}"> |
---|
| 21 | <div class="errors"> |
---|
| 22 | <g:renderErrors bean="${storedItemInstance}" as="list" /> |
---|
| 23 | </div> |
---|
| 24 | </g:hasErrors> |
---|
| 25 | <g:form method="post" > |
---|
| 26 | <input type="hidden" name="id" value="${storedItemInstance?.id}" /> |
---|
| 27 | <input type="hidden" name="version" value="${storedItemInstance?.version}" /> |
---|
| 28 | <div class="dialog"> |
---|
| 29 | <table> |
---|
| 30 | <tbody> |
---|
| 31 | |
---|
| 32 | <tr class="prop"> |
---|
| 33 | <td valign="top" class="name"> |
---|
| 34 | <label for="quantity">Quantity:</label> |
---|
| 35 | </td> |
---|
| 36 | <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'quantity','errors')}"> |
---|
| 37 | <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:storedItemInstance,field:'quantity')}" /> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
| 43 | <label for="inventoryItem">Inventory Item:</label> |
---|
| 44 | </td> |
---|
| 45 | <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'inventoryItem','errors')}"> |
---|
| 46 | <g:select optionKey="id" from="${InventoryItem.list()}" name="inventoryItem.id" value="${storedItemInstance?.inventoryItem?.id}" ></g:select> |
---|
| 47 | </td> |
---|
| 48 | </tr> |
---|
| 49 | |
---|
| 50 | <tr class="prop"> |
---|
| 51 | <td valign="top" class="name"> |
---|
| 52 | <label for="storeLocation">Store Location:</label> |
---|
| 53 | </td> |
---|
| 54 | <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'storeLocation','errors')}"> |
---|
| 55 | <g:select optionKey="id" from="${StoreLocation.list()}" name="storeLocation.id" value="${storedItemInstance?.storeLocation?.id}" ></g:select> |
---|
| 56 | </td> |
---|
| 57 | </tr> |
---|
| 58 | |
---|
| 59 | </tbody> |
---|
| 60 | </table> |
---|
| 61 | </div> |
---|
| 62 | <div class="buttons"> |
---|
| 63 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 64 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 65 | </div> |
---|
| 66 | </g:form> |
---|
| 67 | </div> |
---|
| 68 | </body> |
---|
| 69 | </html> |
---|