<?php

namespace FiloBlu\ActiveCampaign\Block\Adminhtml\System\Config\Gender;

use Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray;

/**
 * Class Gender
 * @package FiloBlu\ActiveCampaign\Block\Adminhtml\System\Config\Gender
 */
class Gender extends AbstractFieldArray
{

    /**
     * @var string
     */
    protected $id = 'gender';

    /**
     * Prepare to render
     *
     * @return void
     */
    protected function _prepareToRender()
    {
        $this->addColumn($this->id.'_magento_field', [
            'label' => __('Magento Field'),
            'style' => 'width:220px'
        ]);
        $this->addColumn($this->id . '_activecampaign_field', [
            'label' => __('Active Campaign Field'),
            'style' => 'width:220px'
        ]);

        $this->_addAfter = false;
        $this->_addButtonLabel = __('Add');
    }
}
