]> dev.renevier.net Git - syj.git/blobdiff - application/forms/Geom.php
do not add a hidden input before checkbox inputs
[syj.git] / application / forms / Geom.php
index b52e0719c3e6f98c7e57c0904124e06ec05840c2..3d99a87bd6014b7522b2bee84c7bef81439be960 100644 (file)
@@ -21,10 +21,13 @@ class Syj_Form_Geom extends Zend_Form
             ));
 
         $translator = $this->getTranslator();
-        $anchor = $this->getView()->Anchor("termsofuse", $translator->translate("terms of use"), array('id' => 'geom_termsofuse_anchor'));
+        $anchor = $this->getView()->Anchor("termsofuse?format=raw",
+                                           $translator->translate("terms of use"),
+                                           array('id' => 'geom_termsofuse_anchor'));
         $text = $translator->translate("I've read and accepted %s");
         $text = vsprintf($text, $anchor);
         $touaccept = array('Checkbox', 'geom_accept', array("label" => $text,
+                            'helper' => 'SyjFormCheckbox', // similar to FormCheckbox without a hidden input
                             'decorators' => array(
                                   'ViewHelper',
                                   'label',