JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
pare html <head>s that aren't ever output
[wfpl-cms.git] / admin_files.html
1 <!DOCTYPE html>
2
3 <html lang="en">
4 <head>
5         <title><!--~$title show {~-->Files<!--~}~--></title>
6 </head>
7
8 <body>
9 <!--~$body show {~-->
10
11         <!--~form {~-->
12                 <h2><!--~id unset {~-->Add a new file<!--~}~--><!--~id {~-->Edit file "~description html~"<!--~}~--></h2>
13
14                 <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~">
15
16                         <div class="caption">File</div>
17                         <div class="field"><input type="file" name="filename"><input type="hidden" name="old_filename" value="~filename attr~"></div>
18
19                         <div class="caption">Description (optional)</div>
20                         <div class="field_notes">The files admin page sorts by this, so you can find your files.</div>
21                         <div class="field"><input type="text" name="description" value="~description attr~"></div>
22
23                         <div class="caption">&nbsp;</div>
24                         <div class="field"><input type="submit" name="save" value="Save"></div>
25
26                 </form>
27
28                 <div class="caption">&nbsp;</div>
29                 <div class="field"><a href="admin_files~id {~?id=~id~~}~">Cancel</a></div>
30         <!--~}~-->
31
32         <!--~listings once {~-->
33                 <h2>Files Listing</h2>
34
35                 <!--~listings once_if {~-->
36                         <p>The value in the "Path" column below can be pasted into the "URL" field of the link dialog on the page editor. Be sure to set the "protocol" pulldown there to "other". To link to a file from any other website (or e-mail, etc) create the full address by prefixing it with "http://~$host~"</p>
37
38                         <p><a href="admin_files?new=1">[Add a new file]</a></p>
39
40                         <table cellspacing="0" cellpadding="4" border="1" summary="">
41                                 <tr><th>Path</th><th>Description</th><th>&nbsp;</th></tr><!--~listings {~-->
42                                 <tr>
43                                         <td class="listing">/~filename html~<!--~filename empty {~--><em>(blank)</em><!--~}~--></td>
44                                         <td class="listing"><a href="admin_files?edit_id=~id~">~description html~<!--~description empty {~--><em>(blank)</em><!--~}~--></a></td>
45                                         <td><a href="admin_files?admin_files_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this file]</a></td>
46                                 </tr><!--~}~-->
47
48                         </table>
49                 <!--~}~-->
50                 <!--~listings once_else {~-->
51                         <p>No files in database.</p>
52                 <!--~}~-->
53
54                 <p><a href="admin_files?new=1">[Add a new file]</a></p>
55         <!--~}~-->
56
57 <!--~}~-->
58 </body>
59 </html>