setHtmlIdPrefix('index_process_'); $fieldset = $form->addFieldset( 'base_fieldset', array('legend'=>Mage::helper('index')->__('General'), 'class'=>'fieldset-wide') ); $fieldset->addField('process_id', 'hidden', array('name' => 'process', 'value'=>$model->getId())); $fieldset->addField('name', 'note', array( 'label' => Mage::helper('index')->__('Index Name'), 'title' => Mage::helper('index')->__('Index Name'), 'text' => ''.$model->getIndexer()->getName().'' )); $fieldset->addField('description', 'note', array( 'label' => Mage::helper('index')->__('Index Description'), 'title' => Mage::helper('index')->__('Index Description'), 'text' => $model->getIndexer()->getDescription() )); $fieldset->addField('mode', 'select', array( 'label' => Mage::helper('index')->__('Index Mode'), 'title' => Mage::helper('index')->__('Index Mode'), 'name' => 'mode', 'value' => $model->getMode(), 'values'=> $model->getModesOptions() )); //$form->setValues($model->getData()); $this->setForm($form); return parent::_prepareForm(); } /** * Prepare label for tab * * @return string */ public function getTabLabel() { return Mage::helper('index')->__('Process Information'); } /** * Prepare title for tab * * @return string */ public function getTabTitle() { return Mage::helper('index')->__('Process Information'); } /** * Returns status flag about this tab can be showen or not * * @return true */ public function canShowTab() { return true; } /** * Returns status flag about this tab hidden or not * * @return true */ public function isHidden() { return false; } /** * Check permission for passed action * * @param string $action * @return bool */ protected function _isAllowedAction($action) { return true; } }