AdditionalSection.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace ModulesGarden\Servers\KerioEmail\App\UI\Client\Ressource\Sections;
  3. use ModulesGarden\Servers\KerioEmail\App\Traits\FormExtendedTrait;
  4. use ModulesGarden\Servers\KerioEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
  5. use function ModulesGarden\Servers\KerioEmail\Core\Helper\di;
  6. use ModulesGarden\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
  7. use ModulesGarden\Servers\KerioEmail\Core\UI\Widget\Forms\Sections\InputGroup;
  8. use ModulesGarden\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\InputGroupElements;
  9. /**
  10. *
  11. * Created by PhpStorm.
  12. * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
  13. * Date: 12.11.19
  14. * Time: 13:42
  15. * Class AdditionalSection
  16. */
  17. class AdditionalSection extends FreeFieldsSection
  18. {
  19. protected $id = 'additionalSection';
  20. protected $name = 'additionalSection';
  21. use FormExtendedTrait;
  22. public function initContent()
  23. {
  24. $this->generateDoubleSection([new Text('contact'), new Text('site')]);
  25. $this->generateDoubleSection([new Text('contact_mail'), new Text('contact_phone')]);
  26. $this->generateDoubleSection([new Text('street'), new Text('building')]);
  27. $this->generateDoubleSection([new Text('floor'), new Text('room')]);
  28. $this->generateDoubleSection([new Text('post_code'), new Text('town')]);
  29. $this->generateDoubleSection([new Text('state'), new Text('county')]);
  30. }
  31. }