logo       

CVS: phpwiki/themes/default/templates editpage.tmpl,1.52,1.53: msg#00114

web.wiki.phpwiki.checkins

Subject: CVS: phpwiki/themes/default/templates editpage.tmpl,1.52,1.53

Update of /cvsroot/phpwiki/phpwiki/themes/default/templates
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5645

Modified Files:
editpage.tmpl
Log Message:
accessibility: label the basic form elements

Index: editpage.tmpl
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/themes/default/templates/editpage.tmpl,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -2 -b -p -d -r1.52 -r1.53
--- editpage.tmpl 19 Dec 2004 18:28:22 -0000 1.52
+++ editpage.tmpl 22 Jan 2005 12:08:44 -0000 1.53
@@ -1,3 +1,3 @@
-<!-- -*-html-*- -->
+<!-- -*-php-*- -->
<!-- $Id$ -->
<?php
@@ -7,4 +7,5 @@ $WidthI = HTML::input(array('type' => 't
'class' => "numeric",
'name' => 'pref[editWidth]',
+ 'id' => 'pref[editWidth]',
'value' => $request->getPref('editWidth'),
'onchange' => 'this.form.submit();'));
@@ -14,4 +15,5 @@ $HeightI = HTML::input(array('type' => '
'class' => "numeric",
'name' => 'pref[editHeight]',
+ 'id' => 'pref[editHeight]',
'value' => $request->getPref('editHeight'),
'onchange' => 'this.form.submit();'));
@@ -54,5 +56,5 @@ $s = $WikiTheme->getButtonSeparator();
<tr><td><?= $EDIT_TOOLBAR ?></td>
<td align="right"><div id="editarea-size">
- <?=_("Size").':'?><b><?=_("H")?></b> <?=$HeightI?><b><?=_("W")?></b>
<?=$WidthI?>
+ <?=_("Size").':'?> <label
for="pref[editHeight]"><b><?=_("H")?></b></label> <?=$HeightI?> <label
for="pref[editWidth]"><b><?=_("W")?></b></label> <?=$WidthI?>
<noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
</div></td></tr></table>
@@ -60,5 +62,5 @@ $s = $WikiTheme->getButtonSeparator();
<!-- FIXME: fix layout, move CSS to CSS -->
<div class="toolbar" style="text-align: center;">
- <?=_("Summary").':'?> <?=$SUMMARY_INPUT?>
+ <label for="edit[summary]"><?=_("Summary").':'?></label> <?=$SUMMARY_INPUT?>
</div>
<table summary="Toolbar: Page editing options." class="toolbar" width="100%"
@@ -66,6 +68,6 @@ $s = $WikiTheme->getButtonSeparator();
<tr valign="middle">
<td>
- <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?><br />
- <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?> <?=$OLD_MARKUP_CONVERT?>
+ <?=$MINOR_EDIT_CB ?> <label for="edit[minor_edit]"><?=_("This is a minor
change.")?></label><br />
+ <?=$OLD_MARKUP_CB?> <label for="edit[markup]"><?=_("Use old
markup")?></label> <?=$OLD_MARKUP_CONVERT?>
</td>
<td align="center">
@@ -75,14 +77,18 @@ $s = $WikiTheme->getButtonSeparator();
<?php } ?>
</td>
- <td align="right">
+ <td>
<?= $user->isSignedIn()
? ''
: fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
+ <?php if (0 and !$user->isAuthenticated()) { // disabled ?>
+ <?= Template('signin', array('FORMNAME' => 'editpage')) ?>
+ <?php } ?>
</td>
</tr>
-<?php if ($user->isadmin()) { ?>
- <tr>
+<?php if ($user->isAdmin()) { ?>
+<tr>
<td><?= $LOCKED_CB ?> <?=_("Locked")?></td>
- </tr>
+ <td colspan="2"></td>
+</tr>
<?php } ?>
<?php if (0) {
@@ -91,7 +97,7 @@ $s = $WikiTheme->getButtonSeparator();
// Or fix action=edit to handle the uploaded filename within the same request.
?>
- <tr>
- <td><?plugin UpLoad ?></td>
- </tr>
+<tr>
+ <td colspan="3"><?plugin UpLoad ?></td>
+</tr>
<?php } ?>
</table>



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise