<?php
/**
 * Class AddPreferencesDistribution
 * User: Nessandro
 * Date: 2019-09-20
 * Time: 12:44
 * @package ModulesGarden\Servers\ZimbraEmail\App\UI\Client\DistributionList\Sections
 */

namespace ModulesGarden\Servers\ZimbraEmail\App\UI\Client\DistributionList\Sections;


use ModulesGarden\Servers\ZimbraEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
use function ModulesGarden\Servers\ZimbraEmail\Core\Helper\di;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Fields\Select;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Fields\Switcher;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Fields\Text;

class AddPreferencesDistribution extends FreeFieldsSection
{
    protected $id   = 'addPreferencesDistribution';
    protected $name = 'addPreferencesDistribution';

    public function initContent()
    {
        /**
         *
         */
        $this->addField(new Switcher('replyEmail'));

        $this->addField(new Text('replyDisplayName'));

        $this->addField(
            (new Text('replyEmailAddress'))
                ->setPlaceholder(di('lang')->absoluteT('mail@example.com'))
            );

    }
}