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