EditAdditionalSection.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\UI\Client\Ressource\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: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('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. }