[175] | 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>Create InventoryMovement</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <h1>Create Inventory Movement</h1> |
---|
| 12 | </div> |
---|
| 13 | <div class="body"> |
---|
| 14 | <g:if test="${flash.message}"> |
---|
| 15 | <div class="message">${flash.message}</div> |
---|
| 16 | </g:if> |
---|
| 17 | <g:hasErrors bean="${inventoryMovementInstance}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${inventoryMovementInstance}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
[226] | 22 | |
---|
[175] | 23 | <g:form action="save" method="post" > |
---|
[226] | 24 | <g:hiddenField name="inventoryItem.id" value="${inventoryMovementInstance?.inventoryItem?.id}" /> |
---|
[175] | 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
[226] | 28 | |
---|
[175] | 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name"> |
---|
| 31 | <label for="inventoryItem">Inventory Item:</label> |
---|
| 32 | </td> |
---|
| 33 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryItem','errors')}"> |
---|
[226] | 34 | <g:link controller="inventoryItemDetailed" action="show" id="${inventoryMovementInstance?.inventoryItem?.id}" > |
---|
| 35 | <g:fieldValue bean="${inventoryMovementInstance}" field="inventoryItem" /> |
---|
| 36 | </g:link> |
---|
[175] | 37 | </td> |
---|
[226] | 38 | </tr> |
---|
| 39 | |
---|
[175] | 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
| 42 | <label for="quantity">Quantity:</label> |
---|
| 43 | </td> |
---|
[226] | 44 | <td valign="top"> |
---|
| 45 | <input class="medium ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}" |
---|
| 46 | type="text" id="quantity" name="quantity" |
---|
| 47 | value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}"/> |
---|
| 48 | ${inventoryMovementInstance?.inventoryItem?.unitOfMeasure.encodeAsHTML()} |
---|
[175] | 49 | </td> |
---|
| 50 | </tr> |
---|
| 51 | |
---|
| 52 | <tr class="prop"> |
---|
| 53 | <td valign="top" class="name"> |
---|
[177] | 54 | <label for="inventoryMovementType">Movement Type:</label> |
---|
[175] | 55 | </td> |
---|
| 56 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryMovementType','errors')}"> |
---|
[226] | 57 | <g:select optionKey="id" from="${inventoryMovementTypeList}" name="inventoryMovementType.id" value="${inventoryMovementInstance?.inventoryMovementType?.id}" ></g:select> |
---|
[175] | 58 | </td> |
---|
| 59 | </tr> |
---|
| 60 | |
---|
[226] | 61 | <g:if test="${inventoryMovementInstance?.task}"> |
---|
[175] | 62 | <tr class="prop"> |
---|
| 63 | <td valign="top" class="name"> |
---|
[225] | 64 | <label for="taskInstance">Linking with task:</label> |
---|
[175] | 65 | </td> |
---|
[226] | 66 | <td valign="top" class="value"> |
---|
[191] | 67 | <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}" /> |
---|
| 68 | <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" > |
---|
[226] | 69 | ${inventoryMovementInstance.task.encodeAsHTML()} |
---|
[191] | 70 | </g:link> |
---|
[175] | 71 | </td> |
---|
| 72 | </tr> |
---|
| 73 | </g:if> |
---|
| 74 | |
---|
| 75 | </tbody> |
---|
| 76 | </table> |
---|
| 77 | </div> |
---|
[226] | 78 | |
---|
[175] | 79 | <div class="buttons"> |
---|
| 80 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 81 | </div> |
---|
[226] | 82 | |
---|
[175] | 83 | </g:form> |
---|
| 84 | </div> |
---|
| 85 | </body> |
---|
| 86 | </html> |
---|