just about to copy adrian's templates in
[bse.git] / site / templates / admin / edit_product.tmpl
CommitLineData
5bc24704
TC
1<html><head><title>Edit product - Shop administration</title>
2 <link rel="stylesheet" type="text/css" href="/css/admin.css">
3</head>
4<body>
5<h1>Shop Administration</h1>
35c0719f 6<:ifMessage:>
27feb834
TC
7<p><b><:message:></b></p>
8<:or:><:eif:>
de193691
TC
9<p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <a href="<:product admin:>">See
10 product</a> | <a href="/cgi-bin/admin/add.pl?id=<:product parentid:>">Edit parent</a>
11 | <a href="/cgi-bin/admin/shopadmin.pl">Manage catalogs</a> <:if UserCan edit_save:product,edit_field_edit_listed:product
12 :><:if Product listed:> | <a href="<:script:>?id=<:product id:>&hide=1&r=<:script:>?id=<:product id:>">Hide
13 product</a> <:or Product:> | <a href="<:script:>?id=<:product id:>&unhide=1&r=<:script:>?id=<:product id:>">Show
14 product</a> <:eif Product:><:or UserCan:><:eif UserCan:>| <a href="/cgi-bin/admin/add.pl?id=<:product id:>&_t=steps">Manage
ca9aa2bf 15 step parents</a> | <:ifProduct listed:><:or:>Hidden<:eif:></p>
ca9aa2bf 16 <h2>Edit Product</h2>
abf5bbc6
TC
17<:if Or [iadminuser_count] [iadmingroup_count]:>
18 <form action="/cgi-bin/admin/adminusers.pl">
19 <input type=hidden name=id value="<: article id:>">
20 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
21 <tr>
22 <td>
23 <table cellpadding="6" cellspacing="1" border="0" width="100%">
24 <tr>
25 <th nowrap>
26
27 <font size=2>Manage access:</font>
28 </th>
29 <td bgcolor="#FFFFFF">
30 <select name=adminid>
08123550
TC
31<:iterator begin adminusers:>
32<option value=<:iadminuser id:>>User <:iadminuser logon:>
33<:iterator end adminusers:>
34<:iterator begin admingroups:>
35<option value=<:iadmingroup id:>>Group <:iadmingroup name:>
36<:iterator end admingroups:>
abf5bbc6
TC
37 </select>
38 <input type=submit name="a_showobjectart" value="Manage">
39 </td>
40 <td bgcolor="#FFFFFF"><:help access manage:>
41 </td>
42 </tr>
43 </table>
44 </td>
45 </tr>
46 </table>
47 </form>
48<br>
49<:or Or:><:eif Or:>
55753022 50<form action="<:script:>" enctype="multipart/form-data" method="POST">
35c0719f 51 <input type="hidden" name="id" value="<:product id:>">
35c0719f 52 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
5bc24704
TC
53 <tr>
54 <td>
27feb834 55 <table border=0 cellpadding="6" cellspacing="1" width="100%">
5bc24704 56 <tr>
27feb834 57 <th align="left" bgcolor="#FFFFFF">Title:</th>
abf5bbc6 58 <td bgcolor="#FFFFFF"><:ifFieldPerm title:><input type="text" name="title" value="<:old title:>" size="60"><:or:><:product title:><:eif:></td>
35c0719f
TC
59 <td nowrap bgcolor="#FFFFFF"><:help product title:></td>
60 </tr>
61 <tr>
62 <th nowrap align="left" bgcolor="#FFFFFF">Summary:</th>
abf5bbc6 63 <td nowrap bgcolor="#FFFFFF"><:ifFieldPerm summary:><input type="text" name="summary" value="<:old summary:>" size=60><:or:><:product summary:><:eif:></td>
35c0719f 64 <td nowrap bgcolor="#FFFFFF"><:help product summary:></td>
5bc24704
TC
65 </tr>
66 <tr>
27feb834 67 <th align="left" bgcolor="#FFFFFF">Catalog:</th>
caa7299c 68 <td bgcolor="#FFFFFF">
abf5bbc6 69<:ifFieldPerm parentid:><select name="parentid"><:list:></select><:or:><:parent title:> (<:parent id:>)<:eif:></td>
35c0719f 70 <td nowrap bgcolor="#FFFFFF"><:help product catalog:></td>
5bc24704 71 </tr>
ca9aa2bf
TC
72 <tr>
73 <th nowrap align="left" bgcolor="#FFFFFF">Template:</th>
abf5bbc6 74 <td nowrap bgcolor="#FFFFFF"><:ifFieldPerm template:><:templates:><:or:><:product template:><:eif:></td>
ca9aa2bf
TC
75 <td nowrap bgcolor="#FFFFFF"><:help product template:></td>
76 </tr>
27feb834 77 <tr>
35c0719f 78 <th align="left" bgcolor="#FFFFFF" valign="top"> Body:</th>
27feb834 79 <td bgcolor="#FFFFFF">
abf5bbc6 80 <:ifFieldPerm body:><textarea name=body rows=15 cols=60 wrap=virtual><:product body:></textarea><:or:><:bodytext product body:><:eif:>
5bc24704 81 </td>
35c0719f 82 <td nowrap bgcolor="#FFFFFF" valign="top"><:help body body:></td>
5bc24704
TC
83 </tr>
84 <tr>
27feb834 85 <th nowrap align="left" bgcolor="#FFFFFF">Lead time:</th>
5bc24704 86 <td nowrap bgcolor="#FFFFFF">
abf5bbc6 87 <:ifFieldPerm leadTime:><input type="text" name="leadTime" value="<:product leadTime:>" size=5><:or:><:product leadTime:><:eif:>
5bc24704 88 days</td>
35c0719f 89 <td nowrap bgcolor="#FFFFFF"><:help product leadtime:></td>
5bc24704
TC
90 </tr>
91 <tr>
27feb834 92 <th align="left" bgcolor="#FFFFFF">Retail price:</th>
5bc24704 93 <td bgcolor="#FFFFFF">$
abf5bbc6
TC
94 <:ifFieldPerm retailPrice:><input type="text" name="retailPrice" value="<:money product retailPrice:>" size=7>
95 (0.00)<:or:><:money product retailPrice:><:eif:></td>
35c0719f 96 <td nowrap bgcolor="#FFFFFF"><:help product retail:></td>
5bc24704
TC
97 </tr>
98 <tr>
27feb834 99 <th align="left" bgcolor="#FFFFFF">Wholesale price:</th>
5bc24704 100 <td bgcolor="#FFFFFF">$
abf5bbc6
TC
101 <:ifFieldPerm wholesalePrice:><input type="text" name="wholesalePrice" value="<:money product wholesalePrice:>" size=7>
102 (0.00)<:or:><:money product wholesalePrice:><:eif:></td>
35c0719f 103 <td nowrap bgcolor="#FFFFFF"><:help product wholesale:></td>
5bc24704
TC
104 </tr>
105 <tr>
27feb834 106 <th align="left" bgcolor="#FFFFFF">GST:</th>
5bc24704 107 <td bgcolor="#FFFFFF">$
abf5bbc6
TC
108 <:ifFieldPerm gst:><input type="text" name="gst" value="<:money product gst:>" size=7>
109 (0.00)<:or:><:money product gst:><:eif:></td>
35c0719f 110 <td nowrap bgcolor="#FFFFFF"><:help product gst:></td>
5bc24704
TC
111 </tr>
112 <tr>
27feb834 113 <th align="left" bgcolor="#FFFFFF">Release date:</th>
5bc24704 114 <td bgcolor="#FFFFFF">
abf5bbc6
TC
115 <:ifFieldPerm release:><input type="text" name="release" value="<:date "%d/%m/%Y" product release:>" size=11>
116 (dd/mm/yyyy)<:or:><:date "%d/%m/%Y" product release:><:eif:></td>
35c0719f 117 <td nowrap bgcolor="#FFFFFF"><:help product release:></td>
5bc24704
TC
118 </tr>
119 <tr>
27feb834 120 <th align="left" bgcolor="#FFFFFF">Expiry date:</th>
5bc24704 121 <td bgcolor="#FFFFFF">
abf5bbc6
TC
122 <:ifFieldPerm expire:><input type="text" name="expire" value="<:date "%d/%m/%Y" product expire:>" size=11>
123 (dd/mm/yyyy)<:or:><:date "%d/%m/%Y" product expire:><:eif:></td>
35c0719f 124 <td nowrap bgcolor="#FFFFFF"><:help product expire:></td>
5bc24704 125 </tr>
26094672
TC
126 <tr>
127 <th nowrap align="left" bgcolor="#FFFFFF">Summary length:</th>
128 <td nowrap bgcolor="#FFFFFF">
abf5bbc6 129 <:ifFieldPerm summaryLength:><input type="text" name="summaryLength" size="10" maxlength="10" value="<:product summaryLength:>"><:or:><:product summaryLength:><:eif:>
26094672 130 </td>
35c0719f 131 <td nowrap bgcolor="#FFFFFF"><:help product summary:></td>
26094672
TC
132 </tr>
133 <tr>
134 <th nowrap align="left" bgcolor="#FFFFFF">Display threshold:</th>
135 <td nowrap bgcolor="#FFFFFF">
abf5bbc6 136 <:ifFieldPerm threshold:><input type="text" name="threshold" size=10 maxlength=10 value="<:product threshold:>"><:or:><:product threshold:><:eif:>
35c0719f
TC
137 </td>
138 <td nowrap bgcolor="#FFFFFF"><:help product threshold:></td>
26094672 139 </tr>
a11a0d7c 140 <tr>
27feb834 141 <th align="left" bgcolor="#FFFFFF">Options:</th>
a11a0d7c 142 <td bgcolor="#FFFFFF">
abf5bbc6
TC
143 <:ifFieldPerm options:><input type="text" name="options" value="<:product options:>" size=30>
144 (<:alloptions:>)<:or:><:product options:><:eif:> </td>
35c0719f 145 <td bgcolor="#FFFFFF"><:help product options:></td>
a11a0d7c 146 </tr>
a0a8147b
TC
147 <tr>
148 <th nowrap bgcolor="#FFFFFF" align="left">List article:</th>
149 <td bgcolor="#FFFFFF" width="100%"> <: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>
150 <td bgcolor="#FFFFFF"><:help edit listed:></td>
151 </tr>
918735d1
TC
152 <tr>
153 <th nowrap bgcolor="#FFFFFF" align="left">Flags:</th>
154 <td bgcolor="#FFFFFF" width="100%"><:iterator begin flags:><:if FieldPerm flags:><input type=checkbox name=flags value="<:flag id:>" <:ifFlagSet [flag id]:>checked<:or:><:eif:>><:or FieldPerm:><:ifFlagSet [flag id]:>Yes<:or:>No<:eif:><:eif FieldPerm:><:flag desc:><:iterator end flags:></td>
155 <td bgcolor="#FFFFFF"><:help edit listed:></td>
156 </tr>
27feb834 157 <tr>
35c0719f 158 <th nowrap align="left" bgcolor="#FFFFFF" valign="top">Thumbnail image:</th>
27feb834 159 <td nowrap bgcolor="#FFFFFF">
abf5bbc6 160 <:ifFieldPerm thumbImage:><input type="file" name="thumbnail"><:or:><:eif:>
35c0719f 161 <:ifProduct thumbImage:><img src="/images/<:product thumbImage:>">
abf5bbc6
TC
162 <:if FieldPerm thumbImage:><input type=checkbox name="remove_thumb">
163 Remove<:or FieldPerm:><:eif FieldPerm:><:or:><:eif:> </td>
35c0719f 164 <td nowrap bgcolor="#FFFFFF" valign="top"><:help product thumb:></td>
5bc24704 165 </tr>
27feb834 166 <tr>
35c0719f 167 <th nowrap align="left" bgcolor="#FFFFFF" valign="top"><a name="files"></a>Files:</th>
caa7299c 168 <td nowrap bgcolor="#FFFFFF"> <:if Files:>
27feb834 169 <table cellpadding="0" cellspacing="0" border="0" bgcolor="#333333">
35c0719f 170 <tr>
27feb834
TC
171 <td>
172 <table cellpadding="5" cellspacing="1" border="0">
173 <tr bgcolor="#FFFFFF">
174 <th>Filename</th>
175 <th>Size</th>
176 <th>Type</th>
35c0719f
TC
177 <th>D/l</th>
178 <th>Pay</th>
179 <th>User</th>
27feb834
TC
180 </tr>
181 <:iterator begin files:>
182 <tr bgcolor="#FFFFFF">
183 <td><:file displayName:></td>
35c0719f 184 <td align="center"><:kb file sizeInBytes:></td>
27feb834
TC
185 <td><:file contentType:></td>
186 <td align=center><:ifFile download:>Yes<:or:>No<:eif:></td>
35c0719f
TC
187 <td align=center><:ifFile forSale:>Yes<:or:>No<:eif:></td>
188 <td align=center><:ifFile requireUser:>Yes<:or:>No<:eif:></td>
27feb834
TC
189 </tr>
190 <:iterator end files:>
191 </table>
192 </td>
193 </tr>
caa7299c
TC
194 </table>
195 <p><a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a>
196 </p>
197 <:or Files:>
198 <p>No files are attached to this article. <a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a></p><:eif Files:>
edc5d096 199 </td>
caa7299c 200 <td nowrap bgcolor="#FFFFFF" valign="top"><:help product
35c0719f 201 files:></td>
edc5d096 202 </tr>
26094672 203 <tr>
15fb10f2 204 <th valign="top" nowrap bgcolor="#FFFFFF" align="left"> Images:
35c0719f 205 </th>
caa7299c 206 <td align="center" bgcolor="#FFFFFF"> <:if Images:> <:iterator begin
55753022 207 images:> <img src="/images/<: image image :>" alt="<:image alt :>" width=
26094672
TC
208 <:image width:> height=<:image height:>> <:iterator separator images:>
209 <hr noshade size="1">
15fb10f2
TC
210 <: iterator end images :>
211 <p align="left"><a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a></p>
212 <:or Images:><p align="left">No images are attached to this article. <a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a></p>
55753022 213 <:eif Images:>
35c0719f 214 </td>
caa7299c 215 <td valign="top" bgcolor="#FFFFFF"><:help product images:></td>
35c0719f 216 </tr>
5bc24704
TC
217 </table>
218 </td>
219 </tr>
220 </table>
1df3b258 221 <:if UserCan edit_save:article:><p>
ca9aa2bf 222 <input type=submit name="save" value="Save changes">
abf5bbc6 223 </p><:or UserCan:><:eif UserCan:>
5bc24704
TC
224</form>
225
7063727a 226<p><font size="-1">BSE Release <:release:></font></p>
5bc24704
TC
227</body>
228</html>