Beispiel #1
0
 protected function prepareFieldsetMain()
 {
     $fldMain = $this->_form->addFieldset('main', array('legend' => $this->__('Products List Page')));
     $note = new Varien_Data_Form_Element_Note(array('text' => $this->__('You need to enable option <b>Show on List</b> on filter edit page in order to make these settings work. You also need to perform modifications in theme template, see Amasty Improved Navigation User Guide on page 16.')));
     $note->setId('product_list_note');
     $fldMain->addElement($note);
     $fldMain->addField('title', 'text', array('label' => $this->__('Title'), 'name' => 'title'));
     $fldMain->addField('descr', 'textarea', array('label' => $this->__('Description'), 'name' => 'descr'));
     $cmsBlocks = Mage::getResourceModel('cms/block_collection')->load()->toOptionArray();
     array_unshift($cmsBlocks, array('value' => null, 'label' => $this->__('Please select a static block ...')));
     $fldMain->addField('cms_block_id', 'select', array('label' => $this->__('Top CMS Block'), 'name' => 'cms_block_id', 'values' => $cmsBlocks));
     $fldMain->addField('cms_block_bottom_id', 'select', array('label' => $this->__('Bottom CMS Block'), 'name' => 'cms_block_bottom_id', 'values' => $cmsBlocks));
     $fldMain->addField('img_big', 'file', array('label' => $this->__('Image'), 'name' => 'img_big', 'required' => false, 'after_element_html' => $this->getImageHtml($this->model->getImgBig())));
     $fldMain->addField('remove_img_big', 'checkbox', array('label' => $this->__('Remove Image'), 'name' => 'remove_img_big', 'value' => 1));
 }