addFieldset('base_fieldset', array('legend' => Mage::helper('giftcards')->__('Import Gift Cards'))); $fieldset->addField('file', 'file', array( 'name' => 'file', 'label' => Mage::helper('giftcards')->__('Path to file for Gift Cards'), 'title' => Mage::helper('giftcards')->__('Path to file for Gift Cards'), 'required' => true ) ); $fieldset->addField('delimiter', 'text', array( 'name' => 'delimiter', 'label' => Mage::helper('giftcards')->__('Value delimiter'), 'title' => Mage::helper('giftcards')->__('Value delimiter'), 'required' => true ) ); $fieldset->addField('enclosure', 'text', array( 'name' => 'enclosure', 'label' => Mage::helper('giftcards')->__('Enclose Values In'), 'title' => Mage::helper('giftcards')->__('Enclose Values In'), 'required' => true ) ); $form->setAction($this->getUrl('*/adminhtml_cardsload/save')); $form->setMethod('post'); $form->setId('edit_form'); $form->setEnctype('multipart/form-data'); $form->setUseContainer(true); $this->setForm($form); return parent::_prepareForm(); } }