fix the audit logging for deleting users
[bse.git] / site / templates / admin / edit_product.tmpl
CommitLineData
dfd483db 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 160 </tr>
dfd483db
TC
161<:if Price_tiers:>
162 <tr>
163 <th><:cfg "product field" tier_prices "Tier prices":>:</th>
164 <td>
165<input type="hidden" name="save_pricing_tiers" value="1" />
166 <table class="editform editformtiny">
167<:iterator begin price_tiers:>
168<tr>
169 <th><:price_tier description:></th>
170 <td>$<:if FieldPerm retailPrice:><input type="text" name="tier_price_<:price_tier id:>" value="<:ifEq [tier_price] "":><:oldi [cat "tier_price_" [price_tier id]] 0:><:or:><:oldi [cat "tier_price_" [price_tier id]] 0 money tier_price:><:eif:>" size="7" /> (0.00)<:or FieldPerm:><:ifEq [tier_price] "":>-<:or:><:money tier_price:><:eif:><:eif FieldPerm:></td>
171 <td class="help"><:error_img [cat "tier_price_" [price_tier id]]:></td>
172
173</tr>
174<:iterator end price_tiers:>
175 </table>
176 </td>
177<td class="help"><:help product tier_price:></td>
178 </tr>
179<:or Price_tiers:><:eif Price_tiers:>
5bc24704 180 <tr>
58baa27b
TC
181 <th>Wholesale price:</th>
182 <td>$
12bcb7ac 183 <:ifFieldPerm wholesalePrice:><input type="text" name="wholesalePrice" value="<:old wholesalePrice money default wholesalePrice:>" size="7" />
abf5bbc6 184 (0.00)<:or:><:money product wholesalePrice:><:eif:></td>
58baa27b 185 <td class="help"><:help product wholesale:> <:error_img wholesalePrice:></td>
5bc24704
TC
186 </tr>
187 <tr>
58baa27b
TC
188 <th>GST:</th>
189 <td>$
12bcb7ac 190 <:ifFieldPerm gst:><input type="text" name="gst" value="<:old gst money default gst:>" size="7" />
abf5bbc6 191 (0.00)<:or:><:money product gst:><:eif:></td>
58baa27b 192 <td class="help"><:help product gst:> <:error_img gst:></td>
5bc24704 193 </tr>
5a142487
AMS
194 <tr>
195 <th>Weight:</th>
b8bdc5da 196 <td><:ifFieldPerm weight:><input type="text" name="weight" value="<:old weight default weight:>" size=7><:or:><:product weight:><:eif:> grams</td>
5a142487
AMS
197 <td class="help"><:help product weight:> <:error_img weight:></td>
198 </tr>
199 <tr>
200 <th>Length:</th>
b8bdc5da 201 <td><:ifFieldPerm length:><input type="text" name="length" value="<:old length default length:>" size=7><:or:><:product length:><:eif:> mm</td>
5a142487
AMS
202 <td class="help"><:help product length:> <:error_img length:></td>
203 </tr>
204 <tr>
205 <th>Width:</th>
b8bdc5da 206 <td><:ifFieldPerm width:><input type="text" name="width" value="<:old width default width:>" size=7><:or:><:product width:><:eif:> mm</td>
5a142487
AMS
207 <td class="help"><:help product width:> <:error_img width:></td>
208 </tr>
209 <tr>
210 <th>Height</th>
b8bdc5da 211 <td><:ifFieldPerm height:><input type="text" name="height" value="<:old height default height:>" size=7><:or:><:product height:><:eif:> mm</td>
5a142487
AMS
212 <td class="help"><:help product height:> <:error_img height:></td>
213 </tr>
5bc24704 214 <tr>
58baa27b
TC
215 <th>Release date:</th>
216 <td>
12bcb7ac 217 <:ifFieldPerm release:><input type="text" name="release" value="<:old release date "%d/%m/%Y" default release:>" size="11" />
abf5bbc6 218 (dd/mm/yyyy)<:or:><:date "%d/%m/%Y" product release:><:eif:></td>
58baa27b 219 <td class="help"><:help product release:> <:error_img
429e9103 220 release:></td>
5bc24704
TC
221 </tr>
222 <tr>
58baa27b
TC
223 <th>Expiry date:</th>
224 <td>
12bcb7ac 225 <:ifFieldPerm expire:><input type="text" name="expire" value="<:old expire date "%d/%m/%Y" default expire:>" size="11" />
abf5bbc6 226 (dd/mm/yyyy)<:or:><:date "%d/%m/%Y" product expire:><:eif:></td>
58baa27b 227 <td class="help"><:help product expire:> <:error_img
429e9103 228 expire:></td>
5bc24704 229 </tr>
26094672 230 <tr>
58baa27b
TC
231 <th>Summary length:</th>
232 <td>
12bcb7ac 233 <:ifFieldPerm summaryLength:><input type="text" name="summaryLength" size="10" maxlength="10" value="<:old summaryLength default summaryLength:>" /><:or:><:product summaryLength:><:eif:>
26094672 234 </td>
58baa27b 235 <td class="help"><:help product summary:> <:error_img summaryLength:></td>
26094672
TC
236 </tr>
237 <tr>
58baa27b
TC
238 <th>Display threshold:</th>
239 <td>
12bcb7ac 240 <:ifFieldPerm threshold:><input type="text" name="threshold" size="10" maxlength="10" value="<:old threshold default threshold:>" /><:or:><:product threshold:><:eif:>
35c0719f 241 </td>
58baa27b 242 <td class="help"><:help product threshold:> <:error_img threshold:></td>
26094672 243 </tr>
c2096d67 244 <tr>
58baa27b
TC
245 <th> Keywords: </th>
246 <td>
12bcb7ac 247 <:ifFieldPerm keyword:><input type="text" name="keyword" maxlength="255" size="60" value="<: old keyword default keyword :>" /><:or:><: article threshold :><:eif:>
c2096d67 248 (comma separated) </td>
58baa27b 249 <td class="help"><:help catalog keywords:> <:error_img keyword:></td>
c2096d67
TC
250 </tr>
251 <tr>
58baa27b
TC
252 <th>Always Dynamic:</th>
253 <td>
c2096d67
TC
254 <: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:> />
255 <:or:><:ifArticle force_dynamic :>Yes<:or Article:>No<:eif Article:><:eif:></td>
58baa27b 256 <td class="help"><:help edit keywords:> <:error_img keyword:></td>
c2096d67 257 </tr>
a11a0d7c 258 <tr>
58baa27b
TC
259 <th>Options:</th>
260 <td>
12bcb7ac 261 <:ifFieldPerm options:><input type="text" name="options" value="<:old options default options:>" size="30" />
abf5bbc6 262 (<:alloptions:>)<:or:><:product options:><:eif:> </td>
58baa27b 263 <td class="help"><:help product options:> <:error_img options:></td>
a11a0d7c 264 </tr>
14604ada 265<:include admin/product_custom.tmpl optional:><:include admin/include/custom/product_custom.tmpl optional:><:include admin/include/product_custom.tmpl optional:>
27feb834 266 <tr>
58baa27b
TC
267 <th>Thumbnail image:</th>
268 <td>
12bcb7ac 269 <:ifFieldPerm thumbImage:><input type="file" name="thumbnail" /><:or:><:eif:>
35c0719f 270 <:ifProduct thumbImage:><img src="/images/<:product thumbImage:>">
12bcb7ac 271 <:if FieldPerm thumbImage:><input type="checkbox" name="remove_thumb" />
abf5bbc6 272 Remove<:or FieldPerm:><:eif FieldPerm:><:or:><:eif:> </td>
58baa27b 273 <td class="help"><:help product thumb:> <:error_img
429e9103 274 thumbImage:></td>
5bc24704 275 </tr>
759c295d 276 <:if Article id:>
27feb834 277 <tr>
58baa27b
TC
278 <th><a name="files"></a>Files:</th>
279 <td> <:if Files:>
280 <table class="editform editformsmall">
281 <tr>
27feb834
TC
282 <th>Filename</th>
283 <th>Size</th>
284 <th>Type</th>
35c0719f
TC
285 <th>D/l</th>
286 <th>Pay</th>
287 <th>User</th>
27feb834
TC
288 </tr>
289 <:iterator begin files:>
58baa27b 290 <tr>
27feb834 291 <td><:file displayName:></td>
35c0719f 292 <td align="center"><:kb file sizeInBytes:></td>
27feb834 293 <td><:file contentType:></td>
12bcb7ac
TC
294 <td align="center"><:ifFile download:>Yes<:or:>No<:eif:></td>
295 <td align="center"><:ifFile forSale:>Yes<:or:>No<:eif:></td>
296 <td align="center"><:ifFile requireUser:>Yes<:or:>No<:eif:></td>
27feb834
TC
297 </tr>
298 <:iterator end files:>
299 </table>
caa7299c
TC
300 <p><a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a>
301 </p>
302 <:or Files:>
58baa27b 303 No files are attached to this article. <a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a><:eif Files:>
edc5d096 304 </td>
58baa27b 305 <td class="help"><:help product
429e9103 306 files:> <:error_img files:></td>
edc5d096 307 </tr>
26094672 308 <tr>
58baa27b
TC
309 <th>Images:</th>
310 <td> <:if Images:> <:iterator begin
55753022 311 images:> <img src="/images/<: image image :>" alt="<:image alt :>" width=
26094672
TC
312 <:image width:> height=<:image height:>> <:iterator separator images:>
313 <hr noshade size="1">
15fb10f2
TC
314 <: iterator end images :>
315 <p align="left"><a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a></p>
58baa27b 316 <:or Images:>No images are attached to this article. <a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a>
55753022 317 <:eif Images:>
35c0719f 318 </td>
58baa27b 319 <td class="help"><:help product images:> <:error_img
429e9103 320 images:></td>
35c0719f 321 </tr>
759c295d 322 <:or Article:><:eif Article:>
d7538448 323 <tr>
58baa27b
TC
324 <th>Purchase subscribes to:</th>
325 <td>
0ec4ac8a
TC
326 <select name="subscription_id">
327 <option value="-1"<:ifEq [old subscription_id] "-1":> selected="selected"<:or:><:eif:>>(nothing)</option>
328<:iterator begin subscriptions:>
329 <option value="<:subscription subscription_id:>"<:ifEq [old subscription_id] [subscription subscription_id]:> selected="selected"<:or:><:eif:>><:subscription title:></option>
330<:iterator end subscriptions:>
d7538448 331 </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 332 </td>
58baa27b 333 <td class="help"><:help product subscription_id:></td>
0ec4ac8a
TC
334 </tr>
335 <tr>
58baa27b
TC
336 <th>Can be used to:</th>
337 <td>
0ec4ac8a
TC
338 <select name="subscription_usage">
339 <option value="3"<:ifEq [old subscription_usage] "3":> selected="selected"<:or:><:eif:>>Start or renew a subscription</option>
340 <option value="1"<:ifEq [old subscription_usage] "1":> selected="selected"<:or:><:eif:>>Start a subscription only</option>
341 <option value="2"<:ifEq [old subscription_usage] "2":> selected="selected"<:or:><:eif:>>Renew a subscription only</option>
342 </select>
343 </td>
58baa27b 344 <td class="help"><:help product subscription_usage:></td>
0ec4ac8a
TC
345 </tr>
346 <tr>
58baa27b
TC
347 <th>User must be subscribed to:</th>
348 <td>
0ec4ac8a
TC
349 <select name="subscription_required">
350 <option value="-1"<:ifEq [old subscription_required] "-1":> selected="selected"<:or:><:eif:>>(nothing)</option>
351<:iterator begin subscriptions:>
352 <option value="<:subscription subscription_id:>"<:ifEq [old subscription_required] [subscription subscription_id]:> selected="selected"<:or:><:eif:>><:subscription title:></option>
353<:iterator end subscriptions:>
354 </select> to purchase this product
355 </td>
58baa27b 356 <td class="help"><:help product subscription_id:></td>
d7538448 357 </tr>
5bc24704 358 </table>
759c295d
TC
359 <p><font size="-1">*These fields cannot be modified once this product has been
360 included in an order.</font></p>
361 <:if UserCan edit_save:article:>
362 <p>
12bcb7ac 363 <:ifNew:><input type="submit" name="save" value="Add Product" /><:or:><input type="submit" name="save" value="Update Product" /><:eif:>
abf5bbc6 364 </p><:or UserCan:><:eif UserCan:>
5bc24704
TC
365</form>
366
7063727a 367<p><font size="-1">BSE Release <:release:></font></p>
5bc24704
TC
368</body>
369</html>