Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareForm () |
Definition at line 35 of file Form.php.
__construct | ( | ) |
Init form
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 41 of file Form.php.
00042 { 00043 parent::__construct(); 00044 $this->setId('store_delete_form'); 00045 $this->setTitle(Mage::helper('cms')->__('Block Information')); 00046 }
_prepareForm | ( | ) | [protected] |
Prepare form before rendering HTML
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 48 of file Form.php.
00049 { 00050 $dataObject = $this->getDataObject(); 00051 00052 $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post')); 00053 00054 $form->setHtmlIdPrefix('store_'); 00055 00056 $fieldset = $form->addFieldset('base_fieldset', array('legend' => Mage::helper('core')->__('Backup options'), 'class' => 'fieldset-wide')); 00057 00058 $fieldset->addField('item_id', 'hidden', array( 00059 'name' => 'item_id', 00060 'value' => $dataObject->getId(), 00061 )); 00062 00063 $fieldset->addField('create_backup', 'select', array( 00064 'label' => Mage::helper('adminhtml')->__('Create DB Backup'), 00065 'title' => Mage::helper('adminhtml')->__('Create DB Backup'), 00066 'name' => 'create_backup', 00067 'options' => array( 00068 '1' => Mage::helper('adminhtml')->__('Yes'), 00069 '0' => Mage::helper('adminhtml')->__('No'), 00070 ), 00071 'value' => '1', 00072 )); 00073 00074 $form->setUseContainer(true); 00075 $this->setForm($form); 00076 00077 return parent::_prepareForm(); 00078 }