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.)master
parent
2e86b8df98
commit
931045301a
|
@ -4,6 +4,7 @@ ikiwiki (3.20100505) UNRELEASED; urgency=low
|
||||||
a single template, page.tmpl.
|
a single template, page.tmpl.
|
||||||
* If you have a locally customised page.tmpl, it needs to be updated
|
* If you have a locally customised page.tmpl, it needs to be updated
|
||||||
to set <base> when BASEURL or FORCEBAREURL is set.
|
to set <base> when BASEURL or FORCEBAREURL is set.
|
||||||
|
* Gave comment and page editing forms some CSS and accessability love.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Wed, 05 May 2010 18:07:29 -0400
|
-- Joey Hess <joeyh@debian.org> Wed, 05 May 2010 18:07:29 -0400
|
||||||
|
|
||||||
|
|
|
@ -419,6 +419,20 @@ span.color {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label.block {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
label.inline {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
ol.form {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
li.form {
|
||||||
|
padding-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
/* Used by the highlight plugin. */
|
/* Used by the highlight plugin. */
|
||||||
pre.hl { color:#000000; background-color:#ffffff; }
|
pre.hl { color:#000000; background-color:#ffffff; }
|
||||||
.hl.num { color:#2928ff; }
|
.hl.num { color:#2928ff; }
|
||||||
|
|
|
@ -4,22 +4,37 @@
|
||||||
<TMPL_VAR FIELD-DO>
|
<TMPL_VAR FIELD-DO>
|
||||||
<TMPL_VAR FIELD-SID>
|
<TMPL_VAR FIELD-SID>
|
||||||
<TMPL_VAR FIELD-PAGE>
|
<TMPL_VAR FIELD-PAGE>
|
||||||
<TMPL_UNLESS USERNAME>
|
<ol class="form">
|
||||||
<TMPL_IF ALLOWAUTHOR>
|
<TMPL_UNLESS NAME=USERNAME>
|
||||||
Name: <TMPL_VAR FIELD-AUTHOR> (optional, or
|
<TMPL_IF NAME=ALLOWAUTHOR>
|
||||||
<a href="<TMPL_VAR SIGNINURL>">signin</a>)<br />
|
<li>
|
||||||
Website: <TMPL_VAR FIELD-URL> (optional)<br />
|
<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>
|
<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_IF>
|
||||||
</TMPL_UNLESS>
|
</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 />
|
<TMPL_VAR FIELD-EDITCONTENT><br />
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
<TMPL_VAR FORM-SUBMIT> <TMPL_VAR FIELD-TYPE> <TMPL_VAR HELPONFORMATTINGLINK><br />
|
<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_VAR WMD_PREVIEW>
|
||||||
|
|
||||||
<TMPL_IF PAGE_PREVIEW>
|
<TMPL_IF NAME="PAGE_PREVIEW">
|
||||||
<hr />
|
<hr />
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span>Comment preview:</span>
|
<span>Comment preview:</span>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<br />
|
|
||||||
<TMPL_VAR JAVASCRIPT>
|
<TMPL_VAR JAVASCRIPT>
|
||||||
<TMPL_VAR MESSAGE>
|
<TMPL_VAR MESSAGE>
|
||||||
<TMPL_VAR FORM-START>
|
<TMPL_VAR FORM-START>
|
||||||
|
@ -7,30 +6,37 @@
|
||||||
<TMPL_VAR FIELD-FROM>
|
<TMPL_VAR FIELD-FROM>
|
||||||
<TMPL_VAR FIELD-RCSINFO>
|
<TMPL_VAR FIELD-RCSINFO>
|
||||||
<TMPL_VAR FIELD-NEWFILE>
|
<TMPL_VAR FIELD-NEWFILE>
|
||||||
<TMPL_IF PAGE_SELECT>
|
<ol class="form">
|
||||||
Page location: <TMPL_VAR FIELD-PAGE>
|
<TMPL_IF NAME="PAGE_SELECT">
|
||||||
Page type: <TMPL_VAR FIELD-TYPE>
|
<li>
|
||||||
|
<label for="page" class="inline">Page location:</label><TMPL_VAR FIELD-PAGE>
|
||||||
|
<label for="type" class="inline">Page type:</label><TMPL_VAR FIELD-TYPE>
|
||||||
|
</li>
|
||||||
<TMPL_ELSE>
|
<TMPL_ELSE>
|
||||||
<br />
|
|
||||||
<TMPL_VAR FIELD-PAGE>
|
<TMPL_VAR FIELD-PAGE>
|
||||||
<TMPL_VAR FIELD-TYPE>
|
<TMPL_VAR FIELD-TYPE>
|
||||||
</TMPL_IF>
|
</TMPL_IF>
|
||||||
|
<li>
|
||||||
<TMPL_VAR FIELD-EDITCONTENT><br />
|
<TMPL_VAR FIELD-EDITCONTENT><br />
|
||||||
<TMPL_IF CAN_COMMIT>
|
</li>
|
||||||
Optional comment about this change:<br />
|
<TMPL_IF NAME="CAN_COMMIT">
|
||||||
|
<li>
|
||||||
|
<label for="comments" class="block">Optional comment about this change:</label>
|
||||||
<TMPL_VAR FIELD-COMMENTS><br />
|
<TMPL_VAR FIELD-COMMENTS><br />
|
||||||
|
</li>
|
||||||
</TMPL_IF>
|
</TMPL_IF>
|
||||||
|
</ol>
|
||||||
<TMPL_VAR FORM-SUBMIT>
|
<TMPL_VAR FORM-SUBMIT>
|
||||||
<TMPL_VAR HELPONFORMATTINGLINK>
|
<TMPL_VAR HELPONFORMATTINGLINK>
|
||||||
<TMPL_IF FIELD-ATTACHMENT>
|
<TMPL_IF NAME="FIELD-ATTACHMENT">
|
||||||
<a class="toggle" href="#attachments">Attachments</a>
|
<a class="toggle" href="#attachments">Attachments</a>
|
||||||
<div class="<TMPL_VAR ATTACHMENTS-CLASS>" id="attachments">
|
<div class="<TMPL_VAR ATTACHMENTS-CLASS>" id="attachments">
|
||||||
<table>
|
<table>
|
||||||
<tr><td colspan="5"><TMPL_VAR FIELD-ATTACHMENT><TMPL_VAR FIELD-UPLOAD></td></tr>
|
<tr><td colspan="5"><TMPL_VAR FIELD-ATTACHMENT><TMPL_VAR FIELD-UPLOAD></td></tr>
|
||||||
<TMPL_LOOP ATTACHMENT_LIST>
|
<TMPL_LOOP NAME="ATTACHMENT_LIST">
|
||||||
<tr><td><TMPL_VAR FIELD-SELECT><TMPL_VAR LINK></td><td><TMPL_VAR SIZE></td><td><TMPL_VAR MTIME></td></tr>
|
<tr><td><TMPL_VAR FIELD-SELECT><TMPL_VAR LINK></td><td><TMPL_VAR SIZE></td><td><TMPL_VAR MTIME></td></tr>
|
||||||
</TMPL_LOOP>
|
</TMPL_LOOP>
|
||||||
<TMPL_IF ATTACHMENT_LIST>
|
<TMPL_IF NAME="ATTACHMENT_LIST">
|
||||||
<tr><td colspan="2"><TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-RENAME><TMPL_VAR FIELD-REMOVE></td></tr>
|
<tr><td colspan="2"><TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-RENAME><TMPL_VAR FIELD-REMOVE></td></tr>
|
||||||
</TMPL_IF>
|
</TMPL_IF>
|
||||||
</table>
|
</table>
|
||||||
|
@ -39,7 +45,7 @@ Optional comment about this change:<br />
|
||||||
<TMPL_VAR FORM-END>
|
<TMPL_VAR FORM-END>
|
||||||
<TMPL_VAR WMD_PREVIEW>
|
<TMPL_VAR WMD_PREVIEW>
|
||||||
|
|
||||||
<TMPL_IF PAGE_PREVIEW>
|
<TMPL_IF NAME="PAGE_PREVIEW">
|
||||||
<hr />
|
<hr />
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<span>Page preview:</span>
|
<span>Page preview:</span>
|
||||||
|
|
Loading…
Reference in New Issue