public function fieldCreateAction()
 {
     parent::fieldCreateAction();
     // remove stuff only relavent to profile questions
     $form = $this->view->form;
     if ($form) {
         $form->removeElement('show');
     }
 }
示例#2
0
 public function fieldCreateAction()
 {
     parent::fieldCreateAction();
     // remove stuff only relavent to profile questions
     $form = $this->view->form;
     if ($form) {
         $display = $form->getElement('display');
         $display->setLabel('Show on club page?');
         $display->setOptions(array('multiOptions' => array(1 => 'Show on club page', 0 => 'Hide on club page')));
     }
 }
 public function fieldCreateAction()
 {
     parent::fieldCreateAction();
     // remove stuff only relavent to profile questions
     $form = $this->view->form;
     if ($form) {
         $form->removeElement('show');
         $search = $form->getElement('search');
         $search->setLabel('Show on search listings?');
         $search->setOptions(array('multiOptions' => array(1 => 'Show on search listings', 0 => 'Hide on search listings')));
         $display = $form->getElement('display');
         $display->setLabel('Show on feedback page?');
         $display->setOptions(array('multiOptions' => array(1 => 'Show on feedback page', 0 => 'Hide on feedback page')));
     }
 }
示例#4
0
 public function fieldCreateAction()
 {
     parent::fieldCreateAction();
     // remove stuff only relavent to profile questions
     $form = $this->view->form;
     if ($form) {
         $form->setTitle('Add Classified Question');
         $display = $form->getElement('display');
         $display->setLabel('Show on classified page?');
         $display->setOptions(array('multiOptions' => array(1 => 'Show on classified page', 0 => 'Hide on classified page')));
         $search = $form->getElement('search');
         $search->setLabel('Show on the search options?');
         $search->setOptions(array('multiOptions' => array(0 => 'Hide on the search options', 1 => 'Show on the search options')));
     }
 }