Mage_Adminhtml_Block_System_Email_Template_Edit_Form Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Email_Template_Edit_Form:

Mage_Adminhtml_Block_Widget_Form Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Protected Member Functions

 _prepareForm ()


Detailed Description

Definition at line 35 of file Form.php.


Member Function Documentation

_prepareForm (  )  [protected]

Prepare form before rendering HTML

Returns:
Mage_Adminhtml_Block_Widget_Form

Reimplemented from Mage_Adminhtml_Block_Widget_Form.

Definition at line 38 of file Form.php.

00039     {
00040         $form = new Varien_Data_Form();
00041 
00042         $fieldset = $form->addFieldset('base_fieldset',
00043             array('legend'=>Mage::helper('adminhtml')->__('Template Information'),'class'=>'fieldset-wide')
00044         );
00045 
00046         $fieldset->addField('template_code', 'text', array(
00047             'name'=>'template_code',
00048             'label' => Mage::helper('adminhtml')->__('Template Name'),
00049             'required' => true
00050 
00051         ));
00052 
00053         $fieldset->addField('template_subject', 'text', array(
00054             'name'=>'template_subject',
00055             'label' => Mage::helper('adminhtml')->__('Template Subject'),
00056             'required' => true
00057         ));
00058 
00059         $fieldset->addField('template_text', 'editor', array(
00060             'name'=>'template_text',
00061             'wysiwyg' => !Mage::registry('email_template')->isPlain(),
00062             'label' => Mage::helper('adminhtml')->__('Template Content'),
00063             'required' => true,
00064             'theme' => 'advanced',
00065             'state' => 'html',
00066             'style' => 'height:24em;',
00067         ));
00068 
00069         if (Mage::registry('email_template')->getId()) {
00070             $form->addValues(Mage::registry('email_template')->getData());
00071         }
00072 
00073         if ($values = Mage::getSingleton('adminhtml/session')->getData('email_template_form_data', true)) {
00074             $form->setValues($values);
00075         }
00076 
00077         $this->setForm($form);
00078 
00079         return parent::_prepareForm();
00080     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:04 2009 for Magento by  doxygen 1.5.8