浏览代码

test use sections

andre 3 月之前
父节点
当前提交
4cec0f201b
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      app/UI/Client/Setting/Forms/InfoForm.php

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

@@ -9,6 +9,7 @@ use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Forms\SortedFieldForm;
 use ThurData\Servers\KerioEmail\App\UI\Client\Setting\Sections\AdditionalSection;
 use ThurData\Servers\KerioEmail\App\UI\Client\Setting\Sections\GeneralSection;
 use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\FormConstants;
+use function ThurData\Servers\KerioEmail\Core\Helper\di;
 
 class InfoForm extends SortedFieldForm implements ClientArea
 {
@@ -31,7 +32,12 @@ class InfoForm extends SortedFieldForm implements ClientArea
 
     private function initFields()
     {
-        $this->addSection(new GeneralSection());
+        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>';
+        $section = new GeneralSection();
+        $sectionaddInternalAlert($message, null, 100);
+        $this->addSection($section);
         $this->addSection(new AdditionalSection());
 
     }