Changeset 727 for trunk/grails-app/views/inventoryItemDetailed/create.gsp
- Timestamp:
- Nov 28, 2010, 12:32:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r719 r727 25 25 26 26 <tr class="prop"> 27 <td valign="top" class="name"> 27 <td valign="top" class="groupHeader"> 28 <label for="name">Inventory Item</label> 29 </td> 30 <td valign="top" class="value"> 31 </td> 32 </tr> 33 34 <tr class="prop"> 35 <td valign="top" class="groupName"> 28 36 <label for="name">Name:</label> 29 37 </td> … … 35 43 36 44 <tr class="prop"> 37 <td valign="top" class=" name">45 <td valign="top" class="groupName"> 38 46 <label for="description">Description:</label> 39 47 </td> … … 45 53 46 54 <tr class="prop"> 47 <td valign="top" class=" name">55 <td valign="top" class="groupName"> 48 56 <label for="comment">Comment:</label> 49 57 </td> … … 55 63 56 64 <tr class="prop"> 57 <td valign="top" class="name"> 65 <td valign="top" class="groupName"> 66 <label for="unitOfMeasure">Unit Of Measure:</label> 67 </td> 68 <td valign="top"> 69 <g:select optionKey="id" 70 from="${UnitOfMeasure.findAllByIsActive(true)}" 71 name="unitOfMeasure.id" 72 value="${inventoryItemInstance?.unitOfMeasure?.id}" > 73 </g:select> 74 <g:helpBalloon class="helpballoon" code="inventory.item.unit.of.measure" /> 75 </td> 76 </tr> 77 78 <tr class="prop"> 79 <td valign="top" class="groupName"> 58 80 <label for="inventoryLocation">Inventory Location:</label> 59 81 </td> 60 82 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 61 83 <g:select optionKey="id" 62 from="${ InventoryLocation. list().sort { p1, p2 -> p1.toString().compareToIgnoreCase(p2.toString()) } }"84 from="${ InventoryLocation.findAllByIsActive(true).sort { p1, p2 -> p1.toString().compareToIgnoreCase(p2.toString()) } }" 63 85 name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" 64 optionValue="${{it.name+ ' in ' + it.inventoryStore}}"> 86 optionValue="${{it.name+ ' in ' + it.inventoryStore}}" 87 noSelection="['null':/${g.message(code:'default.please.select.text')}/]" > 65 88 </g:select> 66 89 <g:helpBalloon class="helpballoon" code="inventory.item.inventory.location" /> … … 71 94 72 95 <tr class="prop"> 73 <td valign="top" class="name"> 96 <td valign="top" class="groupName"> 97 <label for="inventoryGroup">Inventory Group:</label> 98 </td> 99 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> 100 <g:select optionKey="id" 101 from="${InventoryGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 102 name="inventoryGroup.id" 103 value="${inventoryItemInstance?.inventoryGroup?.id}" 104 noSelection="['null':/${g.message(code:'default.please.select.text')}/]" > 105 </g:select> 106 <g:helpBalloon class="helpballoon" code="inventory.item.inventory.group" /> 107 <p><g:link controller="inventoryGroupDetailed" action="create">+Add Group</g:link></p> 108 </td> 109 </tr> 110 111 <tr class="prop"> 112 <td valign="top" class="groupName"> 113 <label for="inventoryType">Inventory Type:</label> 114 </td> 115 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> 116 <g:select optionKey="id" 117 from="${InventoryType.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 118 name="inventoryType.id" 119 value="${inventoryItemInstance?.inventoryType?.id}" 120 noSelection="['null':/${g.message(code:'default.please.select.text')}/]" > 121 </g:select> 122 <g:helpBalloon class="helpballoon" code="inventory.item.inventory.type" /> 123 </td> 124 </tr> 125 126 <tr class="prop"> 127 <td valign="top" class="groupHeader"> 128 <label for="name">Reorder Details</label> 129 </td> 130 <td valign="top" class="value"> 131 </td> 132 </tr> 133 134 <tr class="prop"> 135 <td valign="top" class="groupName"> 136 <label for="enableReorderListing">Enable Reorder Listing:</label> 137 </td> 138 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorderListing','errors')}"> 139 <g:checkBox name="enableReorderListing" value="${inventoryItemInstance?.enableReorderListing}" ></g:checkBox> 140 <g:helpBalloon class="helpballoon" code="inventory.item.enable.reorder.listing" /> 141 </td> 142 </tr> 143 144 <tr class="prop"> 145 <td valign="top" class="groupName"> 74 146 <label for="reorderPoint">Reorder Point:</label> 75 147 </td> … … 79 151 value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> 80 152 <g:helpBalloon class="helpballoon" code="inventory.item.reorder.point" /> 81 <g:select optionKey="id" 82 from="${UnitOfMeasure.list()}" 83 name="unitOfMeasure.id" 84 value="${inventoryItemInstance?.unitOfMeasure?.id}" > 85 </g:select> 86 <g:helpBalloon class="helpballoon" code="inventory.item.unit.of.measure" /> 87 </td> 88 </tr> 89 90 <tr class="prop"> 91 <td valign="top" class="name"> 92 <label for="enableReorderListing">Enable Reorder Listing:</label> 93 </td> 94 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorderListing','errors')}"> 95 <g:checkBox name="enableReorderListing" value="${inventoryItemInstance?.enableReorderListing}" ></g:checkBox> 96 <g:helpBalloon class="helpballoon" code="inventory.item.enable.reorder.listing" /> 97 </td> 98 </tr> 99 100 <tr class="prop"> 101 <td valign="top" class="name"> 102 <label for="inventoryGroup">Inventory Group:</label> 103 </td> 104 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> 105 <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> 106 <g:helpBalloon class="helpballoon" code="inventory.item.inventory.group" /> 107 <p><g:link controller="inventoryGroupDetailed" action="create">+Add Group</g:link></p> 108 </td> 109 </tr> 110 111 <tr class="prop"> 112 <td valign="top" class="name"> 113 <label for="inventoryType">Inventory Type:</label> 114 </td> 115 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> 116 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 117 <g:helpBalloon class="helpballoon" code="inventory.item.inventory.type" /> 118 </td> 119 </tr> 120 121 <tr class="prop"> 122 <td valign="top" class="name"> 153 </td> 154 </tr> 155 156 <tr class="prop"> 157 <td valign="top" class="groupName"> 158 <label for="reorderQuantity">Reorder Quantity:</label> 159 </td> 160 <td valign="top"> 161 <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderQuantity','errors')}" 162 type="text" id="reorderQuantity" name="reorderQuantity" 163 value="${fieldValue(bean:inventoryItemInstance,field:'reorderQuantity')}" /> 164 <g:helpBalloon class="helpballoon" code="inventory.item.reorder.quantity" /> 165 </td> 166 </tr> 167 168 <tr class="prop"> 169 <td valign="top" class="groupName"> 123 170 <label for="estimatedUnitPriceAmount">Estimated Unit Price:</label> 124 171 </td> … … 136 183 137 184 <tr class="prop"> 138 <td valign="top" class=" name">185 <td valign="top" class="groupName"> 139 186 <label for="suppliersPartNumber">Suppliers Part Number:</label> 140 187 </td> 141 188 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> 142 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/>189 <input type="text" id="suppliersPartNumber" maxlength="50" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 143 190 <g:helpBalloon class="helpballoon" code="inventory.item.suppliers.part.number" /> 144 191 </td> … … 146 193 147 194 <tr class="prop"> 148 <td valign="top" class=" name">195 <td valign="top" class="groupName"> 149 196 <label for="preferredSupplier">Preferred Supplier:</label> 150 197 </td> 151 198 <td valign="top"> 152 <g:select optionKey="id" from="${suppliers}" name="preferredSupplier.id" value="${inventoryItemInstance.preferredSupplier?.id}" noSelection="['null':'--None--']"></g:select> 199 <g:select optionKey="id" 200 from="${suppliers}" 201 name="preferredSupplier.id" 202 value="${inventoryItemInstance.preferredSupplier?.id}" 203 noSelection="['null':'--None--']"> 204 </g:select> 153 205 <g:helpBalloon class="helpballoon" code="inventory.item.preferred.supplier" /> 154 206 <p><g:link controller="supplierDetailed" action="create">+Add Supplier</g:link></p> 155 207 </td> 156 208 </tr> 157 158 <tr class="prop"> 159 <td valign="top" class=" name">209 210 <tr class="prop"> 211 <td valign="top" class="groupName"> 160 212 <label for="alternateSuppliers">Alternate Suppliers:</label> 161 213 </td> 162 214 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateSuppliers','errors')}"> 163 <g:select id="alternateSuppliers" name="alternateSuppliers"164 from="${suppliers}"165 size="5" multiple="yes" optionKey="id"166 value="${inventoryItemInstance.alternateSuppliers?.id}" noSelection="['':'--None--']"/>167 215 <g:helpBalloon class="helpballoon" code="inventory.item.alternate.suppliers" /> 216 <custom:checkBoxList name="alternateSuppliers" 217 from="${suppliers}" 218 value="${inventoryItemInstance?.alternateSuppliers?.collect{it.id}}" 219 optionKey="id" 220 linkController="supplierDetailed" 221 linkAction="show"/> 222 <g:link controller="supplierDetailed" action="create">+Add Supplier</g:link> 223 </td> 224 </tr> 225 226 <tr class="prop"> 227 <td valign="top" class="groupHeader"> 228 <label for="name">Spare For</label> 229 </td> 230 <td valign="top" class="value"> 231 </td> 232 </tr> 233 234 <tr class="prop"> 235 <td valign="top" class="groupName"> 236 <label for="spareFor">Assets:</label> 237 </td> 238 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'spareFor','errors')}"> 239 <g:helpBalloon class="helpballoon" code="inventory.item.spare.for" /> 240 <custom:checkBoxList name="spareFor" 241 from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" 242 value="${inventoryItemInstance?.spareFor?.collect{it.id}}" 243 optionKey="id" 244 sortBy="name" 245 linkController="assetDetailed" 246 linkAction="show"/> 247 <g:link controller="assetDetailed" action="create">+Add Asset</g:link> 168 248 </td> 169 249 </tr>
Note: See TracChangeset
for help on using the changeset viewer.