| 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 | <g:javascript src="overlayPane.js" /> | 
|---|
| 9 | </head> | 
|---|
| 10 | <body> | 
|---|
| 11 | <div class="nav"> | 
|---|
| 12 | <h1>Create Inventory Movement</h1> | 
|---|
| 13 | </div> | 
|---|
| 14 | <div class="body"> | 
|---|
| 15 | <g:if test="${flash.message}"> | 
|---|
| 16 | <div class="message">${flash.message}</div> | 
|---|
| 17 | </g:if> | 
|---|
| 18 | <g:hasErrors bean="${inventoryMovementInstance}"> | 
|---|
| 19 | <div class="errors"> | 
|---|
| 20 | <g:renderErrors bean="${inventoryMovementInstance}" as="list" /> | 
|---|
| 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"> | 
|---|
| 30 | <label for="inventoryItem">Inventory Item:</label> | 
|---|
| 31 | </td> | 
|---|
| 32 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryItem','errors')}"> | 
|---|
| 33 | <g:select optionKey="id" from="${InventoryItem.list()}" name="inventoryItem.id" value="${inventoryMovementInstance?.inventoryItem?.id}" ></g:select> | 
|---|
| 34 | </td> | 
|---|
| 35 | </tr> | 
|---|
| 36 |  | 
|---|
| 37 | <tr class="prop"> | 
|---|
| 38 | <td valign="top" class="name"> | 
|---|
| 39 | <label for="quantity">Quantity:</label> | 
|---|
| 40 | </td> | 
|---|
| 41 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"> | 
|---|
| 42 | <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}"/> | 
|---|
| 43 | ${inventoryMovementInstance.inventoryItem} | 
|---|
| 44 | </td> | 
|---|
| 45 | </tr> | 
|---|
| 46 |  | 
|---|
| 47 | <tr class="prop"> | 
|---|
| 48 | <td valign="top" class="name"> | 
|---|
| 49 | <label for="inventoryMovementType">Inventory Movement Type:</label> | 
|---|
| 50 | </td> | 
|---|
| 51 | <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'inventoryMovementType','errors')}"> | 
|---|
| 52 | <g:select optionKey="id" from="${InventoryMovementType.list()}" name="inventoryMovementType.id" value="${inventoryMovementInstance?.inventoryMovementType?.id}" ></g:select> | 
|---|
| 53 | </td> | 
|---|
| 54 | </tr> | 
|---|
| 55 |  | 
|---|
| 56 | <g:if test="${inventoryMovementInstance.task}"> | 
|---|
| 57 | <tr class="prop"> | 
|---|
| 58 | <td valign="top" class="name"> | 
|---|
| 59 | <label for="taskInstance">Linking with Task:</label> | 
|---|
| 60 | </td> | 
|---|
| 61 | <td valign="top" name="inventoryMovementInstance.task" class="value"> | 
|---|
| 62 | <input type="hidden" id="task.id" name="task.id" value="${inventoryMovementInstance.task.id}" /> | 
|---|
| 63 | ${inventoryMovementInstance.task} | 
|---|
| 64 | </td> | 
|---|
| 65 | </tr> | 
|---|
| 66 | </g:if> | 
|---|
| 67 |  | 
|---|
| 68 | </tbody> | 
|---|
| 69 | </table> | 
|---|
| 70 | </div> | 
|---|
| 71 | <div class="buttons"> | 
|---|
| 72 | <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
| 73 | </div> | 
|---|
| 74 | </g:form> | 
|---|
| 75 | </div> | 
|---|
| 76 |  | 
|---|
| 77 |  | 
|---|
| 78 | <!-- Start Search Pane --> | 
|---|
| 79 | <div class="overlayPane" id="searchPane" style="display:none;"> | 
|---|
| 80 | <h2>Quick Search</h2> | 
|---|
| 81 | <g:form method="post" id="searchForm" name="searchForm" > | 
|---|
| 82 | <table> | 
|---|
| 83 | <tbody> | 
|---|
| 84 |  | 
|---|
| 85 | <tr class="prop"> | 
|---|
| 86 | <td valign="top" class="name"> | 
|---|
| 87 | <label>My Tasks:</label> | 
|---|
| 88 | </td> | 
|---|
| 89 | <td valign="top" class="value"> | 
|---|
| 90 | <g:link controller="taskDetailed" | 
|---|
| 91 | action="search" | 
|---|
| 92 | params="[quickSearch: 'searchMyTodays']"> | 
|---|
| 93 | Today's | 
|---|
| 94 | </g:link> | 
|---|
| 95 | <br /> | 
|---|
| 96 | <g:link controller="taskDetailed" | 
|---|
| 97 | action="search" | 
|---|
| 98 | params="[quickSearch: 'searchMyInTheLastWeek']"> | 
|---|
| 99 | In the last week | 
|---|
| 100 | </g:link> | 
|---|
| 101 | </td> | 
|---|
| 102 | </tr> | 
|---|
| 103 |  | 
|---|
| 104 | <tr class="prop"> | 
|---|
| 105 | <td valign="top" class="name"> | 
|---|
| 106 | <label>Tasks:</label> | 
|---|
| 107 | </td> | 
|---|
| 108 | <td valign="top" class="value"> | 
|---|
| 109 | <g:link controller="taskDetailed" | 
|---|
| 110 | action="search" | 
|---|
| 111 | params="[quickSearch: 'searchTodays']"> | 
|---|
| 112 | Today's | 
|---|
| 113 | </g:link> | 
|---|
| 114 | <br /> | 
|---|
| 115 | <g:link controller="taskDetailed" | 
|---|
| 116 | action="search" | 
|---|
| 117 | params="[quickSearch: 'searchInTheLastWeek']"> | 
|---|
| 118 | In the last week | 
|---|
| 119 | </g:link> | 
|---|
| 120 | </td> | 
|---|
| 121 | </tr> | 
|---|
| 122 |  | 
|---|
| 123 | </tbody> | 
|---|
| 124 | </table> | 
|---|
| 125 | <div class="buttons"> | 
|---|
| 126 | <span class="button"> | 
|---|
| 127 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> | 
|---|
| 128 | </span> | 
|---|
| 129 | <!--                    <span class="button"> | 
|---|
| 130 | <input type="button" value="${g.message(code:'fp.tag.filterPane.button.clear.text', default:'Clear')}" onclick="return clearFilterPane('searchForm');" /> | 
|---|
| 131 | </span> | 
|---|
| 132 | <span class="button"> | 
|---|
| 133 | <g:actionSubmit class="search" value="Search" /> | 
|---|
| 134 | </span>--> | 
|---|
| 135 | </div> | 
|---|
| 136 | </g:form> | 
|---|
| 137 | </div> <!-- end search pane --> | 
|---|
| 138 |  | 
|---|
| 139 | </body> | 
|---|
| 140 | </html> | 
|---|