]> git.imager.perl.org - bse.git/blob - site/templates/admin/add_product.tmpl
0683cbc73e943393a929c2609d158d47dcae1da7
[bse.git] / site / templates / admin / add_product.tmpl
1 <html><head><title>Add product - Shop administration</title>
2 <link rel="stylesheet" href="/css/admin.css">
3 </head>
4 <body>
5 <h1>Shop Administration</h1>
6 <:ifMessage:> 
7 <p><b><:message:> </b></p>
8 <:or:><:eif:> 
9 <p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <a href="/cgi-bin/admin/shopadmin.pl">Manage catalogs</a> 
10   | </p>
11   <h2>Add New Product</h2>
12 <form action="<:script:>" enctype="multipart/form-data" method=POST>
13   <input type="hidden" name="id" value="<:product id:>">
14   <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
15     <tr>
16       <td>
17         <table border=0 cellspacing="1" cellpadding="6">
18           <tr> 
19             <th nowrap align="left" bgcolor="#FFFFFF">Title:</th>
20             <td nowrap bgcolor="#FFFFFF"> 
21               <input type="text" name="title" value="<:old title:>" size=60><:error_img title:>
22             </td>
23             <td nowrap bgcolor="#FFFFFF"><:help product title:></td>
24           </tr>
25           <tr> 
26             <th nowrap align="left" bgcolor="#FFFFFF">Summary:</th>
27             <td nowrap bgcolor="#FFFFFF"> 
28               <input type="text" name="summary" value="<:old summary:>" size=60><:error_img summary:>
29             </td>
30             <td nowrap bgcolor="#FFFFFF"><:help product summary:></td>
31           </tr>
32           <tr> 
33             <th nowrap align="left" bgcolor="#FFFFFF">Description:</th>
34             <td nowrap bgcolor="#FFFFFF"> 
35               <input type="text" name="description" value="<:old description:>" size=60><:error_img description:>
36             </td>
37             <td nowrap bgcolor="#FFFFFF"><:help product description:></td>
38           </tr>
39           <tr> 
40             <th nowrap align="left" bgcolor="#FFFFFF">Product Code:</th>
41             <td nowrap bgcolor="#FFFFFF"> 
42               <input type="text" name="product_code" value="<:old product_code:>" size="40"><:error_img product_code:>
43             </td>
44             <td nowrap bgcolor="#FFFFFF"><:help product product_code:></td>
45           </tr>
46           <tr> 
47             <th nowrap align="left" bgcolor="#FFFFFF">Catalog:</th>
48             <td nowrap bgcolor="#FFFFFF"> <select name="parentid"><:list:></select><:error_img parentid:> </td>
49             <td nowrap bgcolor="#FFFFFF"><:help product catalog:></td>
50           </tr>
51           <tr> 
52             <th nowrap align="left" bgcolor="#FFFFFF">Template:</th>
53             <td nowrap bgcolor="#FFFFFF"><:templates:><:error_img template:></td>
54             <td nowrap bgcolor="#FFFFFF"><:help product template:></td>
55           </tr>
56           <tr> 
57             <th nowrap align="left" bgcolor="#FFFFFF" valign="top"> Body:</th>
58             <td nowrap bgcolor="#FFFFFF" valign="top"> 
59               <textarea name="body" rows=15 cols=60 wrap=virtual><:old body:></textarea> <:error_img body:>
60             </td>
61             <td nowrap bgcolor="#FFFFFF" valign="top"><:help body body:></td>
62           </tr>
63           <tr> 
64             <th nowrap align="left" bgcolor="#FFFFFF">Lead time:</th>
65             <td nowrap bgcolor="#FFFFFF"> 
66               <input type="text" name="leadTime" value="<:old leadTime:>" size=5>
67               days <:error_img leadTime:></td>
68             <td nowrap bgcolor="#FFFFFF"><:help product leadtime:></td>
69           </tr>
70           <tr> 
71             <th nowrap align="left" bgcolor="#FFFFFF">Retail price:</th>
72             <td nowrap bgcolor="#FFFFFF">$ 
73               <input type="text" name="retailPrice" value="<:old retailPrice money product retailPrice:>" size=7>
74               (0.00) <:error_img retailPrice:></td>
75             <td nowrap bgcolor="#FFFFFF"><:help product retail:></td>
76           </tr>
77           <tr> 
78             <th nowrap align="left" bgcolor="#FFFFFF">Wholesale price:</th>
79             <td nowrap bgcolor="#FFFFFF">$ 
80               <input type="text" name="wholesalePrice" value="<:old wholesalePrice money product wholesalePrice:>" size=7>
81               (0.00) <:error_img wholesalePrice:></td>
82             <td nowrap bgcolor="#FFFFFF"><:help product wholesale:></td>
83           </tr>
84           <tr> 
85             <th nowrap align="left" bgcolor="#FFFFFF">GST:</th>
86             <td nowrap bgcolor="#FFFFFF">$ 
87               <input type="text" name="gst" value="<:old gst money product gst:>" size=7> <:error_img gst:>
88               (0.00)</td>
89             <td nowrap bgcolor="#FFFFFF"><:help product gst:></td>
90           </tr>
91           <tr> 
92             <th nowrap align="left" bgcolor="#FFFFFF">Weight:</th>
93             <td nowrap bgcolor="#FFFFFF">
94               <input type="text" name="weight" value="<:old weight:>" size="7" /> grams <:error_img weight:>
95               (0)</td>
96             <td nowrap bgcolor="#FFFFFF"><:help product weight:></td>
97           </tr>
98           <tr> 
99             <th nowrap align="left" bgcolor="#FFFFFF">Length:</th>
100             <td nowrap bgcolor="#FFFFFF">
101               <input type="text" name="length" value="<:old length:>" size="7" /> mm<:error_img length:>
102               (0)</td>
103             <td nowrap bgcolor="#FFFFFF"><:help product length:></td>
104           </tr>
105           <tr> 
106             <th nowrap align="left" bgcolor="#FFFFFF">Width:</th>
107             <td nowrap bgcolor="#FFFFFF">
108               <input type="text" name="width" value="<:old width:>" size="7" /> mm<:error_img width:>
109               (0)</td>
110             <td nowrap bgcolor="#FFFFFF"><:help product width:></td>
111           </tr>
112           <tr> 
113             <th nowrap align="left" bgcolor="#FFFFFF">Height:</th>
114             <td nowrap bgcolor="#FFFFFF">
115               <input type="text" name="height" value="<:old height:>" size="7" /> mm<:error_img height:>
116               (0)</td>
117             <td nowrap bgcolor="#FFFFFF"><:help product height:></td>
118           </tr>
119           <tr> 
120             <th nowrap align="left" bgcolor="#FFFFFF">Release date:</th>
121             <td nowrap bgcolor="#FFFFFF"> 
122               <input type="text" name="release" value="<:date product release:>" size=11>
123               (dd/mm/yyyy)</td>
124             <td nowrap bgcolor="#FFFFFF"><:help product release:></td>
125           </tr>
126           <tr> 
127             <th nowrap align="left" bgcolor="#FFFFFF">Expiry date:</th>
128             <td nowrap bgcolor="#FFFFFF"> 
129               <input type="text" name="expire" value="<:date product expire:>" size=11>
130               (dd/mm/yyyy)</td>
131             <td nowrap bgcolor="#FFFFFF"><:help product expire:></td>
132           </tr>
133           <tr> 
134             <th nowrap align="left" bgcolor="#FFFFFF">Summary length:</th>
135             <td nowrap bgcolor="#FFFFFF"> 
136               <input type="text" name="summaryLength" size="10" maxlength="10" value="<:product summaryLength:>">
137             </td>
138             <td nowrap bgcolor="#FFFFFF"><:help product summary:></td>
139           </tr>
140           <tr> 
141             <th nowrap align="left" bgcolor="#FFFFFF">Display threshold:</th>
142             <td nowrap bgcolor="#FFFFFF"> 
143               <input type="text" name="threshold" size=10 maxlength=10 value="<:product threshold:>">
144             </td>
145             <td nowrap bgcolor="#FFFFFF"><:help product threshold:></td>
146           </tr>
147           <tr> 
148             <th align="left" bgcolor="#FFFFFF">Options:</th>
149             <td bgcolor="#FFFFFF"> 
150               <input type="text" name="options" value="<:product options:>" size=30>
151               (<:alloptions:>) </td>
152             <td bgcolor="#FFFFFF"><:help product options:></td>
153           </tr>
154           <tr> 
155             <th nowrap bgcolor="#FFFFFF" align="left">Flags:</th>
156             <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>
157             <td bgcolor="#FFFFFF"><:help edit listed:></td>
158           </tr>
159 <:include admin/product_custom.tmpl optional :>
160           <tr> 
161             <th nowrap align="left" bgcolor="#FFFFFF" valign="top">Thumbnail image:</th>
162             <td nowrap bgcolor="#FFFFFF"> 
163               <input type="file" name="thumbnail">
164             </td>
165             <td nowrap bgcolor="#FFFFFF" valign="top"><:help product thumb:></td>
166           </tr>
167           <tr> 
168             <th nowrap align="left" bgcolor="#FFFFFF">Purchase subscribes to:</th>
169             <td nowrap bgcolor="#FFFFFF"> 
170               <select name="subscription_id">
171                 <option value="-1">(nothing)</option>
172 <:iterator begin subscriptions:>
173                 <option value="<:subscription subscription_id:>"><:subscription title:></option>
174 <:iterator end subscriptions:>
175               </select> for <input type="text" name="subscription_period" value="<:old subscription_period" /><:error_img subscription_period:> months.
176             </td>
177             <td nowrap bgcolor="#FFFFFF"><:help product subscription_id:></td>
178           </tr>
179         </table>
180       </td>
181     </tr>
182   </table>
183   <p><font size="-1">*These fields cannot be modified once you save this form.</font></p>
184   <input type=submit name="save" value="Save product">
185 </form>
186 <p><font size="-1">BSE Release <:release:></font></p>
187 </body>
188 </html>