aboutsummaryrefslogtreecommitdiff
path: root/templates/editcomment.tmpl
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-06 21:45:17 -0400
committerJoey Hess <joey@kitenet.net>2010-05-06 21:45:17 -0400
commit931045301a3a5be917b775277f2a3088209a00f2 (patch)
tree338ea0fe9b7bbde3f1a0e2163dbcecde3f6ea439 /templates/editcomment.tmpl
parent2e86b8df985067e101269bb4f8a41c5237af9f91 (diff)
downloadikiwiki-931045301a3a5be917b775277f2a3088209a00f2.tar
ikiwiki-931045301a3a5be917b775277f2a3088209a00f2.tar.gz
Gave comment and page editing forms some CSS and accessability love.
In particular, added <label> tags. (However, could not find a good way to add a label tag for the main page edit textarea.)
Diffstat (limited to 'templates/editcomment.tmpl')
-rw-r--r--templates/editcomment.tmpl33
1 files changed, 24 insertions, 9 deletions
diff --git a/templates/editcomment.tmpl b/templates/editcomment.tmpl
index 51ab10f2c..f3a8e7395 100644
--- a/templates/editcomment.tmpl
+++ b/templates/editcomment.tmpl
@@ -4,22 +4,37 @@
<TMPL_VAR FIELD-DO>
<TMPL_VAR FIELD-SID>
<TMPL_VAR FIELD-PAGE>
-<TMPL_UNLESS USERNAME>
-<TMPL_IF ALLOWAUTHOR>
-Name: <TMPL_VAR FIELD-AUTHOR> (optional, or
-<a href="<TMPL_VAR SIGNINURL>">signin</a>)<br />
-Website: <TMPL_VAR FIELD-URL> (optional)<br />
+<ol class="form">
+<TMPL_UNLESS NAME=USERNAME>
+<TMPL_IF NAME=ALLOWAUTHOR>
+<li>
+<label for="author" class="block">Name:</label>
+<TMPL_VAR NAME=FIELD-AUTHOR> (optional, or <a href="<TMPL_VAR SIGNINURL>">signin</a>)
+</li>
+<li>
+<label for="url" class="block">Website:</label>
+<TMPL_VAR NAME=FIELD-URL> (optional)
+</li>
<TMPL_ELSE>
-(You might want to <a href="<TMPL_VAR SIGNINURL>">Signin</a> first?)<br />
+<li>
+(You might want to <a href="<TMPL_VAR SIGNINURL>">Signin</a> first?)
+</li>
</TMPL_IF>
</TMPL_UNLESS>
-Subject: <TMPL_VAR FIELD-SUBJECT><br />
+<li>
+<label for="subject" class="block">Subject:</label>
+<TMPL_VAR FIELD-SUBJECT><br />
+</li>
+<li>
+<label for="editcontent" class="block">Comment:</label>
<TMPL_VAR FIELD-EDITCONTENT><br />
+</li>
+</ol>
<TMPL_VAR FORM-SUBMIT> <TMPL_VAR FIELD-TYPE> <TMPL_VAR HELPONFORMATTINGLINK><br />
-<TMPL_VAR FORM-END>
+<TMPL_VAR NAME="FORM-END">
<TMPL_VAR WMD_PREVIEW>
-<TMPL_IF PAGE_PREVIEW>
+<TMPL_IF NAME="PAGE_PREVIEW">
<hr />
<div class="header">
<span>Comment preview:</span>