Changeset 223 for trunk/grails-app/views
- Timestamp:
- Dec 8, 2009, 3:06:17 AM (15 years ago)
- Location:
- trunk/grails-app/views/inventoryItemDetailed
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r182 r223 57 57 <label for="reorderPoint">Reorder Point:</label> 58 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}"> 60 <input type="text" id="reorderPoint" name="reorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> 59 <td valign="top"> 60 <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}" 61 type="text" id="reorderPoint" name="reorderPoint" 62 value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> 61 63 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 62 64 </td> … … 92 94 <tr class="prop"> 93 95 <td valign="top" class="name"> 94 <label for=" manufacturersPartNumber">Manufacturers Part Number:</label>96 <label for="averageDeliveryTime">Average Delivery Time:</label> 95 97 </td> 96 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}"> 97 <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> 98 </td> 99 </tr> 100 101 <tr class="prop"> 102 <td valign="top" class="name"> 103 <label for="manufacturers">Manufacturers:</label> 104 </td> 105 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 106 <g:select id="manufacturers" name="manufacturers" 107 from="${Manufacturer.list()}" 108 size="5" multiple="yes" optionKey="id" 109 value="${inventoryItemInstance?.manufacturers?.id}" noSelection="['':'--None--']" /> 110 98 <td valign="top"> 99 <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}" 100 type="text" id="averageDeliveryTime" name="averageDeliveryTime" 101 value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 102 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'--None--']"></g:select> 111 103 </td> 112 104 </tr> … … 136 128 <tr class="prop"> 137 129 <td valign="top" class="name"> 138 <label for=" averageDeliveryTime">Average Delivery Time:</label>130 <label for="manufacturersPartNumber">Manufacturers Part Number:</label> 139 131 </td> 140 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 141 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 142 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'--None--']"></g:select> 132 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}"> 133 <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> 134 </td> 135 </tr> 136 137 <tr class="prop"> 138 <td valign="top" class="name"> 139 <label for="manufacturers">Manufacturers:</label> 140 </td> 141 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 142 <g:select id="manufacturers" name="manufacturers" 143 from="${Manufacturer.list()}" 144 size="5" multiple="yes" optionKey="id" 145 value="${inventoryItemInstance?.manufacturers?.id}" noSelection="['':'--None--']" /> 146 143 147 </td> 144 148 </tr> -
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r182 r223 28 28 <table> 29 29 <tbody> 30 30 31 31 <tr class="prop"> 32 32 <td valign="top" class="name">Picture:</td> … … 43 43 </td> 44 44 </tr> 45 45 46 46 <tr class="prop"> 47 47 <td valign="top" class="name"> 48 48 <label for="name">Name:</label> 49 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 51 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 52 </td> 53 </tr> 54 50 <td valign="top"> 51 <input class="description ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}" 52 type="text" maxlength="50" id="name" name="name" 53 value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 54 </td> 55 </tr> 56 55 57 <tr class="prop"> 56 58 <td valign="top" class="name"> 57 59 <label for="description">Description:</label> 58 60 </td> 59 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> 60 <input type="text" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 61 </td> 62 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="unitsInStock">Units In Stock:</label> 61 <td valign="top"> 62 <input class="description ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}" 63 type="text" id="description" name="description" 64 value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 65 </td> 66 </tr> 67 68 <tr class="prop"> 69 <td valign="top" class="name"> 70 <label for="unitsInStock">In Stock:</label> 67 71 </td> 68 72 <td valign="top" class="value"> 69 ${inventoryItemInstance.unitsInStock} ${inventoryItemInstance.unitOfMeasure} 70 </td> 71 </tr> 72 73 ${inventoryItemInstance.unitsInStock} ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} 74 </td> 75 </tr> 76 77 <tr class="prop"> 78 <td valign="top" class="name"> 79 <label for="inventoryLocation">Location:</label> 80 </td> 81 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 82 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 83 </td> 84 </tr> 85 86 <tr class="prop"> 87 <td valign="top" class="name"> 88 <label for="isActive">Active:</label> 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> 91 <g:checkBox name="isActive" value="${inventoryItemInstance?.isActive}" ></g:checkBox> 92 </td> 93 </tr> 94 73 95 <tr class="prop"> 74 96 <td valign="top" class="name"> 75 97 <label for="reorderPoint">Reorder Point:</label> 76 98 </td> 77 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}"> 78 <input type="text" id="reorderPoint" name="reorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> 79 </td> 80 </tr> 81 99 <td valign="top"> 100 <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}" 101 type="text" id="reorderPoint" name="reorderPoint" 102 value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> 103 ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} 104 </td> 105 </tr> 106 107 <tr class="prop"> 108 <td valign="top" class="name"> 109 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 110 </td> 111 <td valign="top"> 112 <input class="medium ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}" 113 type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" 114 value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 115 ${inventoryItemInstance.unitOfMeasure.encodeAsHTML()} 116 </td> 117 </tr> 118 82 119 <tr class="prop"> 83 120 <td valign="top" class="name"> … … 88 125 </td> 89 126 </tr> 90 91 <tr class="prop"> 92 <td valign="top" class="name"> 93 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 94 </td> 95 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 96 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 97 </td> 98 </tr> 99 100 <tr class="prop"> 101 <td valign="top" class="name"> 102 <label for="isActive">Active:</label> 103 </td> 104 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> 105 <g:checkBox name="isActive" value="${inventoryItemInstance?.isActive}" ></g:checkBox> 106 </td> 107 </tr> 108 127 109 128 <tr class="prop"> 110 129 <td valign="top" class="name"> … … 114 133 <g:checkBox name="isObsolete" value="${inventoryItemInstance?.isObsolete}" ></g:checkBox> 115 134 </td> 116 </tr> 117 118 <tr class="prop"> 119 <td valign="top" class="name"> 120 <label for="inventoryGroup">Inventory Group:</label> 121 </td> 122 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> 123 <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> 124 </td> 125 </tr> 126 127 <tr class="prop"> 128 <td valign="top" class="name"> 129 <label for="inventoryType">Inventory Type:</label> 130 </td> 131 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> 132 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 133 </td> 134 </tr> 135 135 </tr> 136 137 <tr class="prop"> 138 <td valign="top" class="name"> 139 <label for="averageDeliveryTime">Average Delivery Time:</label> 140 </td> 141 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 142 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 143 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'--None--']"></g:select> 144 </td> 145 </tr> 146 147 <tr class="prop"> 148 <td valign="top" class="name"> 149 <label for="suppliersPartNumber">Suppliers Part Number:</label> 150 </td> 151 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> 152 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 153 </td> 154 </tr> 155 156 <tr class="prop"> 157 <td valign="top" class="name"> 158 <label for="suppliers">Suppliers:</label> 159 </td> 160 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 161 <g:select id="suppliers" name="suppliers" 162 from="${Supplier.list()}" 163 size="5" multiple="yes" optionKey="id" 164 value="${inventoryItemInstance?.suppliers.id}" noSelection="['':'--None--']"/> 165 166 </td> 167 </tr> 168 136 169 <tr class="prop"> 137 170 <td valign="top" class="name"> … … 141 174 <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> 142 175 </td> 143 </tr> 144 145 <tr class="prop"> 146 <td valign="top" class="name"> 147 <label for="suppliersPartNumber">Suppliers Part Number:</label> 148 </td> 149 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> 150 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 151 </td> 152 </tr> 153 154 <tr class="prop"> 155 <td valign="top" class="name"> 156 <label for="averageDeliveryTime">Average Delivery Time:</label> 157 </td> 158 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 159 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 160 </td> 161 </tr> 162 163 <tr class="prop"> 164 <td valign="top" class="name"> 165 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 166 </td> 167 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 168 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 169 </td> 170 </tr> 171 172 <tr class="prop"> 173 <td valign="top" class="name"> 174 <label for="alternateItems">Alternate Items:</label> 175 </td> 176 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateItems','errors')}"> 177 <g:select name="alternateItems" 178 from="${InventoryItem.list()}" 179 size="5" multiple="yes" optionKey="id" 180 value="${inventoryItemInstance?.alternateItems}" /> 181 182 </td> 183 </tr> 184 185 <tr class="prop"> 186 <td valign="top" class="name"> 187 <label for="inventoryMovements">Inventory Movements:</label> 188 </td> 189 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryMovements','errors')}"> 190 191 <ul> 192 <g:each var="i" in="${inventoryItemInstance?.inventoryMovements?}"> 193 <li><g:link controller="inventoryMovementDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 194 </g:each> 195 </ul> 196 <g:link controller="inventoryMovementDetailed" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add InventoryMovement</g:link> 197 198 </td> 199 </tr> 200 176 </tr> 177 201 178 <tr class="prop"> 202 179 <td valign="top" class="name"> … … 207 184 from="${Manufacturer.list()}" 208 185 size="5" multiple="yes" optionKey="id" 209 value="${inventoryItemInstance?.manufacturers.id}" /> 210 211 </td> 212 </tr> 213 186 value="${inventoryItemInstance?.manufacturers.id}" noSelection="['':'--None--']"/> 187 </td> 188 </tr> 189 214 190 <tr class="prop"> 215 191 <td valign="top" class="name"> … … 218 194 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'spareFor','errors')}"> 219 195 <g:select name="spareFor" 220 from="${Asset.list()}" 221 size="5" multiple="yes" optionKey="id" 222 value="${inventoryItemInstance?.spareFor}" /> 223 224 </td> 225 </tr> 226 227 <tr class="prop"> 228 <td valign="top" class="name"> 229 <label for="inventoryLocation">Inventory Location:</label> 230 </td> 231 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 232 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 233 </td> 234 </tr> 235 236 <tr class="prop"> 237 <td valign="top" class="name"> 238 <label for="suppliers">Suppliers:</label> 239 </td> 240 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 241 <g:select id="suppliers" name="suppliers" 242 from="${Supplier.list()}" 243 size="5" multiple="yes" optionKey="id" 244 value="${inventoryItemInstance?.suppliers.id}" noSelection="['':'--None--']"/> 245 246 </td> 247 </tr> 248 196 from="${Asset.list()}" 197 size="5" multiple="yes" optionKey="id" 198 value="${inventoryItemInstance?.spareFor}" noSelection="['':'--None--']"/> 199 200 </td> 201 </tr> 202 203 <tr class="prop"> 204 <td valign="top" class="name"> 205 <label for="alternateItems">Alternate Items:</label> 206 </td> 207 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'alternateItems','errors')}"> 208 <g:select name="alternateItems" 209 from="${InventoryItem.list()}" 210 size="5" multiple="yes" optionKey="id" 211 value="${inventoryItemInstance?.alternateItems}" noSelection="['':'--None--']"/> 212 213 </td> 214 </tr> 215 216 <tr class="prop"> 217 <td valign="top" class="name"> 218 <label for="inventoryGroup">Inventory Group:</label> 219 </td> 220 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> 221 <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> 222 </td> 223 </tr> 224 225 <tr class="prop"> 226 <td valign="top" class="name"> 227 <label for="inventoryType">Inventory Type:</label> 228 </td> 229 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> 230 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 231 </td> 232 </tr> 233 249 234 </tbody> 250 235 </table> … … 252 237 <div class="buttons"> 253 238 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 239 <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> 254 240 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 255 241 </div>
Note: See TracChangeset
for help on using the changeset viewer.