<?php

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


use ModulesGarden\Servers\ZimbraEmail\App\Traits\FormExtendedTrait;
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\Text;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Sections\InputGroup;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Fields\InputGroupElements;

/**
 *
 * Created by PhpStorm.
 * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
 * Date: 12.11.19
 * Time: 13:42
 * Class AdditionalSection
 */
class AdditionalSection extends FreeFieldsSection
{
    protected $id   = 'additionalSection';
    protected $name = 'additionalSection';

    use FormExtendedTrait;

    public function initContent()
    {
        $this->generateDoubleSection([new Text('contact'), new Text('site')]);

        $this->generateDoubleSection([new Text('contact_mail'), new Text('contact_phone')]);

        $this->generateDoubleSection([new Text('street'), new Text('building')]);

        $this->generateDoubleSection([new Text('floor'), new Text('room')]);

        $this->generateDoubleSection([new Text('post_code'), new Text('town')]);

        $this->generateDoubleSection([new Text('state'), new Text('county')]);

    }
}