EditAdditionalSection.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace ModulesGarden\Servers\KerioEmail\App\UI\Client\EmailAccount\Sections;
  3. use ModulesGarden\Servers\KerioEmail\App\Traits\FormExtendedTrait;
  4. use ModulesGarden\Servers\KerioEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
  5. use ModulesGarden\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
  6. /**
  7. *
  8. * Created by PhpStorm.
  9. * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
  10. * Date: 12.11.19
  11. * Time: 13:52
  12. * Class EditAdditionalSection
  13. */
  14. class EditAdditionalSection extends FreeFieldsSection
  15. {
  16. protected $id = 'editAdditionalSection';
  17. protected $name = 'editAdditionalSection';
  18. use FormExtendedTrait;
  19. public function initContent()
  20. {
  21. $this->generateDoubleSection([new Text('company'), new Text('title')]);
  22. $field = new Text('phone');
  23. $this->addField($field);
  24. $this->generateDoubleSection([new Text('home_phone'), new Text('mobile_phone')]);
  25. $this->generateDoubleSection([new Text('fax'), new Text('pager')]);
  26. $this->generateDoubleSection([new Text('country'), new Text('state')]);
  27. $this->generateDoubleSection([new Text('city'), new Text('street')]);
  28. $field = new Text('post_code');
  29. $this->addField($field);
  30. }
  31. }