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