]> dev.renevier.net Git - syj.git/commitdiff
add tabinbex attributes to anchors inside label otherwise they're not keyboard access...
authorArno Renevier <arno@renevier.net>
Thu, 8 Sep 2011 19:46:25 +0000 (21:46 +0200)
committerArno Renevier <arno@renevier.net>
Thu, 8 Sep 2011 19:46:25 +0000 (21:46 +0200)
application/forms/Geom.php
application/forms/User.php

index 9dc5c3882a423396f716d874a94f607ace06cf0b..48c6dbce225c62ce5e6c67caf00d3053674e3e9b 100644 (file)
@@ -37,7 +37,7 @@ class Syj_Form_Geom extends Zend_Form implements Syj_Processor_Interface
 
         $anchor = $this->getView()->Anchor("termsofuse?format=raw",
                                            $translator->translate("terms of use"),
 
         $anchor = $this->getView()->Anchor("termsofuse?format=raw",
                                            $translator->translate("terms of use"),
-                                           array('id' => 'geom_termsofuse_anchor'));
+                                           array('id' => 'geom_termsofuse_anchor', 'tabindex' => '0'));
         $text = $translator->translate("I've read and accepted %s");
         $text = vsprintf($text, $anchor);
         $touaccept = array('Checkbox', 'geom_accept', array("label" => $text,
         $text = $translator->translate("I've read and accepted %s");
         $text = vsprintf($text, $anchor);
         $touaccept = array('Checkbox', 'geom_accept', array("label" => $text,
index 79e06ff2db164362ec8c42b198483c5208696e2d..ad381d7ae3afe7bf25ed87f6b2bb62f23279e006 100644 (file)
@@ -42,7 +42,7 @@ class Syj_Form_User extends Syj_Form_TableAbstract
 
         $anchor = $this->getView()->Anchor("termsofuse?format=raw",
                                            $translator->translate("terms of use"),
 
         $anchor = $this->getView()->Anchor("termsofuse?format=raw",
                                            $translator->translate("terms of use"),
-                                           array('id' => 'user_termsofuse_anchor'));
+                                           array('id' => 'user_termsofuse_anchor', 'tabindex' => '0'));
         $text = $translator->translate("I've read and accepted %s");
         $text = vsprintf($text, $anchor);
         $this->addElement('Checkbox', 'user_accept', array("label" => $text,
         $text = $translator->translate("I've read and accepted %s");
         $text = vsprintf($text, $anchor);
         $this->addElement('Checkbox', 'user_accept', array("label" => $text,