1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25:
26:
27:
28: 29: 30: 31: 32: 33: 34:
35: class Mage_Adminhtml_Block_System_Store_Delete_Form extends Mage_Adminhtml_Block_Widget_Form
36: {
37:
38: 39: 40:
41: public function __construct()
42: {
43: parent::__construct();
44: $this->setId('store_delete_form');
45: $this->setTitle(Mage::helper('cms')->__('Block Information'));
46: }
47:
48: protected function _prepareForm()
49: {
50: $dataObject = $this->getDataObject();
51:
52: $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post'));
53:
54: $form->setHtmlIdPrefix('store_');
55:
56: $fieldset = $form->addFieldset('base_fieldset', array('legend' => Mage::helper('core')->__('Backup Options'), 'class' => 'fieldset-wide'));
57:
58: $fieldset->addField('item_id', 'hidden', array(
59: 'name' => 'item_id',
60: 'value' => $dataObject->getId(),
61: ));
62:
63: $fieldset->addField('create_backup', 'select', array(
64: 'label' => Mage::helper('adminhtml')->__('Create DB Backup'),
65: 'title' => Mage::helper('adminhtml')->__('Create DB Backup'),
66: 'name' => 'create_backup',
67: 'options' => array(
68: '1' => Mage::helper('adminhtml')->__('Yes'),
69: '0' => Mage::helper('adminhtml')->__('No'),
70: ),
71: 'value' => '1',
72: ));
73:
74: $form->setUseContainer(true);
75: $this->setForm($form);
76:
77: return parent::_prepareForm();
78: }
79:
80: }
81: