[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" /> |
---|
[377] | 7 | <title>Create InventoryLocation</title> |
---|
| 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 action="save" method="post" > |
---|
| 24 | <div class="dialog"> |
---|
| 25 | <table> |
---|
| 26 | <tbody> |
---|
| 27 | |
---|
| 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="name"> |
---|
[175] | 30 | <label for="name">Name:</label> |
---|
[125] | 31 | </td> |
---|
[175] | 32 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> |
---|
| 33 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> |
---|
[125] | 34 | </td> |
---|
| 35 | </tr> |
---|
| 36 | |
---|
| 37 | <tr class="prop"> |
---|
| 38 | <td valign="top" class="name"> |
---|
| 39 | <label for="inventoryStore">Inventory Store:</label> |
---|
| 40 | </td> |
---|
[175] | 41 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> |
---|
| 42 | <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> |
---|
[125] | 43 | </td> |
---|
| 44 | </tr> |
---|
| 45 | |
---|
| 46 | <tr class="prop"> |
---|
| 47 | <td valign="top" class="name"> |
---|
| 48 | <label for="isActive">Is Active:</label> |
---|
| 49 | </td> |
---|
[175] | 50 | <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> |
---|
| 51 | <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> |
---|
[125] | 52 | </td> |
---|
| 53 | </tr> |
---|
| 54 | |
---|
| 55 | </tbody> |
---|
| 56 | </table> |
---|
| 57 | </div> |
---|
| 58 | <div class="buttons"> |
---|
| 59 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 60 | </div> |
---|
| 61 | </g:form> |
---|
| 62 | </div> |
---|
| 63 | </body> |
---|
| 64 | </html> |
---|