]> dev.renevier.net Git - syj.git/blobdiff - application/forms/User.php
do not add a hidden input before checkbox inputs
[syj.git] / application / forms / User.php
index 288dec6ee1d0644b906ef02eacd4dd32e1050f1f..8fd24458a5e3cdaa242940740d32b404b9f9da58 100644 (file)
@@ -46,6 +46,7 @@ class Syj_Form_User extends Syj_Form_TableAbstract
         $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',