AdditionalSection.php 937 B

1234567891011121314151617181920212223242526272829303132333435
  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 function ThurData\Servers\KerioEmail\Core\Helper\di;
  6. use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
  7. /**
  8. *
  9. * Created by PhpStorm.
  10. * User: ThurData
  11. * Date: 12.11.19
  12. * Time: 13:42
  13. * Class AdditionalSection
  14. */
  15. class AdditionalSection extends FreeFieldsSection
  16. {
  17. protected $id = 'additionalSection';
  18. protected $name = 'additionalSection';
  19. use FormExtendedTrait;
  20. public function initContent()
  21. {
  22. $this->generateDoubleSection([new Text('title'), new Text('profession')]);
  23. $this->generateDoubleSection([new Text('department'), new Text('office')]);
  24. $this->generateDoubleSection([new Text('work_phone'), new Text('mobile_phone')]);
  25. }
  26. }