AdditionalSection.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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\Switcher;
  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. $dkimsigenabled = new Switcher('blubb');
  23. // $dkimsigenabled->addHtmlAttribute('disabled', true);
  24. $dkimsigenabled->setDefaultValue("on");
  25. $this->generateDoubleSection([$dkimsigenabled]);
  26. $tfaenabled = new Switcher('tfaenabled');
  27. $tfaenabled->addHtmlAttribute('disabled', true);
  28. $this->generateDoubleSection([$tfaenabled]);
  29. }
  30. }