]> dev.renevier.net Git - syj.git/blobdiff - application/forms/Geom.php
raw mode for termsofuse
[syj.git] / application / forms / Geom.php
index cad18a777b413a242715a113236abae2d3617770..61dde0ca1fb8af572470e0dce31ee20849eb2730 100644 (file)
@@ -12,7 +12,6 @@ class Syj_Form_Geom extends Zend_Form
                             );
 
     public function init() {
-        $id = array('Hidden', 'geom_id');
         $data = array('Hidden', 'geom_data', array('required' => true));
 
         $title = array('Text', 'geom_title', array(
@@ -22,18 +21,20 @@ 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,
                             'decorators' => array(
                                   'ViewHelper',
                                   'label',
-                                  array('HtmlTag', array('tag' => 'div', 'id' => 'geom_accept_container')))));
+                                  array('HtmlTag', array('tag' => 'div', 'id' => 'geom_accept_container', 'class' => 'logged-hide')))));
 
         $submit = array('Submit', 'geom_submit', array('label' => __("save")));
 
-        $this->addElements(array($id, $data, $title, $touaccept, $submit));
+        $this->addElements(array($data, $title, $touaccept, $submit));
 
         $decorator = $this->geom_accept->getDecorator('Zend_Form_Decorator_Label');
         $decorator->setOption('escape', false);