AdditionalSection.php 1.1 KB

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