[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" /> |
---|
[139] | 7 | <title>Create InventoryItem</title> |
---|
| 8 | <nav:resources override="true"/> |
---|
[116] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[139] | 12 | <nav:renderSubItems group="nav"/> |
---|
[116] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[405] | 15 | <g:render template="/shared/messages" /> |
---|
[116] | 16 | <g:hasErrors bean="${inventoryItemInstance}"> |
---|
| 17 | <div class="errors"> |
---|
| 18 | <g:renderErrors bean="${inventoryItemInstance}" as="list" /> |
---|
| 19 | </div> |
---|
| 20 | </g:hasErrors> |
---|
| 21 | <g:form action="save" method="post" > |
---|
| 22 | <div class="dialog"> |
---|
| 23 | <table> |
---|
| 24 | <tbody> |
---|
| 25 | |
---|
| 26 | <tr class="prop"> |
---|
| 27 | <td valign="top" class="name"> |
---|
| 28 | <label for="name">Name:</label> |
---|
| 29 | </td> |
---|
| 30 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> |
---|
[175] | 31 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> |
---|
[116] | 32 | </td> |
---|
| 33 | </tr> |
---|
| 34 | |
---|
| 35 | <tr class="prop"> |
---|
| 36 | <td valign="top" class="name"> |
---|
| 37 | <label for="description">Description:</label> |
---|
| 38 | </td> |
---|
| 39 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> |
---|
[175] | 40 | <input type="text" class="description" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> |
---|
[116] | 41 | </td> |
---|
[175] | 42 | </tr> |
---|
[182] | 43 | |
---|
[175] | 44 | <tr class="prop"> |
---|
| 45 | <td valign="top" class="name"> |
---|
[182] | 46 | <label for="inventoryLocation">Inventory Location:</label> |
---|
[175] | 47 | </td> |
---|
[182] | 48 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> |
---|
[382] | 49 | <g:select optionKey="id" |
---|
| 50 | from="${ InventoryLocation.list().sort { p1, p2 -> p1.toString().compareToIgnoreCase(p2.toString()) } }" |
---|
[392] | 51 | name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" |
---|
| 52 | optionValue="${{it.name+ ' in ' + it.inventoryStore}}"> |
---|
[382] | 53 | </g:select> |
---|
| 54 | |
---|
[410] | 55 | <p><g:link controller="inventoryLocationDetailed" action="create">+Add Location</g:link></p> |
---|
[175] | 56 | </td> |
---|
| 57 | </tr> |
---|
[116] | 58 | |
---|
| 59 | <tr class="prop"> |
---|
| 60 | <td valign="top" class="name"> |
---|
| 61 | <label for="reorderPoint">Reorder Point:</label> |
---|
| 62 | </td> |
---|
[223] | 63 | <td valign="top"> |
---|
| 64 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}" |
---|
| 65 | type="text" id="reorderPoint" name="reorderPoint" |
---|
| 66 | value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> |
---|
[382] | 67 | <g:select optionKey="id" |
---|
| 68 | from="${UnitOfMeasure.list()}" |
---|
| 69 | name="unitOfMeasure.id" |
---|
| 70 | value="${inventoryItemInstance?.unitOfMeasure?.id}" > |
---|
| 71 | </g:select> |
---|
[116] | 72 | </td> |
---|
| 73 | </tr> |
---|
| 74 | |
---|
| 75 | <tr class="prop"> |
---|
| 76 | <td valign="top" class="name"> |
---|
| 77 | <label for="enableReorder">Enable Reorder:</label> |
---|
| 78 | </td> |
---|
| 79 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder','errors')}"> |
---|
| 80 | <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> |
---|
| 81 | </td> |
---|
[175] | 82 | </tr> |
---|
[116] | 83 | |
---|
| 84 | <tr class="prop"> |
---|
| 85 | <td valign="top" class="name"> |
---|
| 86 | <label for="inventoryGroup">Inventory Group:</label> |
---|
| 87 | </td> |
---|
| 88 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> |
---|
| 89 | <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> |
---|
[382] | 90 | |
---|
[410] | 91 | <p><g:link controller="inventoryGroupDetailed" action="create">+Add Group</g:link></p> |
---|
[116] | 92 | </td> |
---|
| 93 | </tr> |
---|
| 94 | |
---|
| 95 | <tr class="prop"> |
---|
| 96 | <td valign="top" class="name"> |
---|
| 97 | <label for="inventoryType">Inventory Type:</label> |
---|
| 98 | </td> |
---|
| 99 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> |
---|
| 100 | <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> |
---|
| 101 | </td> |
---|
[175] | 102 | </tr> |
---|
[116] | 103 | |
---|
| 104 | <tr class="prop"> |
---|
| 105 | <td valign="top" class="name"> |
---|
[223] | 106 | <label for="averageDeliveryTime">Average Delivery Time:</label> |
---|
[116] | 107 | </td> |
---|
[223] | 108 | <td valign="top"> |
---|
| 109 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}" |
---|
| 110 | type="text" id="averageDeliveryTime" name="averageDeliveryTime" |
---|
| 111 | value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> |
---|
| 112 | <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'--None--']"></g:select> |
---|
[116] | 113 | </td> |
---|
[175] | 114 | </tr> |
---|
[116] | 115 | |
---|
| 116 | <tr class="prop"> |
---|
| 117 | <td valign="top" class="name"> |
---|
[405] | 118 | <label for="averageDeliveryTime">Estimated Unit Price:</label> |
---|
| 119 | </td> |
---|
| 120 | <td valign="top"> |
---|
| 121 | <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'estimatedUnitPriceAmount','errors')}" |
---|
| 122 | type="text" id="estimatedUnitPriceAmount" name="estimatedUnitPriceAmount" |
---|
| 123 | value="${fieldValue(bean:inventoryItemInstance,field:'estimatedUnitPriceAmount')}" /> |
---|
| 124 | <g:currencySelect name="estimatedUnitPriceCurrency" |
---|
| 125 | value="${inventoryItemInstance.estimatedUnitPriceCurrency}" /> |
---|
| 126 | </td> |
---|
| 127 | </tr> |
---|
| 128 | |
---|
| 129 | <tr class="prop"> |
---|
| 130 | <td valign="top" class="name"> |
---|
[116] | 131 | <label for="suppliersPartNumber">Suppliers Part Number:</label> |
---|
| 132 | </td> |
---|
| 133 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> |
---|
| 134 | <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> |
---|
| 135 | </td> |
---|
[175] | 136 | </tr> |
---|
[116] | 137 | |
---|
| 138 | <tr class="prop"> |
---|
| 139 | <td valign="top" class="name"> |
---|
[175] | 140 | <label for="suppliers">Suppliers:</label> |
---|
[116] | 141 | </td> |
---|
[175] | 142 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> |
---|
| 143 | <g:select id="suppliers" name="suppliers" |
---|
[382] | 144 | from="${ Supplier.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" |
---|
[175] | 145 | size="5" multiple="yes" optionKey="id" |
---|
| 146 | value="${inventoryItemInstance?.suppliers?.id}" noSelection="['':'--None--']"/> |
---|
| 147 | |
---|
[410] | 148 | <p><g:link controller="supplierDetailed" action="create">+Add Supplier</g:link></p> |
---|
[116] | 149 | </td> |
---|
[175] | 150 | </tr> |
---|
[116] | 151 | |
---|
| 152 | <tr class="prop"> |
---|
| 153 | <td valign="top" class="name"> |
---|
[223] | 154 | <label for="manufacturersPartNumber">Manufacturers Part Number:</label> |
---|
[116] | 155 | </td> |
---|
[223] | 156 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}"> |
---|
| 157 | <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> |
---|
[116] | 158 | </td> |
---|
[223] | 159 | </tr> |
---|
| 160 | |
---|
| 161 | <tr class="prop"> |
---|
| 162 | <td valign="top" class="name"> |
---|
| 163 | <label for="manufacturers">Manufacturers:</label> |
---|
| 164 | </td> |
---|
| 165 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> |
---|
| 166 | <g:select id="manufacturers" name="manufacturers" |
---|
[382] | 167 | from="${ Manufacturer.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }" |
---|
[223] | 168 | size="5" multiple="yes" optionKey="id" |
---|
| 169 | value="${inventoryItemInstance?.manufacturers?.id}" noSelection="['':'--None--']" /> |
---|
| 170 | |
---|
[410] | 171 | <p><g:link controller="manufacturerDetailed" action="create">+Add Manufacturer</g:link></p> |
---|
[223] | 172 | </td> |
---|
[175] | 173 | </tr> |
---|
[116] | 174 | |
---|
| 175 | </tbody> |
---|
| 176 | </table> |
---|
| 177 | </div> |
---|
| 178 | <div class="buttons"> |
---|
| 179 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 180 | </div> |
---|
| 181 | </g:form> |
---|
| 182 | </div> |
---|
| 183 | </body> |
---|
| 184 | </html> |
---|