From 150c38ebcad7e451aca5350cf5c8047d65a3af72 Mon Sep 17 00:00:00 2001 From: Arno Renevier Date: Thu, 8 Sep 2011 21:46:25 +0200 Subject: [PATCH] add tabinbex attributes to anchors inside label otherwise they're not keyboard accessible in opera --- application/forms/Geom.php | 2 +- application/forms/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/forms/Geom.php b/application/forms/Geom.php index 9dc5c38..48c6dbc 100644 --- a/application/forms/Geom.php +++ b/application/forms/Geom.php @@ -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"), - 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, diff --git a/application/forms/User.php b/application/forms/User.php index 79e06ff..ad381d7 100644 --- a/application/forms/User.php +++ b/application/forms/User.php @@ -42,7 +42,7 @@ 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, -- 2.39.2