예제 #1
0
 public function init()
 {
     parent::init();
     $this->addElement("hidden", "user_id", array('required' => false, 'decorators' => array()));
     $this->removeElement("aircraft");
     $this->removeElement("password");
     $this->removeElement("username");
     $this->removeElement("role_id");
 }
예제 #2
0
 public function init()
 {
     parent::init();
     $this->removeElement("username");
     // password element to a hidden one
     $this->removeElement("password");
     /*$this->addElement("hidden", "password", array(
           'required'   => false,
           'decorators' => array()
       ));*/
     $this->aircraft->setLabel("Aircraft assigned");
     $this->addElement("select", "aircraft_available", array('required' => false, 'label' => "Aircraft Available", 'multiple' => 'multiple', 'decorators' => array("ViewHelper", "Errors")));
     $this->aircraft_available->setRegisterInArrayValidator(false);
     // reposition
     $language = $this->language;
     $this->removeElement("language");
     $this->addElement($language);
     $this->addElement("hidden", "user_id", array('required' => false, 'decorators' => array()));
 }