Bumped version for release.
[cocanwiki.git] / templates / upload_image_form.html
index 01c2a21..1a3dd72 100644 (file)
@@ -7,32 +7,29 @@
 <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 image</h1>
+<h1><span>Upload image</span></h1>
 
 <form method="post" action="/_bin/upload_image.cmo" enctype="multipart/form-data" name="f">
 <table id="create">
+
 <tr>
-<td></td>
-<td class="explanation">
-You need to provide a short name for this image.  Use only lowercase letters, numbers and underscores ('_').  JPEG images should end in <code>.jpg</code> and GIF images should end in <code>.gif</code>.
-</td>
-</tr>
-<tr>
-<th>Image Name:</th>
-<td> <input name="name" value="new_image.jpg" size="40" maxlength="40" /> </td>
+<th>Image:</th>
+<td> <input type="file" name="file" value="" size="60" onchange="if (set_name ()) document.f.alt.focus ()"/> </td>
 </tr>
 
 <tr>
 <td></td>
 <td class="explanation">
-Upload the image itself.
+You need to provide a short name for this image.  Use only lowercase letters, numbers and underscores ('_').  JPEG images should end in <code>.jpg</code> and GIF images should end in <code>.gif</code>.
 </td>
 </tr>
+
 <tr>
-<th>Image:</th>
-<td> <input type="file" name="image" value="" /> </td>
+<th>Image Name:</th>
+<td> <input name="name" value="::name_html_tag::" size="40" maxlength="40" /> </td>
 </tr>
 
 <tr>
@@ -81,6 +78,13 @@ Class is used with stylesheets.  If in doubt, leave it blank.
 
 <tr>
 <td></td>
+<td>
+  <input id="replace" type="checkbox" name="replace" value="1" ::if(replace)::checked="checked"::end::/> <label for="replace">Replace any existing image with the same name</label>
+</td>
+</tr>
+
+<tr>
+<td></td>
 <td><input type="submit" value="Upload" /></td>
 </tr>