Changeset 175 for trunk/grails-app/views/inventoryItem
- Timestamp:
- Oct 29, 2009, 8:30:58 PM (15 years ago)
- Location:
- trunk/grails-app/views/inventoryItem
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItem/create.gsp
r151 r175 32 32 </td> 33 33 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 34 <input type="text" maxlength=" 75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>34 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 35 35 </td> 36 36 </tr> … … 42 42 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> 43 43 <input type="text" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="unitsInStock">Units In Stock:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 52 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 53 </td> 54 </tr> 55 56 <tr class="prop"> 57 <td valign="top" class="name"> 58 <label for="unitOfMeasure">Unit Of Measure:</label> 59 </td> 60 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 61 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 44 62 </td> 45 63 </tr> … … 60 78 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder','errors')}"> 61 79 <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 88 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 62 89 </td> 63 90 </tr> … … 101 128 <tr class="prop"> 102 129 <td valign="top" class="name"> 103 <label for="unitOfMeasure">Unit Of Measure:</label>104 </td>105 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}">106 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select>107 </td>108 </tr>109 110 <tr class="prop">111 <td valign="top" class="name">112 130 <label for="manufacturersPartNumber">Manufacturers Part Number:</label> 113 131 </td> … … 128 146 <tr class="prop"> 129 147 <td valign="top" class="name"> 130 <label for=" recommendedReorderPoint">Recommended Reorder Point:</label>148 <label for="averageDeliveryTime">Average Delivery Time:</label> 131 149 </td> 132 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:' recommendedReorderPoint','errors')}">133 <input type="text" id=" recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" />150 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 151 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 134 152 </td> 135 153 </tr> … … 137 155 <tr class="prop"> 138 156 <td valign="top" class="name"> 139 <label for="averageDelivery Time">Average Delivery Time:</label>157 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 140 158 </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')}" /> 159 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 160 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 161 </td> 162 </tr> 163 164 <tr class="prop"> 165 <td valign="top" class="name"> 166 <label for="inventoryLocation">Inventory Location:</label> 167 </td> 168 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 169 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 143 170 </td> 144 171 </tr> -
trunk/grails-app/views/inventoryItem/edit.gsp
r151 r175 35 35 </td> 36 36 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 37 <input type="text" maxlength=" 75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 38 38 </td> 39 39 </tr> … … 50 50 <tr class="prop"> 51 51 <td valign="top" class="name"> 52 <label for="unitsInStock">Units In Stock:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 55 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="unitOfMeasure">Unit Of Measure:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 64 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 65 </td> 66 </tr> 67 68 <tr class="prop"> 69 <td valign="top" class="name"> 52 70 <label for="reorderPoint">Reorder Point:</label> 53 71 </td> … … 68 86 <tr class="prop"> 69 87 <td valign="top" class="name"> 88 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 91 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 92 </td> 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name"> 70 97 <label for="isActive">Is Active:</label> 71 98 </td> … … 104 131 <tr class="prop"> 105 132 <td valign="top" class="name"> 106 <label for="unitOfMeasure">Unit Of Measure:</label>107 </td>108 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}">109 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select>110 </td>111 </tr>112 113 <tr class="prop">114 <td valign="top" class="name">115 133 <label for="manufacturersPartNumber">Manufacturers Part Number:</label> 116 134 </td> … … 131 149 <tr class="prop"> 132 150 <td valign="top" class="name"> 133 <label for="recommendedReorderPoint">Recommended Reorder Point:</label>134 </td>135 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}">136 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" />137 </td>138 </tr>139 140 <tr class="prop">141 <td valign="top" class="name">142 151 <label for="averageDeliveryTime">Average Delivery Time:</label> 143 152 </td> 144 153 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 145 154 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 155 </td> 156 </tr> 157 158 <tr class="prop"> 159 <td valign="top" class="name"> 160 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 161 </td> 162 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 163 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 146 164 </td> 147 165 </tr> … … 157 175 value="${inventoryItemInstance?.alternateItems}" /> 158 176 177 </td> 178 </tr> 179 180 <tr class="prop"> 181 <td valign="top" class="name"> 182 <label for="inventoryLocation">Inventory Location:</label> 183 </td> 184 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 185 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 159 186 </td> 160 187 </tr> … … 198 225 size="5" multiple="yes" optionKey="id" 199 226 value="${inventoryItemInstance?.spareFor}" /> 200 201 </td>202 </tr>203 204 <tr class="prop">205 <td valign="top" class="name">206 <label for="storedItems">Stored Items:</label>207 </td>208 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'storedItems','errors')}">209 210 <ul>211 <g:each var="s" in="${inventoryItemInstance?.storedItems?}">212 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>213 </g:each>214 </ul>215 <g:link controller="storedItem" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link>216 227 217 228 </td> -
trunk/grails-app/views/inventoryItem/list.gsp
r151 r175 28 28 <g:sortableColumn property="description" title="Description" /> 29 29 30 <g:sortableColumn property="unitsInStock" title="Units In Stock" /> 31 32 <th>Unit Of Measure</th> 33 30 34 <g:sortableColumn property="reorderPoint" title="Reorder Point" /> 31 32 <g:sortableColumn property="enableReorder" title="Enable Reorder" />33 34 <g:sortableColumn property="isActive" title="Is Active" />35 35 36 36 </tr> … … 46 46 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 47 47 48 <td>${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 49 50 <td>${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}</td> 51 48 52 <td>${fieldValue(bean:inventoryItemInstance, field:'reorderPoint')}</td> 49 50 <td>${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td>51 52 <td>${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td>53 53 54 54 </tr> -
trunk/grails-app/views/inventoryItem/show.gsp
r151 r175 45 45 46 46 <tr class="prop"> 47 <td valign="top" class="name">Units In Stock:</td> 48 49 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Unit Of Measure:</td> 55 56 <td valign="top" class="value"><g:link controller="unitOfMeasure" action="show" id="${inventoryItemInstance?.unitOfMeasure?.id}">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</g:link></td> 57 58 </tr> 59 60 <tr class="prop"> 47 61 <td valign="top" class="name">Reorder Point:</td> 48 62 … … 59 73 60 74 <tr class="prop"> 75 <td valign="top" class="name">Recommended Reorder Point:</td> 76 77 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td> 78 79 </tr> 80 81 <tr class="prop"> 61 82 <td valign="top" class="name">Is Active:</td> 62 83 … … 87 108 88 109 <tr class="prop"> 89 <td valign="top" class="name">Unit Of Measure:</td>90 91 <td valign="top" class="value"><g:link controller="unitOfMeasure" action="show" id="${inventoryItemInstance?.unitOfMeasure?.id}">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</g:link></td>92 93 </tr>94 95 <tr class="prop">96 110 <td valign="top" class="name">Manufacturers Part Number:</td> 97 111 … … 108 122 109 123 <tr class="prop"> 110 <td valign="top" class="name">Recommended Reorder Point:</td>111 112 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td>113 114 </tr>115 116 <tr class="prop">117 124 <td valign="top" class="name">Average Delivery Time:</td> 118 125 119 126 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'averageDeliveryTime')}</td> 127 128 </tr> 129 130 <tr class="prop"> 131 <td valign="top" class="name">Average Delivery Period:</td> 132 133 <td valign="top" class="value"><g:link controller="period" action="show" id="${inventoryItemInstance?.averageDeliveryPeriod?.id}">${inventoryItemInstance?.averageDeliveryPeriod?.encodeAsHTML()}</g:link></td> 120 134 121 135 </tr> … … 135 149 136 150 <tr class="prop"> 151 <td valign="top" class="name">Inventory Location:</td> 152 153 <td valign="top" class="value"><g:link controller="inventoryLocation" action="show" id="${inventoryItemInstance?.inventoryLocation?.id}">${inventoryItemInstance?.inventoryLocation?.encodeAsHTML()}</g:link></td> 154 155 </tr> 156 157 <tr class="prop"> 137 158 <td valign="top" class="name">Inventory Movements:</td> 138 159 … … 167 188 <g:each var="s" in="${inventoryItemInstance.spareFor}"> 168 189 <li><g:link controller="asset" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 169 </g:each>170 </ul>171 </td>172 173 </tr>174 175 <tr class="prop">176 <td valign="top" class="name">Stored Items:</td>177 178 <td valign="top" style="text-align:left;" class="value">179 <ul>180 <g:each var="s" in="${inventoryItemInstance.storedItems}">181 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>182 190 </g:each> 183 191 </ul>
Note: See TracChangeset
for help on using the changeset viewer.