X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fforms%2FGeom.php;h=61dde0ca1fb8af572470e0dce31ee20849eb2730;hb=57031d71f1af8fbca504b7f09352a3fb1455d602;hp=cad18a777b413a242715a113236abae2d3617770;hpb=a64d41557a62ec6051d7fa08d1ba941e089aa5c2;p=syj.git diff --git a/application/forms/Geom.php b/application/forms/Geom.php index cad18a7..61dde0c 100644 --- a/application/forms/Geom.php +++ b/application/forms/Geom.php @@ -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);