| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace ThurData\Servers\KerioEmail\App\UI\Client\Setting\Sections;
- use ThurData\Servers\KerioEmail\App\Traits\FormExtendedTrait;
- use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
- use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
- /**
- *
- * Created by PhpStorm.
- * User: ThurData
- * Date: 12.11.19
- * Time: 13:42
- * Class AdditionalSection
- */
- class AdditionalSection extends FreeFieldsSection
- {
- protected $id = 'additionalSection';
- protected $name = 'additionalSection';
- use FormExtendedTrait;
- public function initContent()
- {
- $dkimsigenabled = new Switcher('blubb');
- // $dkimsigenabled->addHtmlAttribute('disabled', true);
- $dkimsigenabled->setDefaultValue("on");
- $this->generateDoubleSection([$dkimsigenabled]);
- $tfaenabled = new Switcher('tfaenabled');
- $tfaenabled->addHtmlAttribute('disabled', true);
- $this->generateDoubleSection([$tfaenabled]);
- }
- }
|