[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 UnitOfMeasure</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[151] | 11 | <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> |
---|
[116] | 12 | <span class="menuButton"><g:link class="list" action="list">UnitOfMeasure List</g:link></span> |
---|
| 13 | <span class="menuButton"><g:link class="create" action="create">New UnitOfMeasure</g:link></span> |
---|
| 14 | </div> |
---|
| 15 | <div class="body"> |
---|
| 16 | <h1>Edit UnitOfMeasure</h1> |
---|
| 17 | <g:if test="${flash.message}"> |
---|
| 18 | <div class="message">${flash.message}</div> |
---|
| 19 | </g:if> |
---|
| 20 | <g:hasErrors bean="${unitOfMeasureInstance}"> |
---|
| 21 | <div class="errors"> |
---|
| 22 | <g:renderErrors bean="${unitOfMeasureInstance}" as="list" /> |
---|
| 23 | </div> |
---|
| 24 | </g:hasErrors> |
---|
| 25 | <g:form method="post" > |
---|
| 26 | <input type="hidden" name="id" value="${unitOfMeasureInstance?.id}" /> |
---|
| 27 | <input type="hidden" name="version" value="${unitOfMeasureInstance?.version}" /> |
---|
| 28 | <div class="dialog"> |
---|
| 29 | <table> |
---|
| 30 | <tbody> |
---|
| 31 | |
---|
| 32 | <tr class="prop"> |
---|
| 33 | <td valign="top" class="name"> |
---|
| 34 | <label for="description">Description:</label> |
---|
| 35 | </td> |
---|
| 36 | <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'description','errors')}"> |
---|
| 37 | <input type="text" id="description" name="description" value="${fieldValue(bean:unitOfMeasureInstance,field:'description')}"/> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
| 43 | <label for="inventoryItems">Inventory Items:</label> |
---|
| 44 | </td> |
---|
| 45 | <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'inventoryItems','errors')}"> |
---|
| 46 | |
---|
| 47 | <ul> |
---|
| 48 | <g:each var="i" in="${unitOfMeasureInstance?.inventoryItems?}"> |
---|
| 49 | <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> |
---|
| 50 | </g:each> |
---|
| 51 | </ul> |
---|
| 52 | <g:link controller="inventoryItem" params="['unitOfMeasure.id':unitOfMeasureInstance?.id]" action="create">Add InventoryItem</g:link> |
---|
| 53 | |
---|
| 54 | </td> |
---|
| 55 | </tr> |
---|
| 56 | |
---|
| 57 | <tr class="prop"> |
---|
| 58 | <td valign="top" class="name"> |
---|
| 59 | <label for="isActive">Is Active:</label> |
---|
| 60 | </td> |
---|
| 61 | <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'isActive','errors')}"> |
---|
| 62 | <g:checkBox name="isActive" value="${unitOfMeasureInstance?.isActive}" ></g:checkBox> |
---|
| 63 | </td> |
---|
| 64 | </tr> |
---|
| 65 | |
---|
| 66 | <tr class="prop"> |
---|
| 67 | <td valign="top" class="name"> |
---|
| 68 | <label for="name">Name:</label> |
---|
| 69 | </td> |
---|
| 70 | <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'name','errors')}"> |
---|
| 71 | <input type="text" id="name" name="name" value="${fieldValue(bean:unitOfMeasureInstance,field:'name')}"/> |
---|
| 72 | </td> |
---|
| 73 | </tr> |
---|
| 74 | |
---|
| 75 | </tbody> |
---|
| 76 | </table> |
---|
| 77 | </div> |
---|
| 78 | <div class="buttons"> |
---|
| 79 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 80 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 81 | </div> |
---|
| 82 | </g:form> |
---|
| 83 | </div> |
---|
| 84 | </body> |
---|
| 85 | </html> |
---|