Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function _construct()
 {
     $this->setTemplate('config/form/field/array.phtml');
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add');
     parent::_construct();
 }
Ejemplo n.º 2
0
 protected function _construct()
 {
     $this->addColumn('magento', ['label' => __('Magento')]);
     $this->addColumn('mailchimp', ['label' => __('MailChimp')]);
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add');
     parent::_construct();
 }
 /**
  * Initialise form fields
  *
  * @return void
  */
 protected function _construct()
 {
     $this->addColumn('search', ['label' => __('Search String')]);
     $this->addColumn('value', ['label' => __('Design Theme')]);
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add \\Exception');
     parent::_construct();
 }
 protected function _construct()
 {
     $this->addColumn('magento', ['label' => __('Magento Template'), 'renderer' => $this->getMagentoTemplateRenderer()]);
     $this->addColumn('mandrill', ['label' => __('Mandrill Template'), 'renderer' => $this->getMandrillTemplateRenderer()]);
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add');
     parent::_construct();
 }
Ejemplo n.º 5
0
 protected function _construct()
 {
     $this->addColumn('magento', ['label' => __('Magento')]);
     $this->addColumn('sendpulse', ['label' => __('SendPulse')]);
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add');
     parent::_construct();
 }
 protected function _construct()
 {
     $this->addColumn('countryCode', ['label' => __('Country Code'), 'size' => 28]);
     $this->addColumn('currencyCode', ['label' => __('Currency Code'), 'size' => 28]);
     $this->addColumn('store', ['label' => __('Store'), 'size' => 28]);
     $this->_addAfter = false;
     $this->_addButtonLabel = __('Add Line');
     parent::_construct();
 }
Ejemplo n.º 7
0
 /**
  * Initialise columns for 'Store Locations'
  *
  * @return void
  */
 protected function _construct()
 {
     $this->addColumn('title', ['label' => __('Title'), 'class' => 'validate-no-empty validate-alphanum-with-spaces']);
     $this->addColumn('street', ['label' => __('Street Address'), 'class' => 'validate-no-empty validate-alphanum-with-spaces']);
     $this->addColumn('phone', ['label' => __('Phone Number'), 'class' => 'validate-no-empty validate-no-empty validate-phoneStrict']);
     $this->addColumn('message', ['label' => __('Message'), 'class' => 'validate-no-empty']);
     $this->_addAfter = false;
     parent::_construct();
 }
 protected function _construct()
 {
     $data = $this->getTableData();
     foreach (array_keys($data) as $columnId) {
         $columnData = $data[$columnId];
         $column = ['label' => __($columnData['label'])];
         if (isset($columnData['values'])) {
             $column['renderer'] = $this->getRenderer($columnId, $columnData);
         }
         if (isset($columnData['class'])) {
             $column['class'] = $columnData['class'];
         }
         if (isset($columnData['style'])) {
             $column['style'] = $columnData['style'];
         }
         $this->addColumn($columnId, $column);
     }
     $this->_addAfter = false;
     parent::_construct();
 }