Bumped version for release.
[cocanwiki.git] / templates / upload_file_form.html
index b879e4b..c8694bf 100644 (file)
@@ -2,16 +2,24 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <title>Upload file</title>
+<meta name="robots" content="noindex,nofollow"/>
 <meta name="author" content="http://www.merjis.com/" />
 <link rel="stylesheet" href="::theme_css_html_tag::" type="text/css" title="Standard"/>
 <link rel="alternate stylesheet" href="/_css/easytoread.css" type="text/css" title="High contrast, big fonts"/>
 <link rel="stylesheet" href="/_css/create.css" type="text/css" title="Standard"/>
+<script src="/_js/upload.js" type="text/javascript"></script>
 </head><body>
 
-<h1>Upload file</h1>
+<h1><span>Upload file</span></h1>
 
 <form method="post" action="/_bin/upload_file.cmo" enctype="multipart/form-data" name="f">
 <table id="create">
+
+<tr>
+<th>File:</th>
+<td> <input type="file" name="file" value="" size="60" onchange="if (set_name ()) document.f.title.focus ()"/> </td>
+</tr>
+
 <tr>
 <td></td>
 <td class="explanation">
@@ -20,30 +28,26 @@ You need to provide a short name for this file.  Use only lowercase letters, num
 </tr>
 <tr>
 <th>File Name:</th>
-<td> <input name="name" value="new_file.jpg" size="40" maxlength="40" /> </td>
+<td> <input name="name" value="::name_html_tag::" size="40" maxlength="40" /> </td>
 </tr>
 
 <tr>
 <td></td>
 <td class="explanation">
-Upload the file itself.
+The title appears when users hover over a file link with their mouse.  It is not required.
 </td>
 </tr>
 <tr>
-<th>File:</th>
-<td> <input type="file" name="file" value="" /> </td>
+<th>Title:</th>
+<td> <input name="title" value="" size="70" /> </td>
 </tr>
 
 <tr>
 <td></td>
-<td class="explanation">
-The title appears when users hover over a file link with their mouse.  It is not required.
+<td>
+  <input id="replace" type="checkbox" name="replace" value="1" ::if(replace)::checked="checked"::end::/> <label for="replace">Replace any existing file with the same name</label>
 </td>
 </tr>
-<tr>
-<th>Title:</th>
-<td> <input name="title" value="" size="70" /> </td>
-</tr>
 
 <tr>
 <td></td>
@@ -53,21 +57,6 @@ The title appears when users hover over a file link with their mouse.  It is not
 </table>
 </form>
 
-<ul id="topmenu" class="menu">
-<li class="first"> <a href="/">Home&nbsp;page</a> </li>
-<li> <a href="/_sitemap">Sitemap</a> </li>
-<li> <a href="/_recent">Recent&nbsp;changes</a> </li>
-</ul>
-
-<div id="menu_div">
-<ul id="bottommenu" class="menu">
-<li class="first"> <a href="/">Home&nbsp;page</a> </li>
-::table(sitemenu)::<li> <a href="/::url_html_tag::">::label_html::</a> </li>
-::end::
-<li> <a href="/_sitemap">Sitemap</a> </li>
-</ul>
-</div>
-
 ::include(footer.html)::
 </body>
 </html>
\ No newline at end of file