[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" /> |
---|
| 7 | <title>Edit InventoryGroup</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <span class="menuButton"><g:link class="list" action="list">InventoryGroup List</g:link></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New InventoryGroup</g:link></span> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <h1>Edit InventoryGroup</h1> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
| 19 | <g:hasErrors bean="${inventoryGroupInstance}"> |
---|
| 20 | <div class="errors"> |
---|
| 21 | <g:renderErrors bean="${inventoryGroupInstance}" as="list" /> |
---|
| 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
| 24 | <g:form method="post" > |
---|
| 25 | <input type="hidden" name="id" value="${inventoryGroupInstance?.id}" /> |
---|
| 26 | <input type="hidden" name="version" value="${inventoryGroupInstance?.version}" /> |
---|
| 27 | <div class="dialog"> |
---|
| 28 | <table> |
---|
| 29 | <tbody> |
---|
| 30 | |
---|
| 31 | <tr class="prop"> |
---|
| 32 | <td valign="top" class="name"> |
---|
| 33 | <label for="name">Name:</label> |
---|
| 34 | </td> |
---|
| 35 | <td valign="top" class="value ${hasErrors(bean:inventoryGroupInstance,field:'name','errors')}"> |
---|
| 36 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryGroupInstance,field:'name')}"/> |
---|
| 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
| 42 | <label for="description">Description:</label> |
---|
| 43 | </td> |
---|
| 44 | <td valign="top" class="value ${hasErrors(bean:inventoryGroupInstance,field:'description','errors')}"> |
---|
| 45 | <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:inventoryGroupInstance,field:'description')}"/> |
---|
| 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
| 51 | <label for="inventoryItems">Inventory Items:</label> |
---|
| 52 | </td> |
---|
| 53 | <td valign="top" class="value ${hasErrors(bean:inventoryGroupInstance,field:'inventoryItems','errors')}"> |
---|
| 54 | |
---|
| 55 | <ul> |
---|
| 56 | <g:each var="i" in="${inventoryGroupInstance?.inventoryItems?}"> |
---|
| 57 | <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> |
---|
| 58 | </g:each> |
---|
| 59 | </ul> |
---|
| 60 | <g:link controller="inventoryItem" params="['inventoryGroup.id':inventoryGroupInstance?.id]" action="create">Add InventoryItem</g:link> |
---|
| 61 | |
---|
| 62 | </td> |
---|
| 63 | </tr> |
---|
| 64 | |
---|
| 65 | <tr class="prop"> |
---|
| 66 | <td valign="top" class="name"> |
---|
| 67 | <label for="isActive">Is Active:</label> |
---|
| 68 | </td> |
---|
| 69 | <td valign="top" class="value ${hasErrors(bean:inventoryGroupInstance,field:'isActive','errors')}"> |
---|
| 70 | <g:checkBox name="isActive" value="${inventoryGroupInstance?.isActive}" ></g:checkBox> |
---|
| 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> |
---|