JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
don't overwrite .centerer vmargin
[wfpl-cms.git] / admin_files.html
1 <!DOCTYPE html>
2
3 <html lang="en">
4 <head>
5         <title><!--~$title show {~-->~$host~ Admin: Manage files<!--~}~--></title>
6 </head>
7
8 <body>
9 <!--~$body show {~-->
10
11         <!--~form {~-->
12                 <h1>~$host~ Admin Control Panel</h1>
13
14                 <h2><!--~id unset {~-->Add a new downloadable file<!--~}~--><!--~id {~-->Edit downloadable file "~description html~"<!--~}~--></h2>
15
16                 <form action="admin_files" method="post" enctype="multipart/form-data"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~--><input type="hidden" name="MAX_FILE_SIZE" value="~upload_max_filesize~">
17
18                         <div class="caption">File</div>
19                         <div class="field"><input type="file" name="filename"><input type="hidden" name="old_filename" value="~filename attr~"></div>
20
21                         <div class="caption">Description (optional)</div>
22                         <div class="field_notes">The files admin page sorts by this, so you can find your files.</div>
23                         <div class="field"><input type="text" name="description" value="~description attr~"></div>
24
25                         <div class="caption">&nbsp;</div>
26                         <div class="field"><input type="submit" name="save" value="Save"></div>
27
28                 </form>
29
30                 <div class="caption">&nbsp;</div>
31                 <div class="field"><a href="admin_files~id {~?id=~id~~}~">Cancel</a></div>
32         <!--~}~-->
33
34         <!--~listings once {~-->
35                 <h1>~$host~ Admin Control Panel</h1>
36                 <h2>Manage downloadable Files</h2>
37
38                 <p>To create a download link on your website:</p>
39                 <ul>
40                         <li>Use the "Add a new file" link below to upload a file, then come back to this page.</li>
41                         <li>Select the value in the "Path" column below and copy it to the clipboard.</li>
42                         <li>Open the page editor for the page where you'd like the download link to appear. (Open the editor in another tab/window so you can still refer to these instructions.)</li>
43                         <li>In the page editor, type the text you'd like people to click on to download the file, then select this text and click the "link" button in the editor (it looks like a globe and a chain).</li>
44                         <li>Paste the "Path" (that you copied earlier from below) into the "URL" field, and set the "Protocol" field to "&lt;other&gt;". Click OK to close the link dialog.</li>
45                         <li>Click "Save" at the bottom of the editor page.</li>
46                         <li>Test your download link by clicking on it.</li>
47                 </ul>
48
49                 <p><a href="admin_files?new=1">[Add a new file]</a></p>
50
51                 <!--~listings once_if {~-->
52                         <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
53                                 <tr><th>&nbsp;</th><th>Path</th><th>Description</th><th>&nbsp;</th></tr><!--~listings {~-->
54                                 <tr>
55                                         <td class="listing"><!--~filename nonempty {~--><a href="/~filename attr~">download</a><!--~}~--><!--~filename empty {~-->&nbsp;<!--~}~--></td>
56                                         <td class="listing"><!--~filename nonempty {~-->/~filename html~<!--~}~--><!--~filename empty {~--><em>(file missing)</em><!--~}~--></td>
57                                         <td class="listing"><a href="admin_files?edit_id=~id~">~description html~<!--~description empty {~--><em>(blank)</em><!--~}~--></a></td>
58                                         <td><a href="admin_files?admin_files_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this file]</a></td>
59                                 </tr><!--~}~-->
60
61                         </table>
62                 <!--~}~-->
63                 <!--~listings once_else {~-->
64                         <p>No downloadable files in database.</p>
65                 <!--~}~-->
66
67                 <p><a href="admin_files?new=1">[Add a new file]</a></p>
68         <!--~}~-->
69
70 <!--~}~-->
71 </body>
72 </html>