AdditionalSection.php 880 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\UI\Client\EmailAccount\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('title'), new Text('profession')]);
  22. $this->generateDoubleSection([new Text('department'), new Text('office')]);
  23. $this->generateDoubleSection([new Text('work_phone'), new Text('mobile_phone')]);
  24. }
  25. }