コード例 #1
0
ファイル: Grid.php プロジェクト: Rodrifer/candyclub
 /**
  * Add columns to the grid
  *
  * @return Bronto_Email_Block_Adminhtml_System_Email_Template_Grid
  */
 protected function _prepareColumns()
 {
     parent::_prepareColumns();
     if (Mage::helper('bronto_email')->isEnabledForAny()) {
         $this->addColumn('action', array('header' => Mage::helper('adminhtml')->__('Action'), 'index' => 'template_id', 'sortable' => false, 'filter' => false, 'width' => '100px', 'renderer' => 'bronto_email/adminhtml_system_email_import_grid_renderer_action'));
     }
     return $this;
 }
コード例 #2
0
ファイル: Grid.php プロジェクト: bevello/bevello
 /**
  * Add columns to the grid
  *
  * @return Bronto_Email_Block_Adminhtml_System_Email_Template_Grid
  */
 protected function _prepareColumns()
 {
     if (!Mage::helper('bronto_email')->isEnabledForAny()) {
         return parent::_prepareColumns();
     }
     $this->addColumn('template_id', array('header' => Mage::helper('adminhtml')->__('ID'), 'index' => 'template_id', 'width' => '30px'));
     $this->addColumn('added_at', array('header' => Mage::helper('adminhtml')->__('Date Added'), 'index' => 'added_at', 'gmtoffset' => true, 'type' => 'datetime'));
     $this->addColumn('modified_at', array('header' => Mage::helper('adminhtml')->__('Date Updated'), 'index' => 'modified_at', 'gmtoffset' => true, 'type' => 'datetime'));
     $this->addColumn('template_code', array('header' => Mage::helper('adminhtml')->__('Name'), 'index' => 'template_code'));
     $this->addColumn('message_name', array('header' => Mage::helper('adminhtml')->__('Bronto Message'), 'index' => 'bronto_message_name'));
     if (!Mage::app()->isSingleStoreMode()) {
         $this->addColumn('store_id', array('header' => Mage::helper('adminhtml')->__('Store View'), 'type' => 'store', 'index' => 'store_id', 'sortable' => true, 'store_view' => true));
     }
     $this->addColumn('template_send_type', array('header' => Mage::helper('adminhtml')->__('Send Type'), 'index' => 'template_send_type', 'type' => 'options', 'options' => array('marketing' => 'Bronto Marketing', 'transactional' => 'Bronto Transactional', 'magento' => 'Magento Email')));
     $this->addColumn('action', array('header' => Mage::helper('adminhtml')->__('Action'), 'index' => 'template_id', 'sortable' => false, 'filter' => false, 'width' => '130px', 'renderer' => 'bronto_email/adminhtml_system_email_template_grid_renderer_action'));
     return $this;
 }