[116] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[175] | 7 | <title>Edit InventoryLocation</title> |
---|
[116] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[175] | 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> |
---|
[116] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[175] | 15 | <h1>Edit InventoryLocation</h1> |
---|
[116] | 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
[175] | 19 | <g:hasErrors bean="${inventoryLocationInstance}"> |
---|
[116] | 20 | <div class="errors"> |
---|
[175] | 21 | <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> |
---|
[116] | 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
| 24 | <g:form method="post" > |
---|
[175] | 25 | <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> |
---|
| 26 | <input type="hidden" name="version" value="${inventoryLocationInstance?.version}" /> |
---|
[116] | 27 | <div class="dialog"> |
---|
| 28 | <table> |
---|
| 29 | <tbody> |
---|
| 30 | |
---|
| 31 | <tr class="prop"> |
---|
| 32 | <td valign="top" class="name"> |
---|
[175] | 33 | <label for="name">Name:</label> |
---|
[116] | 34 | </td> |
---|
[175] | 35 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> |
---|
| 36 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> |
---|
[116] | 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
[175] | 42 | <label for="inventoryItems">Inventory Items:</label> |
---|
[116] | 43 | </td> |
---|
[175] | 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 | |
---|
[116] | 53 | </td> |
---|
| 54 | </tr> |
---|
| 55 | |
---|
| 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name"> |
---|
[175] | 58 | <label for="inventoryStore">Inventory Store:</label> |
---|
[116] | 59 | </td> |
---|
[175] | 60 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> |
---|
| 61 | <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> |
---|
[116] | 62 | </td> |
---|
| 63 | </tr> |
---|
| 64 | |
---|
| 65 | <tr class="prop"> |
---|
| 66 | <td valign="top" class="name"> |
---|
[175] | 67 | <label for="isActive">Is Active:</label> |
---|
[116] | 68 | </td> |
---|
[175] | 69 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> |
---|
| 70 | <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> |
---|
[116] | 71 | </td> |
---|
| 72 | </tr> |
---|
| 73 | |
---|
| 74 | </tbody> |
---|
| 75 | </table> |
---|
| 76 | </div> |
---|
| 77 | <div class="buttons"> |
---|
| 78 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 79 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 80 | </div> |
---|
| 81 | </g:form> |
---|
| 82 | </div> |
---|
| 83 | </body> |
---|
| 84 | </html> |
---|