public function createRunForm() { $form = new Am_Form(); $form->setAction($this->getUrl(null, 'run')); $s = $form->addSelect('paysys_id')->setLabel('Choose a plugin'); $s->addRule('required', 'This field is required'); foreach ($this->getModule()->getPlugins() as $p) { $s->addOption($p->getTitle(), $p->getId()); } $form->addDate('date')->setLabel('Run Rebill Manually')->addRule('required', 'This field is required'); $form->addSubmit('run', array('value' => 'Run')); $form->setWidth('450px'); return $form; }