andre 3 месяцев назад
Родитель
Сommit
c9714d692a

+ 1 - 7
app/UI/Client/Setting/Forms/InfoForm.php

@@ -32,14 +32,8 @@ class InfoForm extends SortedFieldForm implements ClientArea
 
     private function initFields()
     {
-        di('lang')->absoluteT('dnsinfomessage') ? $message = di('lang')->absoluteT('dnsinfomessage') :
-        $message = 'DNS Informations for <b id="infoalertmaildomain" class="lu-alert--lg"></b>
-            <div id="addalertheader" class="lu-alert--lg"></div>';
-
         $this->addSection(new GeneralSection());
-        $additionalSection = new AdditionalSection();
-        $additionalSection->addInternalAlert('Test9');
-        $this->addSection($additionalSection);
+        $this->addSection(new AdditionalSection());
 
     }
 }

+ 3 - 4
app/UI/Client/Setting/Sections/AdditionalSection.php

@@ -4,7 +4,7 @@ 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\BaseField;
+use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Switcher;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Text;
 
 /**
@@ -24,9 +24,8 @@ class AdditionalSection extends FreeFieldsSection
 
     public function initContent()
     {
-        $sigdescr = new BaseField('Test5');
-        $sigdescr->setPlaceholder('Test7');
-        $this->generateDoubleSection([$sigdescr, new Text('test2')]);
+        $sigdescr = new Switcher('test1');
+        $this->generateDoubleSection([new Text('test2'), $sigdescrnew ]);
 
         $this->generateDoubleSection([new Text('test3'), new Text('test4')]);
 

+ 1 - 2
app/UI/Client/Setting/Sections/GeneralSection.php

@@ -58,7 +58,7 @@ class GeneralSection extends FreeFieldsSection
 
         $this->generateDoubleSection([$dmarcthurdata, $dmarc]);
 
-        $dkimthurdata = new Text('dkimthurdata');
+        $dkimthurdata = new Text('dkimname');
         $dkimthurdata->addHtmlAttribute('readonly','true');
         $dkimthurdata->setDescription('description');
 
@@ -68,7 +68,6 @@ class GeneralSection extends FreeFieldsSection
 
         $this->generateDoubleSection([$dkimthurdata, $dkim]);
 
-        $this->generateDoubleSection([new Hidden('dkimname')]);
         $this->generateDoubleSection([new Hidden('infomaildomain'), new Hidden('id')]);
         $this->generateDoubleSection([new Hidden('selfdns'), new Hidden('dnsok')]);
     }