]> dev.renevier.net Git - syj.git/blobdiff - application/forms/User.php
add tabinbex attributes to anchors inside label otherwise they're not keyboard access...
[syj.git] / application / forms / User.php
index 288dec6ee1d0644b906ef02eacd4dd32e1050f1f..ad381d7ae3afe7bf25ed87f6b2bb62f23279e006 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class Syj_Form_User extends Syj_Form_TableAbstract
@@ -42,10 +42,11 @@ class Syj_Form_User extends Syj_Form_TableAbstract
 
         $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,
+                            'helper' => 'SyjFormCheckbox', // similar to FormCheckbox without a hidden input
                             'decorators' => array(
                                   'ViewHelper',
                                   'label',