Public Member Functions | |
initForm () |
Definition at line 34 of file Edit.php.
initForm | ( | ) |
Definition at line 36 of file Edit.php.
00037 { 00038 $form = new Varien_Data_Form(); 00039 $form->setHtmlIdPrefix('_edit'); 00040 00041 $model = Mage::registry('current_convert_profile'); 00042 00043 $fieldset = $form->addFieldset('base_fieldset', array('legend'=>Mage::helper('adminhtml')->__('General Information'))); 00044 00045 $fieldset->addField('name', 'text', array( 00046 'name' => 'name', 00047 'label' => Mage::helper('adminhtml')->__('Profile Name'), 00048 'title' => Mage::helper('adminhtml')->__('Profile Name'), 00049 'required' => true, 00050 )); 00051 00052 $fieldset->addField('actions_xml', 'textarea', array( 00053 'name' => 'actions_xml', 00054 'label' => Mage::helper('adminhtml')->__('Actions XML'), 00055 'title' => Mage::helper('adminhtml')->__('Actions XML'), 00056 'style' => 'width:500px; height:400px', 00057 'required' => true, 00058 )); 00059 00060 00061 $form->setValues($model->getData()); 00062 00063 $this->setForm($form); 00064 00065 return $this; 00066 }