| [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" /> |
|---|
| [175] | 7 | <title>Edit InventoryLocation</title> |
|---|
| [377] | 8 | <nav:resources override="true"/> |
|---|
| [125] | 9 | </head> |
|---|
| 10 | <body> |
|---|
| 11 | <div class="nav"> |
|---|
| [377] | 12 | <nav:renderSubItems group="navAlt"/> |
|---|
| [125] | 13 | </div> |
|---|
| 14 | <div class="body"> |
|---|
| 15 | <g:if test="${flash.message}"> |
|---|
| 16 | <div class="message">${flash.message}</div> |
|---|
| 17 | </g:if> |
|---|
| [175] | 18 | <g:hasErrors bean="${inventoryLocationInstance}"> |
|---|
| [125] | 19 | <div class="errors"> |
|---|
| [175] | 20 | <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> |
|---|
| [125] | 21 | </div> |
|---|
| 22 | </g:hasErrors> |
|---|
| 23 | <g:form method="post" > |
|---|
| [175] | 24 | <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> |
|---|
| 25 | <input type="hidden" name="version" value="${inventoryLocationInstance?.version}" /> |
|---|
| [125] | 26 | <div class="dialog"> |
|---|
| 27 | <table> |
|---|
| 28 | <tbody> |
|---|
| 29 | |
|---|
| 30 | <tr class="prop"> |
|---|
| 31 | <td valign="top" class="name"> |
|---|
| [175] | 32 | <label for="name">Name:</label> |
|---|
| [125] | 33 | </td> |
|---|
| [175] | 34 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> |
|---|
| 35 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> |
|---|
| [125] | 36 | </td> |
|---|
| 37 | </tr> |
|---|
| 38 | |
|---|
| 39 | <tr class="prop"> |
|---|
| 40 | <td valign="top" class="name"> |
|---|
| [175] | 41 | <label for="inventoryStore">Inventory Store:</label> |
|---|
| [125] | 42 | </td> |
|---|
| [175] | 43 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> |
|---|
| 44 | <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> |
|---|
| [125] | 45 | </td> |
|---|
| 46 | </tr> |
|---|
| 47 | |
|---|
| 48 | <tr class="prop"> |
|---|
| 49 | <td valign="top" class="name"> |
|---|
| [175] | 50 | <label for="isActive">Is Active:</label> |
|---|
| [125] | 51 | </td> |
|---|
| [175] | 52 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> |
|---|
| 53 | <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> |
|---|
| [125] | 54 | </td> |
|---|
| 55 | </tr> |
|---|
| 56 | |
|---|
| [377] | 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> |
|---|
| [410] | 68 | <g:link controller="inventoryItemDetailed" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">+Add Inventory Item</g:link> |
|---|
| [377] | 69 | |
|---|
| 70 | </td> |
|---|
| 71 | </tr> |
|---|
| 72 | |
|---|
| [125] | 73 | </tbody> |
|---|
| 74 | </table> |
|---|
| 75 | </div> |
|---|
| 76 | <div class="buttons"> |
|---|
| 77 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
|---|
| [377] | 78 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
|---|
| [125] | 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> |
|---|