add separate edit a single article file with upload
[bse.git] / site / templates / admin / file_edit.tmpl
CommitLineData
b2a9e505
TC
1<:wrap admin/xbase.tmpl title=>"Edit Article File":>
2<h1>Edit Article File</h1>
3<:ifMessage:>
4<p><b><:message:></b></p>
5<:or:><:eif:>
6<p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <:if Match [article generator] "Product":><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
7 product</a> | <a href="/cgi-bin/admin/shopadmin.pl">Manage catalogs</a> <:or
8 Match:><:if Eq [article id] [cfg articles shop]:><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
9 shop</a><:or Eq:><a href="/cgi-bin/admin/add.pl?id=<:article id:>"><:ifMatch
10 [article generator] "Catalog":>Edit catalog<:or:>Edit article<:eif:></a><:eif
11 Eq:><:eif Match:> |</p>
12<h2>Edit article file</h2>
13
14<form method="post" action="<:script:>" enctype="multipart/form-data">
15
16<input type="hidden" name="id" value="<: article id :>" />
17<input type="hidden" name="file_id" value="<:efile id:>" />
18<input type="hidden" name="_t" value="file" />
19<input type="hidden" name="save_file_flags" value="1" />
20 <table cellpadding="6" border="0" cellspacing="1">
21 <tr>
22 <th align="left">Replacement file:</th>
23 <td>
24 <:efile displayName:><br /><input type="file" name="file" size="40" /><br />Choose a file to replace the current file or leave blank to keep the current file.
25 </td>
26 <td nowrap="nowrap"><:help file file:> <:error_img file:></td>
27 </tr>
28 <tr>
29 <th align="left">Description:</th>
30 <td>
31 <input type="text" name="description" value="<:old description efile description:>" size="60"/>
32 </td>
33 <td nowrap="nowrap"><:help file description:> <:error_img description:></td>
34 </tr>
35 <tr>
36 <th align="left">Notes:</th>
37 <td>
38 <textarea name="notes" rows="10" cols="60" wrap="virtual"><:old notes efile notes:></textarea>
39 </td>
40 <td nowrap="nowrap"><:help file notes:> <:error_img notes:></td>
41 </tr>
42 <tr>
43 <th align="left">Content-Type:</th>
44 <td>
45 <input type="text" name="contentType" value="<:old contentType efile contentType:>" size="40" />
46 </td>
47 <td nowrap="nowrap"><:help file content_type:> <:error_img contentType:></td>
48 </tr>
49 <tr>
50 <th align="left">Identifier:</th>
51 <td>
52 <input type="text" name="name" value="<:old name efile name:>" /> </td>
53 <td nowrap="nowrap"><:help file name:> <:error_img name:></td>
54 </tr>
55 <tr>
56 <th align="left">Treat as download:</th>
57 <td>
58 <input type="checkbox" name="download" value="1" <:ifOldChecked download:>checked="checked"<:or:><:eif:> />
59 </td>
60 <td nowrap="nowrap"><:help file download:> <:error_img download:></td>
61 </tr>
62 <tr>
63 <th align="left">Require payment:</th>
64 <td>
65 <input type="checkbox" name="forSale" value="1" <:ifOldChecked forSale:>checked="checked"<:or:><:eif:> />
66 </td>
67 <td nowrap="nowrap"><:help file forSale:> <:error_img forSale:></td>
68 </tr>
69 <tr>
70 <th align="left">Require login:</th>
71 <td>
72 <input type="checkbox" name="requireUser" value="1" <:ifOldChecked requireUser:>checked="checked"<:or:><:eif:>/>
73 </td>
74 <td nowrap="nowrap"><:help file requireUser:> <:error_img requireUser:></td>
75 </tr>
76 <tr>
77 <th align="left">Hide from list:</th>
78 <td>
79 <input type="checkbox" name="hide_from_list" value="1" <:ifOldChecked hide_from_list:>checked="checked"<:or:><:eif:>/>
80 </td>
81 <td nowrap="nowrap"><:help file hide_from_list:> <:error_img hide_from_list:></td>
82 </tr>
83 <tr>
84 <td colspan="3" align="right">
85 <input type="submit" name="a_save_file" value="Save File" />
86 </td>
87 </tr>
88 </table>
89</form>