Changeset 175 for trunk/grails-app/views
- Timestamp:
- Oct 29, 2009, 8:30:58 PM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 3 added
- 2 deleted
- 22 edited
- 2 moved
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> -
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r139 r175 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 33 <input type="text" maxlength="75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>33 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> 42 <input type="text" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/>42 <input type="text" class="description" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 43 43 </td> 44 </tr> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="unitsInStock">In Stock:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 51 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 52 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 53 </td> 54 </tr> 45 55 46 56 <tr class="prop"> … … 60 70 <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> 61 71 </td> 62 </tr> 72 </tr> 63 73 64 74 <tr class="prop"> 65 75 <td valign="top" class="name"> 66 <label for="isActive">Is Active:</label> 76 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 79 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="isActive">Active:</label> 67 86 </td> 68 87 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> … … 73 92 <tr class="prop"> 74 93 <td valign="top" class="name"> 75 <label for="isObsolete"> IsObsolete:</label>94 <label for="isObsolete">Obsolete:</label> 76 95 </td> 77 96 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> … … 96 115 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 97 116 </td> 98 </tr> 99 100 <tr class="prop"> 101 <td valign="top" class="name"> 102 <label for="unitOfMeasure">Unit Of Measure:</label> 103 </td> 104 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 105 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 106 </td> 107 </tr> 117 </tr> 108 118 109 119 <tr class="prop"> … … 118 128 <tr class="prop"> 119 129 <td valign="top" class="name"> 130 <label for="manufacturers">Manufacturers:</label> 131 </td> 132 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 133 <g:select id="manufacturers" name="manufacturers" 134 from="${Manufacturer.list()}" 135 size="5" multiple="yes" optionKey="id" 136 value="${inventoryItemInstance?.manufacturers?.id}" noSelection="['':'--None--']" /> 137 138 </td> 139 </tr> 140 141 <tr class="prop"> 142 <td valign="top" class="name"> 120 143 <label for="suppliersPartNumber">Suppliers Part Number:</label> 121 144 </td> … … 123 146 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 124 147 </td> 125 </tr> 148 </tr> 126 149 127 150 <tr class="prop"> 128 151 <td valign="top" class="name"> 129 <label for=" recommendedReorderPoint">Recommended Reorder Point:</label>152 <label for="suppliers">Suppliers:</label> 130 153 </td> 131 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 132 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 154 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 155 <g:select id="suppliers" name="suppliers" 156 from="${Supplier.list()}" 157 size="5" multiple="yes" optionKey="id" 158 value="${inventoryItemInstance?.suppliers?.id}" noSelection="['':'--None--']"/> 159 133 160 </td> 134 </tr> 161 </tr> 135 162 136 163 <tr class="prop"> … … 140 167 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 141 168 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 169 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'--None--']"></g:select> 142 170 </td> 143 </tr> 171 </tr> 172 173 <tr class="prop"> 174 <td valign="top" class="name"> 175 <label for="inventoryLocation">Inventory Location:</label> 176 </td> 177 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 178 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 179 </td> 180 </tr> 144 181 145 182 </tbody> -
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r139 r175 33 33 </td> 34 34 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 35 <input type="text" maxlength=" 75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>35 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 36 36 </td> 37 37 </tr> … … 48 48 <tr class="prop"> 49 49 <td valign="top" class="name"> 50 <label for="unitsInStock">Units In Stock:</label> 51 </td> 52 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 53 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 54 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 50 60 <label for="reorderPoint">Reorder Point:</label> 51 61 </td> … … 62 72 <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> 63 73 </td> 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name"> 68 <label for="isActive">Is Active:</label> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 79 </td> 80 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 81 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 82 </td> 83 </tr> 84 85 <tr class="prop"> 86 <td valign="top" class="name"> 87 <label for="isActive">Active:</label> 69 88 </td> 70 89 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> … … 75 94 <tr class="prop"> 76 95 <td valign="top" class="name"> 77 <label for="isObsolete"> IsObsolete:</label>96 <label for="isObsolete">Obsolete:</label> 78 97 </td> 79 98 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> … … 98 117 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 99 118 </td> 100 </tr> 101 102 <tr class="prop"> 103 <td valign="top" class="name"> 104 <label for="unitOfMeasure">Unit Of Measure:</label> 105 </td> 106 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 107 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 108 </td> 109 </tr> 119 </tr> 110 120 111 121 <tr class="prop"> … … 125 135 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 126 136 </td> 127 </tr> 128 129 <tr class="prop"> 130 <td valign="top" class="name"> 131 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 132 </td> 133 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 134 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 135 </td> 136 </tr> 137 </tr> 137 138 138 139 <tr class="prop"> … … 143 144 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 144 145 </td> 145 </tr> 146 </tr> 147 148 <tr class="prop"> 149 <td valign="top" class="name"> 150 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 151 </td> 152 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 153 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 154 </td> 155 </tr> 146 156 147 157 <tr class="prop"> … … 179 189 </td> 180 190 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 181 <g:select name="manufacturers"182 from="${Manufacturer.list()}"183 size="5" multiple="yes" optionKey="id"184 value="${inventoryItemInstance?.manufacturers}" />191 <g:select id="manufacturers" name="manufacturers" 192 from="${Manufacturer.list()}" 193 size="5" multiple="yes" optionKey="id" 194 value="${inventoryItemInstance?.manufacturers.id}" /> 185 195 186 196 </td> … … 198 208 199 209 </td> 200 </tr> 201 202 <tr class="prop"> 203 <td valign="top" class="name"> 204 <label for="storedItems">Stored Items:</label> 205 </td> 206 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'storedItems','errors')}"> 207 208 <ul> 209 <g:each var="s" in="${inventoryItemInstance?.storedItems?}"> 210 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 211 </g:each> 212 </ul> 213 <g:link controller="storedItemDetailed" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link> 214 215 </td> 216 </tr> 210 </tr> 211 212 <tr class="prop"> 213 <td valign="top" class="name"> 214 <label for="inventoryLocation">Inventory Location:</label> 215 </td> 216 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 217 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 218 </td> 219 </tr> 217 220 218 221 <tr class="prop"> … … 221 224 </td> 222 225 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 223 <g:select name="suppliers"224 from="${Supplier.list()}"225 size="5" multiple="yes" optionKey="id"226 value="${inventoryItemInstance?.suppliers}"/>227 228 </td> 229 </tr> 226 <g:select id="suppliers" name="suppliers" 227 from="${Supplier.list()}" 228 size="5" multiple="yes" optionKey="id" 229 value="${inventoryItemInstance?.suppliers.id}" noSelection="['':'--None--']"/> 230 231 </td> 232 </tr> 230 233 231 234 </tbody> -
trunk/grails-app/views/inventoryItemDetailed/list.gsp
r151 r175 27 27 <g:sortableColumn property="description" title="Description" /> 28 28 29 <g:sortableColumn property="enableReorder" title="Enable Reorder" /> 29 <g:sortableColumn property="unitsInStock" title="Units In Stock" /> 30 31 <th>Unit Of Measure</th> 30 32 31 <g:sortableColumn property="isActive" title="Is Active" />32 33 33 34 <th></th> … … 45 46 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 46 47 47 <td>${fieldValue(bean:inventoryItemInstance, field:' enableReorder')}</td>48 <td>${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 48 49 49 <td>${fieldValue(bean:inventoryItemInstance, field:' isActive')}</td>50 <td>${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}</td> 50 51 51 52 <td> -
trunk/grails-app/views/inventoryItemDetailed/search.gsp
r156 r175 40 40 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> 41 41 42 <g:sortableColumn property="enableReorder" title="Enable Reorder" params="${filterParams}" />43 44 <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" />42 <g:sortableColumn property="unitsInStock" title="Units In Stock" /> 43 44 <th>Unit Of Measure</th> 45 45 46 46 <th></th> … … 58 58 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 59 59 60 <td>${fieldValue(bean:inventoryItemInstance, field:' enableReorder')}</td>60 <td>${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 61 61 62 <td>${fieldValue(bean:inventoryItemInstance, field:' isActive')}</td>62 <td>${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}</td> 63 63 64 64 <td> … … 81 81 action="search" 82 82 class="overlayPane" 83 excludeProperties="" /> 83 excludeProperties="" 84 associatedProperties="inventoryLocation.name, 85 spareFor.name, 86 manufacturers.name, 87 suppliers.name" 88 filterPropertyValues="${['inventoryLocation.name':[values:InventoryLocation.list()], 89 'spareFor.name':[values:Asset.list()], 90 'manufacturers.name':[values:Manufacturer.list()], 91 'suppliers.name':[values:Supplier.list()], 92 ]}"/> 84 93 </div> <!-- end body div --> 85 94 </body> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r139 r175 41 41 42 42 </tr> 43 44 <tr class="prop"> 45 <td valign="top" class="name">Units In Stock:</td> 46 47 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 48 49 </tr> 50 51 <tr class="prop"> 52 <td valign="top" class="name">Unit Of Measure:</td> 53 54 <td valign="top" class="value">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</td> 55 56 </tr> 57 43 58 44 59 <tr class="prop"> … … 55 70 56 71 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Is Active:</td> 72 73 <tr class="prop"> 74 <td valign="top" class="name">Recommended Reorder Point:</td> 75 76 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td> 77 78 </tr> 79 80 <tr class="prop"> 81 <td valign="top" class="name">Active:</td> 60 82 61 83 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td> … … 64 86 65 87 <tr class="prop"> 66 <td valign="top" class="name"> IsObsolete:</td>88 <td valign="top" class="name">Obsolete:</td> 67 89 68 90 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isObsolete')}</td> … … 76 98 77 99 </tr> 100 78 101 79 102 <tr class="prop"> … … 85 108 86 109 <tr class="prop"> 87 <td valign="top" class="name">Unit Of Measure:</td>88 89 <td valign="top" class="value">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</td>90 91 </tr>92 93 <tr class="prop">94 110 <td valign="top" class="name">Manufacturers Part Number:</td> 95 111 … … 125 141 <ul> 126 142 <g:each var="a" in="${inventoryItemInstance.alternateItems}"> 127 <li><g:link controller="inventoryItem " action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>143 <li><g:link controller="inventoryItemDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 128 144 </g:each> 129 145 </ul> … … 138 154 <ul> 139 155 <g:each var="i" in="${inventoryItemInstance.inventoryMovements}"> 140 <li><g:link controller="inventoryMovement " action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>156 <li><g:link controller="inventoryMovementDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 141 157 </g:each> 142 158 </ul> … … 151 167 <ul> 152 168 <g:each var="m" in="${inventoryItemInstance.manufacturers}"> 153 <li><g:link controller="manufacturer " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>169 <li><g:link controller="manufacturerDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 154 170 </g:each> 155 171 </ul> … … 170 186 171 187 </tr> 172 173 <tr class="prop"> 174 <td valign="top" class="name">Stored Items:</td> 175 176 <td valign="top" style="text-align:left;" class="value"> 177 <ul> 178 <g:each var="s" in="${inventoryItemInstance.storedItems}"> 179 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 180 </g:each> 181 </ul> 182 </td> 188 189 <tr class="prop"> 190 <td valign="top" class="name">Inventory Location:</td> 191 192 <td valign="top" class="value"><g:link controller="inventoryLocationDetailed" action="show" id="${inventoryItemInstance?.inventoryLocation?.id}">${inventoryItemInstance?.inventoryLocation?.encodeAsHTML()}</g:link></td> 183 193 184 194 </tr> … … 190 200 <ul> 191 201 <g:each var="s" in="${inventoryItemInstance.suppliers}"> 192 <li><g:link controller="supplier " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>202 <li><g:link controller="supplierDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 193 203 </g:each> 194 204 </ul> -
trunk/grails-app/views/inventoryLocation/create.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create StoreLocation</title>7 <title>Create InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create StoreLocation</h1>15 <h1>Create InventoryLocation</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ storeLocationInstance}">19 <g:hasErrors bean="${inventoryLocationInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ storeLocationInstance}" as="list" />21 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for=" bin">Bin:</label>31 <label for="name">Name:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'bin','errors')}">34 <input type="text" maxlength="50" id=" bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/>33 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 34 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 35 35 </td> 36 36 </tr> … … 40 40 <label for="inventoryStore">Inventory Store:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 44 44 </td> 45 45 </tr> … … 49 49 <label for="isActive">Is Active:</label> 50 50 </td> 51 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'isActive','errors')}">52 <g:checkBox name="isActive" value="${ storeLocationInstance?.isActive}" ></g:checkBox>51 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 52 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 53 53 </td> 54 54 </tr> -
trunk/grails-app/views/inventoryLocation/edit.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit StoreLocation</title>7 <title>Edit InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit StoreLocation</h1>16 <h1>Edit InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ storeLocationInstance}">20 <g:hasErrors bean="${inventoryLocationInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ storeLocationInstance}" as="list" />22 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />27 <input type="hidden" name="version" value="${ storeLocationInstance?.version}" />26 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 27 <input type="hidden" name="version" value="${inventoryLocationInstance?.version}" /> 28 28 <div class="dialog"> 29 29 <table> … … 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" bin">Bin:</label>34 <label for="name">Name:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}"> 37 <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/> 36 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 43 <label for="inventoryItems">Inventory Items:</label> 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}"> 46 47 <ul> 48 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}"> 49 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 50 </g:each> 51 </ul> 52 <g:link controller="inventoryItem" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link> 53 38 54 </td> 39 55 </tr> … … 43 59 <label for="inventoryStore">Inventory Store:</label> 44 60 </td> 45 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">46 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>61 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 62 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 47 63 </td> 48 64 </tr> … … 52 68 <label for="isActive">Is Active:</label> 53 69 </td> 54 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}"> 55 <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="storedItems">Stored Items:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'storedItems','errors')}"> 64 65 <ul> 66 <g:each var="s" in="${storeLocationInstance?.storedItems?}"> 67 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="storedItem" params="['storeLocation.id':storeLocationInstance?.id]" action="create">Add StoredItem</g:link> 71 70 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 71 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 72 72 </td> 73 73 </tr> -
trunk/grails-app/views/inventoryLocation/list.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> StoreLocation List</title>7 <title>InventoryLocation List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1> StoreLocation List</h1>15 <h1>InventoryLocation List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property=" bin" title="Bin" />26 <g:sortableColumn property="name" title="Name" /> 27 27 28 28 <th>Inventory Store</th> … … 33 33 </thead> 34 34 <tbody> 35 <g:each in="${ storeLocationInstanceList}" status="i" var="storeLocationInstance">35 <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance"> 36 36 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 37 38 <td><g:link action="show" id="${ storeLocationInstance.id}">${fieldValue(bean:storeLocationInstance, field:'id')}</g:link></td>38 <td><g:link action="show" id="${inventoryLocationInstance.id}">${fieldValue(bean:inventoryLocationInstance, field:'id')}</g:link></td> 39 39 40 <td>${fieldValue(bean: storeLocationInstance, field:'bin')}</td>40 <td>${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 41 41 42 <td>${fieldValue(bean: storeLocationInstance, field:'inventoryStore')}</td>42 <td>${fieldValue(bean:inventoryLocationInstance, field:'inventoryStore')}</td> 43 43 44 <td>${fieldValue(bean: storeLocationInstance, field:'isActive')}</td>44 <td>${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 45 45 46 46 </tr> … … 50 50 </div> 51 51 <div class="paginateButtons"> 52 <g:paginate total="${ storeLocationInstanceTotal}" />52 <g:paginate total="${inventoryLocationInstanceTotal}" /> 53 53 </div> 54 54 </div> -
trunk/grails-app/views/inventoryLocation/show.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show StoreLocation</title>7 <title>Show InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show StoreLocation</h1>16 <h1>Show InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> … … 26 26 <td valign="top" class="name">Id:</td> 27 27 28 <td valign="top" class="value">${fieldValue(bean: storeLocationInstance, field:'id')}</td>28 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'id')}</td> 29 29 30 30 </tr> 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name"> Bin:</td>33 <td valign="top" class="name">Name:</td> 34 34 35 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'bin')}</td> 35 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 40 <td valign="top" class="name">Inventory Items:</td> 41 42 <td valign="top" style="text-align:left;" class="value"> 43 <ul> 44 <g:each var="i" in="${inventoryLocationInstance.inventoryItems}"> 45 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 46 </g:each> 47 </ul> 48 </td> 36 49 37 50 </tr> … … 40 53 <td valign="top" class="name">Inventory Store:</td> 41 54 42 <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${ storeLocationInstance?.inventoryStore?.id}">${storeLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>55 <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${inventoryLocationInstance?.inventoryStore?.id}">${inventoryLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td> 43 56 44 57 </tr> … … 47 60 <td valign="top" class="name">Is Active:</td> 48 61 49 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'isActive')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Stored Items:</td> 55 56 <td valign="top" style="text-align:left;" class="value"> 57 <ul> 58 <g:each var="s" in="${storeLocationInstance.storedItems}"> 59 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 60 </g:each> 61 </ul> 62 </td> 62 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 63 63 64 64 </tr> … … 69 69 <div class="buttons"> 70 70 <g:form> 71 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />71 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 72 72 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 73 73 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/inventoryLocationDetailed/create.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create StoreLocation</title>7 <title>Create InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create StoreLocation</h1>15 <h1>Create InventoryLocation</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ storeLocationInstance}">19 <g:hasErrors bean="${inventoryLocationInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ storeLocationInstance}" as="list" />21 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for=" bin">Bin:</label>31 <label for="name">Name:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'bin','errors')}">34 <input type="text" maxlength="50" id=" bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/>33 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 34 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 35 35 </td> 36 36 </tr> … … 40 40 <label for="inventoryStore">Inventory Store:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 44 44 </td> 45 45 </tr> … … 49 49 <label for="isActive">Is Active:</label> 50 50 </td> 51 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'isActive','errors')}">52 <g:checkBox name="isActive" value="${ storeLocationInstance?.isActive}" ></g:checkBox>51 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 52 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 53 53 </td> 54 54 </tr> -
trunk/grails-app/views/inventoryLocationDetailed/edit.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit StoreLocation</title>7 <title>Edit InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit StoreLocation</h1>16 <h1>Edit InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ storeLocationInstance}">20 <g:hasErrors bean="${inventoryLocationInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ storeLocationInstance}" as="list" />22 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />27 <input type="hidden" name="version" value="${ storeLocationInstance?.version}" />26 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 27 <input type="hidden" name="version" value="${inventoryLocationInstance?.version}" /> 28 28 <div class="dialog"> 29 29 <table> … … 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" bin">Bin:</label>34 <label for="name">Name:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}"> 37 <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/> 36 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 43 <label for="inventoryItems">Inventory Items:</label> 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}"> 46 47 <ul> 48 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}"> 49 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 50 </g:each> 51 </ul> 52 <g:link controller="inventoryItem" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link> 53 38 54 </td> 39 55 </tr> … … 43 59 <label for="inventoryStore">Inventory Store:</label> 44 60 </td> 45 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">46 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>61 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 62 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 47 63 </td> 48 64 </tr> … … 52 68 <label for="isActive">Is Active:</label> 53 69 </td> 54 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}"> 55 <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="storedItems">Stored Items:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'storedItems','errors')}"> 64 65 <ul> 66 <g:each var="s" in="${storeLocationInstance?.storedItems?}"> 67 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="storedItemDetailed" params="['storeLocation.id':storeLocationInstance?.id]" action="create">Add StoredItem</g:link> 71 70 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 71 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 72 72 </td> 73 73 </tr> -
trunk/grails-app/views/inventoryLocationDetailed/list.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> StoreLocation List</title>7 <title>InventoryLocation List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1> StoreLocation List</h1>15 <h1>InventoryLocation List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property=" bin" title="Bin" />26 <g:sortableColumn property="name" title="Name" /> 27 27 28 28 <th>Inventory Store</th> … … 33 33 </thead> 34 34 <tbody> 35 <g:each in="${ storeLocationInstanceList}" status="i" var="storeLocationInstance">35 <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance"> 36 36 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 37 38 <td><g:link action="show" id="${ storeLocationInstance.id}">${fieldValue(bean:storeLocationInstance, field:'id')}</g:link></td>38 <td><g:link action="show" id="${inventoryLocationInstance.id}">${fieldValue(bean:inventoryLocationInstance, field:'id')}</g:link></td> 39 39 40 <td>${fieldValue(bean: storeLocationInstance, field:'bin')}</td>40 <td>${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 41 41 42 <td>${fieldValue(bean: storeLocationInstance, field:'inventoryStore')}</td>42 <td>${fieldValue(bean:inventoryLocationInstance, field:'inventoryStore')}</td> 43 43 44 <td>${fieldValue(bean: storeLocationInstance, field:'isActive')}</td>44 <td>${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 45 45 46 46 </tr> … … 50 50 </div> 51 51 <div class="paginateButtons"> 52 <g:paginate total="${ storeLocationInstanceTotal}" />52 <g:paginate total="${inventoryLocationInstanceTotal}" /> 53 53 </div> 54 54 </div> -
trunk/grails-app/views/inventoryLocationDetailed/show.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show StoreLocation</title>7 <title>Show InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show StoreLocation</h1>16 <h1>Show InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> … … 26 26 <td valign="top" class="name">Id:</td> 27 27 28 <td valign="top" class="value">${fieldValue(bean: storeLocationInstance, field:'id')}</td>28 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'id')}</td> 29 29 30 30 </tr> 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name"> Bin:</td>33 <td valign="top" class="name">Name:</td> 34 34 35 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'bin')}</td> 35 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 40 <td valign="top" class="name">Inventory Items:</td> 41 42 <td valign="top" style="text-align:left;" class="value"> 43 <ul> 44 <g:each var="i" in="${inventoryLocationInstance.inventoryItems}"> 45 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 46 </g:each> 47 </ul> 48 </td> 36 49 37 50 </tr> … … 40 53 <td valign="top" class="name">Inventory Store:</td> 41 54 42 <td valign="top" class="value"><g:link controller="inventoryStore Detailed" action="show" id="${storeLocationInstance?.inventoryStore?.id}">${storeLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>55 <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${inventoryLocationInstance?.inventoryStore?.id}">${inventoryLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td> 43 56 44 57 </tr> … … 47 60 <td valign="top" class="name">Is Active:</td> 48 61 49 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'isActive')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Stored Items:</td> 55 56 <td valign="top" style="text-align:left;" class="value"> 57 <ul> 58 <g:each var="s" in="${storeLocationInstance.storedItems}"> 59 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 60 </g:each> 61 </ul> 62 </td> 62 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 63 63 64 64 </tr> … … 69 69 <div class="buttons"> 70 70 <g:form> 71 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />71 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 72 72 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 73 73 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/inventoryMovement/create.gsp
r151 r175 41 41 </td> 42 42 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"> 43 <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" />43 <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" /> 44 44 </td> 45 45 </tr> … … 68 68 </td> 69 69 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'date','errors')}"> 70 <g:datePicker name="date" value="${inventoryMovementInstance?.date}" ></g:datePicker>70 <g:datePicker name="date" value="${inventoryMovementInstance?.date}" precision="minute" ></g:datePicker> 71 71 </td> 72 72 </tr> -
trunk/grails-app/views/inventoryMovement/edit.gsp
r151 r175 44 44 </td> 45 45 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"> 46 <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" />46 <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" /> 47 47 </td> 48 48 </tr> … … 71 71 </td> 72 72 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'date','errors')}"> 73 <g:datePicker name="date" value="${inventoryMovementInstance?.date}" ></g:datePicker>73 <g:datePicker name="date" value="${inventoryMovementInstance?.date}" precision="minute" ></g:datePicker> 74 74 </td> 75 75 </tr> -
trunk/grails-app/views/inventoryStore/edit.gsp
r151 r175 50 50 <tr class="prop"> 51 51 <td valign="top" class="name"> 52 <label for="inventoryLocations">Inventory Locations:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'inventoryLocations','errors')}"> 55 56 <ul> 57 <g:each var="i" in="${inventoryStoreInstance?.inventoryLocations?}"> 58 <li><g:link controller="inventoryLocation" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 59 </g:each> 60 </ul> 61 <g:link controller="inventoryLocation" params="['inventoryStore.id':inventoryStoreInstance?.id]" action="create">Add InventoryLocation</g:link> 62 63 </td> 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name"> 52 68 <label for="isActive">Is Active:</label> 53 69 </td> … … 66 82 </tr> 67 83 68 <tr class="prop">69 <td valign="top" class="name">70 <label for="storeLocations">Store Locations:</label>71 </td>72 <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'storeLocations','errors')}">73 74 <ul>75 <g:each var="s" in="${inventoryStoreInstance?.storeLocations?}">76 <li><g:link controller="storeLocation" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>77 </g:each>78 </ul>79 <g:link controller="storeLocation" params="['inventoryStore.id':inventoryStoreInstance?.id]" action="create">Add StoreLocation</g:link>80 81 </td>82 </tr>83 84 84 </tbody> 85 85 </table> -
trunk/grails-app/views/inventoryStore/show.gsp
r151 r175 45 45 46 46 <tr class="prop"> 47 <td valign="top" class="name">Inventory Locations:</td> 48 49 <td valign="top" style="text-align:left;" class="value"> 50 <ul> 51 <g:each var="i" in="${inventoryStoreInstance.inventoryLocations}"> 52 <li><g:link controller="inventoryLocation" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 53 </g:each> 54 </ul> 55 </td> 56 57 </tr> 58 59 <tr class="prop"> 47 60 <td valign="top" class="name">Is Active:</td> 48 61 … … 55 68 56 69 <td valign="top" class="value"><g:link controller="site" action="show" id="${inventoryStoreInstance?.site?.id}">${inventoryStoreInstance?.site?.encodeAsHTML()}</g:link></td> 57 58 </tr>59 60 <tr class="prop">61 <td valign="top" class="name">Store Locations:</td>62 63 <td valign="top" style="text-align:left;" class="value">64 <ul>65 <g:each var="s" in="${inventoryStoreInstance.storeLocations}">66 <li><g:link controller="storeLocation" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>67 </g:each>68 </ul>69 </td>70 70 71 71 </tr> -
trunk/grails-app/views/taskDetailed/show.gsp
r168 r175 194 194 <th>Entered By</th> 195 195 <th></th> 196 197 <!-- <g:sortableColumn property="comment" title="Comment" />198 199 <g:sortableColumn property="dateDone" title="Date Done" />200 201 <g:sortableColumn property="enteredBy" title="Entered By" />-->202 196 </tr> 203 197 </thead> … … 288 282 <div class="buttons"> 289 283 <span class="button"> 290 <g:actionSubmit value="New" action="create" 284 <g:actionSubmit value="New" action="create" class="add"/> 291 285 </span> 292 286 <span class="button"> 293 <g:actionSubmit value="Search" action="search" 287 <g:actionSubmit value="Search" action="search" class="search"/> 294 288 </span> 295 289 </div> … … 506 500 <!-- Start Inventory tab --> 507 501 <richui:tabContent> 508 Used Inventory 502 503 <g:if test="${inventoryMovementList.isEmpty()}"> 504 <br /> 505 No Inventory Used. 506 <br /> 507 <br /> 508 </g:if> 509 <g:else> 510 <div class="list"> 511 <table> 512 <thead> 513 <tr> 514 <th>Inventory Item</th> 515 <th>Quantity</th> 516 <th>Movement Type</th> 517 <th>Date</th> 518 <th></th> 519 </tr> 520 </thead> 521 <tbody> 522 <g:each in="${inventoryMovementList}" status="i" var="inventoryMovementInstance"> 523 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'/> 524 525 <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryItem')}</td> 526 <td>${fieldValue(bean:inventoryMovementInstance, field:'quantity')}</td> 527 <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')}</td> 528 <td><g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/></td> 529 <td> 530 <g:link controller="inventoryMovementDetailed" action="show" id="${inventoryMovementInstance.id}"> 531 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 532 </g:link> 533 </td> 534 535 </tr> 536 </g:each> 537 </tbody> 538 </table> 539 </div> 540 </g:else> 541 542 <g:form controller="inventoryMovementDetailed" > 543 <input type="hidden" name="task.id" value="${taskInstance?.id}" /> 544 <div class="buttons"> 545 <g:if test="${!inventoryMovementList.isEmpty()}"> 546 Results: ${inventoryMovementList.size()} 547 <br /> 548 </g:if> 549 <span class="button"> 550 <g:actionSubmit value="Add" action="create" class="add"/> 551 </span> 552 </div> 553 </g:form> 554 509 555 </richui:tabContent> 510 556 <!-- End Inventory tab -->
Note: See TracChangeset
for help on using the changeset viewer.