[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 InventoryMovement</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <span class="menuButton"><g:link class="list" action="list">InventoryMovement List</g:link></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New InventoryMovement</g:link></span> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <h1>Edit InventoryMovement</h1> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
| 19 | <g:hasErrors bean="${inventoryMovementInstance}"> |
---|
| 20 | <div class="errors"> |
---|
| 21 | <g:renderErrors bean="${inventoryMovementInstance}" as="list" /> |
---|
| 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
| 24 | <g:form method="post" > |
---|
| 25 | <input type="hidden" name="id" value="${inventoryMovementInstance?.id}" /> |
---|
| 26 | <input type="hidden" name="version" value="${inventoryMovementInstance?.version}" /> |
---|
| 27 | <div class="dialog"> |
---|
| 28 | <table> |
---|
| 29 | <tbody> |
---|
| 30 | |
---|
| 31 | <tr class="prop"> |
---|
| 32 | <td valign="top" class="name"> |
---|
| 33 | <label for="inventoryItem">Inventory Item:</label> |
---|
| 34 | </td> |
---|
| 35 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryItem','errors')}"> |
---|
| 36 | <g:select optionKey="id" from="${InventoryItem.list()}" name="inventoryItem.id" value="${inventoryMovementInstance?.inventoryItem?.id}" ></g:select> |
---|
| 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
| 42 | <label for="quantity">Quantity:</label> |
---|
| 43 | </td> |
---|
| 44 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"> |
---|
[175] | 45 | <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" /> |
---|
[116] | 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
| 51 | <label for="inventoryMovementType">Inventory Movement Type:</label> |
---|
| 52 | </td> |
---|
| 53 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryMovementType','errors')}"> |
---|
| 54 | <g:select optionKey="id" from="${InventoryMovementType.list()}" name="inventoryMovementType.id" value="${inventoryMovementInstance?.inventoryMovementType?.id}" ></g:select> |
---|
| 55 | </td> |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name"> |
---|
| 60 | <label for="task">Task:</label> |
---|
| 61 | </td> |
---|
| 62 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'task','errors')}"> |
---|
| 63 | <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${inventoryMovementInstance?.task?.id}" noSelection="['null':'']"></g:select> |
---|
| 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | |
---|
| 67 | <tr class="prop"> |
---|
| 68 | <td valign="top" class="name"> |
---|
[217] | 69 | <label for="person">Person:</label> |
---|
| 70 | </td> |
---|
| 71 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'person','errors')}"> |
---|
| 72 | <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${inventoryMovementInstance?.person?.id}" ></g:select> |
---|
| 73 | </td> |
---|
| 74 | </tr> |
---|
| 75 | |
---|
| 76 | <tr class="prop"> |
---|
| 77 | <td valign="top" class="name"> |
---|
[116] | 78 | <label for="date">Date:</label> |
---|
| 79 | </td> |
---|
| 80 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'date','errors')}"> |
---|
[175] | 81 | <g:datePicker name="date" value="${inventoryMovementInstance?.date}" precision="minute" ></g:datePicker> |
---|
[116] | 82 | </td> |
---|
| 83 | </tr> |
---|
| 84 | |
---|
| 85 | </tbody> |
---|
| 86 | </table> |
---|
| 87 | </div> |
---|
| 88 | <div class="buttons"> |
---|
| 89 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 90 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 91 | </div> |
---|
| 92 | </g:form> |
---|
| 93 | </div> |
---|
| 94 | </body> |
---|
| 95 | </html> |
---|