| 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 InventoryStore</title> | 
|---|
| 8 | <nav:resources override="true"/> | 
|---|
| 9 | </head> | 
|---|
| 10 | <body> | 
|---|
| 11 | <div class="nav"> | 
|---|
| 12 | <nav:renderSubItems group="navAlt"/> | 
|---|
| 13 | </div> | 
|---|
| 14 | <div class="body"> | 
|---|
| 15 | <g:if test="${flash.message}"> | 
|---|
| 16 | <div class="message">${flash.message}</div> | 
|---|
| 17 | </g:if> | 
|---|
| 18 | <g:hasErrors bean="${inventoryStoreInstance}"> | 
|---|
| 19 | <div class="errors"> | 
|---|
| 20 | <g:renderErrors bean="${inventoryStoreInstance}" as="list" /> | 
|---|
| 21 | </div> | 
|---|
| 22 | </g:hasErrors> | 
|---|
| 23 | <g:form method="post" > | 
|---|
| 24 | <input type="hidden" name="id" value="${inventoryStoreInstance?.id}" /> | 
|---|
| 25 | <input type="hidden" name="version" value="${inventoryStoreInstance?.version}" /> | 
|---|
| 26 | <div class="dialog"> | 
|---|
| 27 | <table> | 
|---|
| 28 | <tbody> | 
|---|
| 29 |  | 
|---|
| 30 | <tr class="prop"> | 
|---|
| 31 | <td valign="top" class="name"> | 
|---|
| 32 | <label for="name">Name:</label> | 
|---|
| 33 | </td> | 
|---|
| 34 | <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'name','errors')}"> | 
|---|
| 35 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryStoreInstance,field:'name')}"/> | 
|---|
| 36 | </td> | 
|---|
| 37 | </tr> | 
|---|
| 38 |  | 
|---|
| 39 | <tr class="prop"> | 
|---|
| 40 | <td valign="top" class="name"> | 
|---|
| 41 | <label for="description">Description:</label> | 
|---|
| 42 | </td> | 
|---|
| 43 | <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'description','errors')}"> | 
|---|
| 44 | <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:inventoryStoreInstance,field:'description')}"/> | 
|---|
| 45 | </td> | 
|---|
| 46 | </tr> | 
|---|
| 47 |  | 
|---|
| 48 | <tr class="prop"> | 
|---|
| 49 | <td valign="top" class="name"> | 
|---|
| 50 | <label for="isActive">Is Active:</label> | 
|---|
| 51 | </td> | 
|---|
| 52 | <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'isActive','errors')}"> | 
|---|
| 53 | <g:checkBox name="isActive" value="${inventoryStoreInstance?.isActive}" ></g:checkBox> | 
|---|
| 54 | </td> | 
|---|
| 55 | </tr> | 
|---|
| 56 |  | 
|---|
| 57 | <tr class="prop"> | 
|---|
| 58 | <td valign="top" class="name"> | 
|---|
| 59 | <label for="site">Site:</label> | 
|---|
| 60 | </td> | 
|---|
| 61 | <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'site','errors')}"> | 
|---|
| 62 | <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${inventoryStoreInstance?.site?.id}" ></g:select> | 
|---|
| 63 | </td> | 
|---|
| 64 | </tr> | 
|---|
| 65 |  | 
|---|
| 66 | <tr class="prop"> | 
|---|
| 67 | <td valign="top" class="name"> | 
|---|
| 68 | <label for="inventoryLocations">Inventory Locations:</label> | 
|---|
| 69 | </td> | 
|---|
| 70 | <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'inventoryLocations','errors')}"> | 
|---|
| 71 |  | 
|---|
| 72 | <ul> | 
|---|
| 73 | <g:each var="i" in="${inventoryStoreInstance?.inventoryLocations?}"> | 
|---|
| 74 | <li><g:link controller="inventoryLocationDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> | 
|---|
| 75 | </g:each> | 
|---|
| 76 | </ul> | 
|---|
| 77 | <g:link controller="inventoryLocationDetailed" params="['inventoryStore.id':inventoryStoreInstance?.id]" action="create">+Add Inventory Location</g:link> | 
|---|
| 78 |  | 
|---|
| 79 | </td> | 
|---|
| 80 | </tr> | 
|---|
| 81 |  | 
|---|
| 82 | </tbody> | 
|---|
| 83 | </table> | 
|---|
| 84 | </div> | 
|---|
| 85 | <div class="buttons"> | 
|---|
| 86 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> | 
|---|
| 87 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> | 
|---|
| 88 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> | 
|---|
| 89 | </div> | 
|---|
| 90 | </g:form> | 
|---|
| 91 | </div> | 
|---|
| 92 | </body> | 
|---|
| 93 | </html> | 
|---|