__("user"), 'required' => true)); $pass = array('Password', 'login_password', array( 'label' => __("password"))); $this->setMainElements(array($user, $pass)) ->addElement('Checkbox', 'login_rememberme', array( 'label' => __("remember me"), 'checked' => true)) ->addElement('Hidden', 'login_geom_id', array( 'decorators' => array('ViewHelper'))); $currentUri = $this->getView()->UriPath(true); $href = $this->getView()->addParamToUrl('newpwd', 'redirect', $currentUri, true); $anchor = $this->getView()->Anchor($href, $this->getTranslator()->translate("I forgot my password"), array('id' => 'newpwd_control_anchor')); $this->addElement('Submit', 'login_submit', array('label' => __("login"), 'description' => $anchor)); $decorator = $this->login_submit->getDecorator('Description'); $decorator->setOption('escape', false); } }