From: pcanterino <>
Date: Fri, 29 Oct 2004 15:06:17 +0000 (+0000)
Subject: In file edit and file upload dialogue, I added <label> tags for the checkboxes
X-Git-Tag: version_2_2~18
X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/8471bffa3989846e162bbbe3e59a265b85e31ad1

In file edit and file upload dialogue, I added <label> tags for the checkboxes
and radio buttons.
---

diff --git a/templates/editfile.htm b/templates/editfile.htm
index 017630d..3b37711 100644
--- a/templates/editfile.htm
+++ b/templates/editfile.htm
@@ -28,8 +28,8 @@
 <tr>
 <td width="50%" align="center">
 <input type="hidden" name="file" value="{FILE}">
-<input type="checkbox" name="saveas" value="1"> Save as new file: {DIR} <input type="text" name="newfile" value="" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"></td>
-<td width="50%" align="center"><input type="checkbox" name="encode_iso" value="1"> Encode ISO-8859-1 special chars</td>
+<input type="checkbox" name="saveas" id="newfile" value="1"><label for="newfile"> Save as new file: {DIR} </label><input type="text" name="newfile" value="" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"></td>
+<td width="50%" align="center"><input type="checkbox" name="encode_iso" id="encode_iso" value="1"><label for="encode_iso"> Encode ISO-8859-1 special chars</label></td>
 </tr>
 <tr>
 <td align="center"><input type="reset" value="Reset form"></td>
diff --git a/templates/upload.htm b/templates/upload.htm
index 28ee92c..4f5759a 100644
--- a/templates/upload.htm
+++ b/templates/upload.htm
@@ -26,9 +26,9 @@
 <input type="file" name="uploaded_file" size="35"></p>
 
 <p>Transfer mode (see below):<br>
-<input type="radio" name="ascii" value="1">ASCII <input type="radio" name="ascii" value="0" checked>Binary (default)</p>
+<input type="radio" name="ascii" id="ascii" value="1"><label for="ascii">ASCII</label> <input type="radio" name="ascii" id="binary" value="0" checked><label for="binary">Binary (default)</label></p>
 
-<p><input type="checkbox" name="overwrite">Overwrite file if it already exists</p>
+<p><input type="checkbox" name="overwrite" id="overwrite"><label for="overwrite">Overwrite file if it already exists</label></p>
 
 <p><input type="submit" value="Upload file!"></p>
 </form>