1 | |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
6 | <meta name="layout" content="main" /> |
---|
7 | <title>Create InventoryItem</title> |
---|
8 | <nav:resources override="true"/> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <div class="nav"> |
---|
12 | <nav:renderSubItems group="nav"/> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <g:if test="${flash.message}"> |
---|
16 | <div class="message">${flash.message}</div> |
---|
17 | </g:if> |
---|
18 | <g:hasErrors bean="${inventoryItemInstance}"> |
---|
19 | <div class="errors"> |
---|
20 | <g:renderErrors bean="${inventoryItemInstance}" as="list" /> |
---|
21 | </div> |
---|
22 | </g:hasErrors> |
---|
23 | <g:form action="save" method="post" > |
---|
24 | <div class="dialog"> |
---|
25 | <table> |
---|
26 | <tbody> |
---|
27 | |
---|
28 | <tr class="prop"> |
---|
29 | <td valign="top" class="name"> |
---|
30 | <label for="name">Name:</label> |
---|
31 | </td> |
---|
32 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> |
---|
33 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> |
---|
34 | </td> |
---|
35 | </tr> |
---|
36 | |
---|
37 | <tr class="prop"> |
---|
38 | <td valign="top" class="name"> |
---|
39 | <label for="description">Description:</label> |
---|
40 | </td> |
---|
41 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> |
---|
42 | <input type="text" class="description" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> |
---|
43 | </td> |
---|
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> |
---|
55 | |
---|
56 | <tr class="prop"> |
---|
57 | <td valign="top" class="name"> |
---|
58 | <label for="reorderPoint">Reorder Point:</label> |
---|
59 | </td> |
---|
60 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'reorderPoint','errors')}"> |
---|
61 | <input type="text" id="reorderPoint" name="reorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'reorderPoint')}" /> |
---|
62 | </td> |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr class="prop"> |
---|
66 | <td valign="top" class="name"> |
---|
67 | <label for="enableReorder">Enable Reorder:</label> |
---|
68 | </td> |
---|
69 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder','errors')}"> |
---|
70 | <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> |
---|
71 | </td> |
---|
72 | </tr> |
---|
73 | |
---|
74 | <tr class="prop"> |
---|
75 | <td valign="top" class="name"> |
---|
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> |
---|
86 | </td> |
---|
87 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> |
---|
88 | <g:checkBox name="isActive" value="${inventoryItemInstance?.isActive}" ></g:checkBox> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | |
---|
92 | <tr class="prop"> |
---|
93 | <td valign="top" class="name"> |
---|
94 | <label for="isObsolete">Obsolete:</label> |
---|
95 | </td> |
---|
96 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> |
---|
97 | <g:checkBox name="isObsolete" value="${inventoryItemInstance?.isObsolete}" ></g:checkBox> |
---|
98 | </td> |
---|
99 | </tr> |
---|
100 | |
---|
101 | <tr class="prop"> |
---|
102 | <td valign="top" class="name"> |
---|
103 | <label for="inventoryGroup">Inventory Group:</label> |
---|
104 | </td> |
---|
105 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryGroup','errors')}"> |
---|
106 | <g:select optionKey="id" from="${InventoryGroup.list()}" name="inventoryGroup.id" value="${inventoryItemInstance?.inventoryGroup?.id}" ></g:select> |
---|
107 | </td> |
---|
108 | </tr> |
---|
109 | |
---|
110 | <tr class="prop"> |
---|
111 | <td valign="top" class="name"> |
---|
112 | <label for="inventoryType">Inventory Type:</label> |
---|
113 | </td> |
---|
114 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryType','errors')}"> |
---|
115 | <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> |
---|
116 | </td> |
---|
117 | </tr> |
---|
118 | |
---|
119 | <tr class="prop"> |
---|
120 | <td valign="top" class="name"> |
---|
121 | <label for="manufacturersPartNumber">Manufacturers Part Number:</label> |
---|
122 | </td> |
---|
123 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturersPartNumber','errors')}"> |
---|
124 | <input type="text" id="manufacturersPartNumber" name="manufacturersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'manufacturersPartNumber')}"/> |
---|
125 | </td> |
---|
126 | </tr> |
---|
127 | |
---|
128 | <tr class="prop"> |
---|
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"> |
---|
143 | <label for="suppliersPartNumber">Suppliers Part Number:</label> |
---|
144 | </td> |
---|
145 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliersPartNumber','errors')}"> |
---|
146 | <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> |
---|
147 | </td> |
---|
148 | </tr> |
---|
149 | |
---|
150 | <tr class="prop"> |
---|
151 | <td valign="top" class="name"> |
---|
152 | <label for="suppliers">Suppliers:</label> |
---|
153 | </td> |
---|
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 | |
---|
160 | </td> |
---|
161 | </tr> |
---|
162 | |
---|
163 | <tr class="prop"> |
---|
164 | <td valign="top" class="name"> |
---|
165 | <label for="averageDeliveryTime">Average Delivery Time:</label> |
---|
166 | </td> |
---|
167 | <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> |
---|
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> |
---|
170 | </td> |
---|
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> |
---|
181 | |
---|
182 | </tbody> |
---|
183 | </table> |
---|
184 | </div> |
---|
185 | <div class="buttons"> |
---|
186 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
187 | </div> |
---|
188 | </g:form> |
---|
189 | </div> |
---|
190 | </body> |
---|
191 | </html> |
---|