don't confuse the user with the lastModified checks
[bse.git] / site / templates / admin / edit_product.tmpl
CommitLineData
58baa27b 1<:wrap admin/xbase.tmpl title => "Shop Administration", menuitem=>edit, showtitle=>1 :>
35c0719f 2<:ifMessage:>
27feb834
TC
3<p><b><:message:></b></p>
4<:or:><:eif:>
58baa27b 5<:include admin/product_menu.tmpl:>
f40af7e2 6 <h2><:ifNew:>Add Product<:or:>Product Details<:eif:></h2>
759c295d 7<:ifNew:><:or:><:if Or [iadminuser_count] [iadmingroup_count]:>
abf5bbc6 8 <form action="/cgi-bin/admin/adminusers.pl">
12bcb7ac 9 <input type="hidden" name="id" value="<: article id:>" />
58baa27b 10 <table class="editform editformtiny">
abf5bbc6 11 <tr>
58baa27b
TC
12 <th>Manage access:</th>
13 <td>
12bcb7ac 14 <select name="adminid">
08123550 15<:iterator begin adminusers:>
12bcb7ac
TC
16<option value="<:iadminuser id:>">User <:iadminuser logon:>
17</option><:iterator end adminusers:>
08123550 18<:iterator begin admingroups:>
12bcb7ac
TC
19<option value="<:iadmingroup id:>">Group <:iadmingroup name:>
20</option><:iterator end admingroups:>
abf5bbc6 21 </select>
12bcb7ac 22 <input type="submit" name="a_showobjectart" value="Manage" />
abf5bbc6 23 </td>
58baa27b 24 <td class="help"><:help access manage:>
abf5bbc6
TC
25 </td>
26 </tr>
27 </table>
abf5bbc6
TC
28 </form>
29<br>
759c295d 30<:or Or:><:eif Or:><:eif:>
12b42a0b 31<form action="<:script:>" enctype="multipart/form-data" method="post">
189289b1 32 <input type="hidden" name="lastModified" value="<:article lastModified:>" />
12b42a0b
TC
33 <input type="hidden" name="type" value="Product" />
34 <input type="hidden" name="id" value="<:product id:>" />
f3fc60c0 35<:ifNew:><:csrfp admin_add_article hidden:><:or:><:csrfp admin_save_article hidden:><:eif:>
58baa27b 36 <table class="editform">
759c295d 37 <tr>
58baa27b
TC
38 <th>Catalog:</th>
39 <td>
abf5bbc6 40<:ifFieldPerm parentid:><select name="parentid"><:list:></select><:or:><:parent title:> (<:parent id:>)<:eif:></td>
12bcb7ac 41 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help product catalog:> <:error_img
429e9103 42 parentid:></td>
759c295d
TC
43 </tr>
44 <tr>
58baa27b
TC
45 <th>Title:</th>
46 <td><:ifFieldPerm title:><input type="text" name="title" value="<:old title default title:>" size="60"><:or:><:product title:><:eif:> </td>
47 <td class="help"><:help product title:> <:error_img title:></td>
5bc24704 48 </tr>
37726cc9 49 <:if Cfg "title alias" [concatenate level [article level]]:><tr>
58baa27b
TC
50 <th>Alias:</th>
51 <td>
37726cc9
AO
52 <:if FieldPerm titleAlias:><input type="text" name="titleAlias" maxlength="<:cfg fields alias_size 60:>" size="60" value="<:old titleAlias article titleAlias:>" /><:or FieldPerm:><:article titleAlias:><:eif FieldPerm:>
53 </td>
58baa27b 54 <td class="help"><:help edit titleAlias:> <:error_img titleAlias:></td>
37726cc9 55 </tr><:or Cfg:><:eif Cfg:>
ca9aa2bf 56 <tr>
58baa27b
TC
57 <th>Summary:</th>
58 <td><:ifFieldPerm summary:><input type="text" name="summary" value="<:old summary default summary:>" size=60><:or:><:product summary:><:eif:> </td>
59 <td class="edit"><:help product summary:> <:error_img
759c295d 60 summary:></td>
ca9aa2bf 61 </tr>
74b21f6d 62 <tr>
58baa27b
TC
63 <th>Description:</th>
64 <td><:ifFieldPerm description:><input type="text" name="description" value="<:old description default description:>" size=60><:or:><:product description:><:eif:> </td>
65 <td class="help"><:help product description:> <:error_img
74b21f6d
TC
66 description:></td>
67 </tr>
68 <tr>
58baa27b
TC
69 <th>Product Code:</th>
70 <td><:ifFieldPerm product_code:><input type="text" name="product_code" value="<:old product_code default product_code:>" size=60><:or:><:product product_code:><:eif:> </td>
71 <td class="help"><:help product product_code:> <:error_img
74b21f6d
TC
72 product_code:></td>
73 </tr>
27feb834 74 <tr>
58baa27b
TC
75 <th> Body:</th>
76 <td>
12bcb7ac 77 <:ifFieldPerm body:><textarea name="body" rows="15" cols="60" wrap="virtual"><:old body default body:></textarea><:or:><:bodytext product body:><:eif:>
5bc24704 78 </td>
58baa27b 79 <td class="help"><:help body body:> <:error_img
429e9103 80 body:></td>
759c295d 81 </tr>
0a66f55c 82 <:if Cfgsection [concatenate level [article level] " menus"]:><tr>
58baa27b
TC
83 <th>Menu:</th>
84 <td>
aef5bada 85 <:if FieldPerm menu:><select name="menu" id="menu">
0a66f55c
AO
86 <:iterator begin cfgsection [concatenate level [article level] " menus"] sort=key:><option value="<:cfgentry key:>"<:if Eq [old menu] [cfgentry key]:> selected="selected"<:or Eq:><:eif Eq:>><:cfgentry value:></option><:iterator separator cfgsection:>
87 <:iterator end cfgsection:>
aef5bada 88 </select><:or FieldPerm:><:article menu:><:eif FieldPerm:>
0a66f55c 89 </td>
58baa27b 90 <td class="help"><:help article menu:> <:error_img menu:></td>
0a66f55c 91 </tr><:or Cfgsection:><:eif Cfgsection:>
759c295d 92 <tr>
58baa27b
TC
93 <th>Template:</th>
94 <td><:ifFieldPerm template:><:templates:><:or:><:product template:><:eif:></td>
95 <td class="help"><:help product template:> <:error_img
429e9103 96 template:></td>
759c295d
TC
97 </tr>
98 <tr>
58baa27b
TC
99 <th>List article:</th>
100 <td> <:if FieldPerm listed:><:list listed:><:or FieldPerm:><:if Article listed:><:ifEq [article listed] "1":>Yes<:or:>In Sections, but not menu<:eif:><:or Article:>No<:eif Article:><:eif FieldPerm:> </td>
101 <td class="help"><:help edit listed:> <:error_img listed:></td>
c76e86ea
TC
102 </tr>
103 <tr>
58baa27b
TC
104 <th>Link alias:</th>
105 <td>
c76e86ea
TC
106 <:ifFieldPerm linkAlias:><input type="text" name="linkAlias" maxlength="<:cfg fields linkAlias_size 255:>" size="40" value="<: old linkAlias article linkAlias :>">
107 <:or:><:default linkAlias:><:eif:></td>
58baa27b 108 <td class="help"><:help edit linkAlias:> <:error_img linkAlias:></td>
759c295d 109 </tr>
429e9103 110 <tr>
58baa27b
TC
111 <th>Flags:</th>
112 <td><:iterator begin flags:><:if FieldPerm flags:>
12bcb7ac
TC
113 <input type="checkbox" name="flags" value="<:flag id:>" <:ifFlagSet [flag id]:>checked<:or:>
114 <:eif:> /><:or FieldPerm:><:ifFlagSet [flag id]:>Yes<:or:>No<:eif:>
cc9019d1 115 <:eif FieldPerm:><:flag desc:><:iterator separator flags:><br /><:iterator end flags:></td>
58baa27b 116 <td class="help"><:help edit flags:> <:error_img flags:></td>
5bc24704 117 </tr>
9604a90c 118 <tr>
58baa27b
TC
119 <th>Page title:</th>
120 <td>
12bcb7ac 121 <:ifFieldPerm pageTitle:><input type="text" name="pageTitle" value='<:old pageTitle article pageTitle:>' size="60" maxlength="255" /> (alternate title)<:or:><:article pageTitle:><:eif:>
9604a90c 122 </td>
58baa27b 123 <td class="help"><:help edit pageTitle:> <:error_img pageTitle:></td>
9604a90c 124 </tr>
12bcb7ac 125 <tr>
58baa27b
TC
126 <th>Meta description:</th>
127 <td>
12bcb7ac
TC
128 <:ifFieldPerm metaDescription:><input type="text" name="metaDescription" value='<:old metaDescription article metaDescription:>' size="60" maxlength="255" /><:or:><:article metaDescription:><:eif:>
129 </td>
58baa27b 130 <td class="help"><:help edit metaDescription:> <:error_img metaDescription:></td>
12bcb7ac
TC
131 </tr>
132 <tr>
58baa27b
TC
133 <th>Meta keywords:</th>
134 <td>
12bcb7ac
TC
135 <:ifFieldPerm metaKeywords:><input type="text" name="metaKeywords" value='<:old metaKeywords article metaKeywords:>' size="60" maxlength="255" /> (comma separated)<:or:><:article metaKeywords:><:eif:>
136 </td>
58baa27b 137 <td class="help"><:help edit metaKeywords:> <:error_img metaKeywords:></td>
12bcb7ac 138 </tr>
9604a90c 139 <tr>
58baa27b
TC
140 <th>Author name:</th>
141 <td>
12bcb7ac 142 <:if FieldPerm author:><input type="text" name="author" value='<:ifCfg editor auto_author:><:old author adminuser name:><:or:><:old author:><:eif:>' size="40" maxlength="255" /><:or FieldPerm:><:article author:><:eif FieldPerm:>
9604a90c 143 </td>
58baa27b 144 <td class="help"><:help edit author:> <:error_img author:></td>
9604a90c 145 </tr>
5bc24704 146 <tr>
58baa27b
TC
147 <th>Lead time:</th>
148 <td>
759c295d 149 <:ifFieldPerm leadTime:>
12bcb7ac 150 <input type="text" name="leadTime" value="<:old leadTime default leadTime:>" size="5" /><:or:><:product leadTime:><:eif:>
5bc24704 151 days</td>
58baa27b 152 <td class="help"><:help product leadtime:> <:error_img leadTime:></td>
5bc24704
TC
153 </tr>
154 <tr>
58baa27b
TC
155 <th><:cfg "product fields" retailPrice "Retail price":>:</th>
156 <td>$
12bcb7ac 157 <:ifFieldPerm retailPrice:><input type="text" name="retailPrice" value="<:old retailPrice money default retailPrice:>" size="7" />
759c295d 158 (0.00)<:or:><:money product retailPrice:><:eif:> </td>
58baa27b 159 <td class="help"><:help product retail:> <:error_img retailPrice:></td>
5bc24704
TC
160 </tr>
161 <tr>
58baa27b
TC
162 <th>Wholesale price:</th>
163 <td>$
12bcb7ac 164 <:ifFieldPerm wholesalePrice:><input type="text" name="wholesalePrice" value="<:old wholesalePrice money default wholesalePrice:>" size="7" />
abf5bbc6 165 (0.00)<:or:><:money product wholesalePrice:><:eif:></td>
58baa27b 166 <td class="help"><:help product wholesale:> <:error_img wholesalePrice:></td>
5bc24704
TC
167 </tr>
168 <tr>
58baa27b
TC
169 <th>GST:</th>
170 <td>$
12bcb7ac 171 <:ifFieldPerm gst:><input type="text" name="gst" value="<:old gst money default gst:>" size="7" />
abf5bbc6 172 (0.00)<:or:><:money product gst:><:eif:></td>
58baa27b 173 <td class="help"><:help product gst:> <:error_img gst:></td>
5bc24704 174 </tr>
5a142487
AMS
175 <tr>
176 <th>Weight:</th>
b8bdc5da 177 <td><:ifFieldPerm weight:><input type="text" name="weight" value="<:old weight default weight:>" size=7><:or:><:product weight:><:eif:> grams</td>
5a142487
AMS
178 <td class="help"><:help product weight:> <:error_img weight:></td>
179 </tr>
180 <tr>
181 <th>Length:</th>
b8bdc5da 182 <td><:ifFieldPerm length:><input type="text" name="length" value="<:old length default length:>" size=7><:or:><:product length:><:eif:> mm</td>
5a142487
AMS
183 <td class="help"><:help product length:> <:error_img length:></td>
184 </tr>
185 <tr>
186 <th>Width:</th>
b8bdc5da 187 <td><:ifFieldPerm width:><input type="text" name="width" value="<:old width default width:>" size=7><:or:><:product width:><:eif:> mm</td>
5a142487
AMS
188 <td class="help"><:help product width:> <:error_img width:></td>
189 </tr>
190 <tr>
191 <th>Height</th>
b8bdc5da 192 <td><:ifFieldPerm height:><input type="text" name="height" value="<:old height default height:>" size=7><:or:><:product height:><:eif:> mm</td>
5a142487
AMS
193 <td class="help"><:help product height:> <:error_img height:></td>
194 </tr>
5bc24704 195 <tr>
58baa27b
TC
196 <th>Release date:</th>
197 <td>
12bcb7ac 198 <:ifFieldPerm release:><input type="text" name="release" value="<:old release date "%d/%m/%Y" default release:>" size="11" />
abf5bbc6 199 (dd/mm/yyyy)<:or:><:date "%d/%m/%Y" product release:><:eif:></td>
58baa27b 200 <td class="help"><:help product release:> <:error_img
429e9103 201 release:></td>
5bc24704
TC
202 </tr>
203 <tr>
58baa27b
TC
204 <th>Expiry date:</th>
205 <td>
12bcb7ac 206 <:ifFieldPerm expire:><input type="text" name="expire" value="<:old expire date "%d/%m/%Y" default expire:>" size="11" />
abf5bbc6 207 (dd/mm/yyyy)<:or:><:date "%d/%m/%Y" product expire:><:eif:></td>
58baa27b 208 <td class="help"><:help product expire:> <:error_img
429e9103 209 expire:></td>
5bc24704 210 </tr>
26094672 211 <tr>
58baa27b
TC
212 <th>Summary length:</th>
213 <td>
12bcb7ac 214 <:ifFieldPerm summaryLength:><input type="text" name="summaryLength" size="10" maxlength="10" value="<:old summaryLength default summaryLength:>" /><:or:><:product summaryLength:><:eif:>
26094672 215 </td>
58baa27b 216 <td class="help"><:help product summary:> <:error_img summaryLength:></td>
26094672
TC
217 </tr>
218 <tr>
58baa27b
TC
219 <th>Display threshold:</th>
220 <td>
12bcb7ac 221 <:ifFieldPerm threshold:><input type="text" name="threshold" size="10" maxlength="10" value="<:old threshold default threshold:>" /><:or:><:product threshold:><:eif:>
35c0719f 222 </td>
58baa27b 223 <td class="help"><:help product threshold:> <:error_img threshold:></td>
26094672 224 </tr>
c2096d67 225 <tr>
58baa27b
TC
226 <th> Keywords: </th>
227 <td>
12bcb7ac 228 <:ifFieldPerm keyword:><input type="text" name="keyword" maxlength="255" size="60" value="<: old keyword default keyword :>" /><:or:><: article threshold :><:eif:>
c2096d67 229 (comma separated) </td>
58baa27b 230 <td class="help"><:help catalog keywords:> <:error_img keyword:></td>
c2096d67
TC
231 </tr>
232 <tr>
58baa27b
TC
233 <th>Always Dynamic:</th>
234 <td>
c2096d67
TC
235 <:ifFieldPerm force_dynamic:><input type="hidden" name="save_force_dynamic" value="1" /><input type="checkbox" name="force_dynamic" value="1" <:if Article force_dynamic :>checked="checked"<:or Article:><:eif Article:> />
236 <:or:><:ifArticle force_dynamic :>Yes<:or Article:>No<:eif Article:><:eif:></td>
58baa27b 237 <td class="help"><:help edit keywords:> <:error_img keyword:></td>
c2096d67 238 </tr>
a11a0d7c 239 <tr>
58baa27b
TC
240 <th>Options:</th>
241 <td>
12bcb7ac 242 <:ifFieldPerm options:><input type="text" name="options" value="<:old options default options:>" size="30" />
abf5bbc6 243 (<:alloptions:>)<:or:><:product options:><:eif:> </td>
58baa27b 244 <td class="help"><:help product options:> <:error_img options:></td>
a11a0d7c 245 </tr>
14604ada 246<:include admin/product_custom.tmpl optional:><:include admin/include/custom/product_custom.tmpl optional:><:include admin/include/product_custom.tmpl optional:>
27feb834 247 <tr>
58baa27b
TC
248 <th>Thumbnail image:</th>
249 <td>
12bcb7ac 250 <:ifFieldPerm thumbImage:><input type="file" name="thumbnail" /><:or:><:eif:>
35c0719f 251 <:ifProduct thumbImage:><img src="/images/<:product thumbImage:>">
12bcb7ac 252 <:if FieldPerm thumbImage:><input type="checkbox" name="remove_thumb" />
abf5bbc6 253 Remove<:or FieldPerm:><:eif FieldPerm:><:or:><:eif:> </td>
58baa27b 254 <td class="help"><:help product thumb:> <:error_img
429e9103 255 thumbImage:></td>
5bc24704 256 </tr>
759c295d 257 <:if Article id:>
27feb834 258 <tr>
58baa27b
TC
259 <th><a name="files"></a>Files:</th>
260 <td> <:if Files:>
261 <table class="editform editformsmall">
262 <tr>
27feb834
TC
263 <th>Filename</th>
264 <th>Size</th>
265 <th>Type</th>
35c0719f
TC
266 <th>D/l</th>
267 <th>Pay</th>
268 <th>User</th>
27feb834
TC
269 </tr>
270 <:iterator begin files:>
58baa27b 271 <tr>
27feb834 272 <td><:file displayName:></td>
35c0719f 273 <td align="center"><:kb file sizeInBytes:></td>
27feb834 274 <td><:file contentType:></td>
12bcb7ac
TC
275 <td align="center"><:ifFile download:>Yes<:or:>No<:eif:></td>
276 <td align="center"><:ifFile forSale:>Yes<:or:>No<:eif:></td>
277 <td align="center"><:ifFile requireUser:>Yes<:or:>No<:eif:></td>
27feb834
TC
278 </tr>
279 <:iterator end files:>
280 </table>
caa7299c
TC
281 <p><a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a>
282 </p>
283 <:or Files:>
58baa27b 284 No files are attached to this article. <a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a><:eif Files:>
edc5d096 285 </td>
58baa27b 286 <td class="help"><:help product
429e9103 287 files:> <:error_img files:></td>
edc5d096 288 </tr>
26094672 289 <tr>
58baa27b
TC
290 <th>Images:</th>
291 <td> <:if Images:> <:iterator begin
55753022 292 images:> <img src="/images/<: image image :>" alt="<:image alt :>" width=
26094672
TC
293 <:image width:> height=<:image height:>> <:iterator separator images:>
294 <hr noshade size="1">
15fb10f2
TC
295 <: iterator end images :>
296 <p align="left"><a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a></p>
58baa27b 297 <:or Images:>No images are attached to this article. <a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a>
55753022 298 <:eif Images:>
35c0719f 299 </td>
58baa27b 300 <td class="help"><:help product images:> <:error_img
429e9103 301 images:></td>
35c0719f 302 </tr>
759c295d 303 <:or Article:><:eif Article:>
d7538448 304 <tr>
58baa27b
TC
305 <th>Purchase subscribes to:</th>
306 <td>
0ec4ac8a
TC
307 <select name="subscription_id">
308 <option value="-1"<:ifEq [old subscription_id] "-1":> selected="selected"<:or:><:eif:>>(nothing)</option>
309<:iterator begin subscriptions:>
310 <option value="<:subscription subscription_id:>"<:ifEq [old subscription_id] [subscription subscription_id]:> selected="selected"<:or:><:eif:>><:subscription title:></option>
311<:iterator end subscriptions:>
d7538448 312 </select> for <input type="text" name="subscription_period" value="<:ifEq [old subscription_period] "":><:default subscription_period:><:or:><:old subscription_period:><:eif:>" size="3" /><:error_img subscription_period:> months.
0ec4ac8a 313 </td>
58baa27b 314 <td class="help"><:help product subscription_id:></td>
0ec4ac8a
TC
315 </tr>
316 <tr>
58baa27b
TC
317 <th>Can be used to:</th>
318 <td>
0ec4ac8a
TC
319 <select name="subscription_usage">
320 <option value="3"<:ifEq [old subscription_usage] "3":> selected="selected"<:or:><:eif:>>Start or renew a subscription</option>
321 <option value="1"<:ifEq [old subscription_usage] "1":> selected="selected"<:or:><:eif:>>Start a subscription only</option>
322 <option value="2"<:ifEq [old subscription_usage] "2":> selected="selected"<:or:><:eif:>>Renew a subscription only</option>
323 </select>
324 </td>
58baa27b 325 <td class="help"><:help product subscription_usage:></td>
0ec4ac8a
TC
326 </tr>
327 <tr>
58baa27b
TC
328 <th>User must be subscribed to:</th>
329 <td>
0ec4ac8a
TC
330 <select name="subscription_required">
331 <option value="-1"<:ifEq [old subscription_required] "-1":> selected="selected"<:or:><:eif:>>(nothing)</option>
332<:iterator begin subscriptions:>
333 <option value="<:subscription subscription_id:>"<:ifEq [old subscription_required] [subscription subscription_id]:> selected="selected"<:or:><:eif:>><:subscription title:></option>
334<:iterator end subscriptions:>
335 </select> to purchase this product
336 </td>
58baa27b 337 <td class="help"><:help product subscription_id:></td>
d7538448 338 </tr>
5bc24704 339 </table>
759c295d
TC
340 <p><font size="-1">*These fields cannot be modified once this product has been
341 included in an order.</font></p>
342 <:if UserCan edit_save:article:>
343 <p>
12bcb7ac 344 <:ifNew:><input type="submit" name="save" value="Add Product" /><:or:><input type="submit" name="save" value="Update Product" /><:eif:>
abf5bbc6 345 </p><:or UserCan:><:eif UserCan:>
5bc24704
TC
346</form>
347
7063727a 348<p><font size="-1">BSE Release <:release:></font></p>
5bc24704
TC
349</body>
350</html>