protected function displayMeta($mainNode, $transient_options, $action)
 {
     if (!parent::displayMeta($mainNode, $transient_options, $action)) {
         return false;
     }
     $this->template->selectOptionsImmediate('check_bad_percent', array($this->getField('check_bad_percent') ? 1 : 0), $mainNode);
     $this->renameInputs(array('check_bad_percent'), $mainNode);
     return true;
 }
 protected function displayMeta($mainNode, $transient_options, $action)
 {
     if (!parent::displayMeta($mainNode, $transient_options, $action)) {
         return false;
     }
     if (!($listNode = $this->template->getElementByName('list', 0, $mainNode)) instanceof DOMNode) {
         I2CE::raiseError("Don't know where to add lists");
         return false;
     }
     $list = $this->getField('list');
     foreach ($this->getListForms() as $form) {
         $attrs = array('value' => $form);
         if ($list == $form) {
             $attrs['selected'] = 'selected';
         }
         $listNode->appendChild($this->template->createElement('option', $attrs, $form));
     }
     $this->renameInputs(array('list'), $mainNode);
     return true;
 }