Browse Source

test use sections

andre 3 months ago
parent
commit
107a2d3edf
1 changed files with 10 additions and 5 deletions
  1. 10 5
      app/UI/Client/Setting/Sections/GeneralSection.php

+ 10 - 5
app/UI/Client/Setting/Sections/GeneralSection.php

@@ -26,11 +26,16 @@ class GeneralSection extends FreeFieldsSection
 
     public function initContent()
     {
-        $row = new InputGroup('MX');
-        $row->addInputComponent((new Text('mxthurdata'))->addHtmlAttribute('readonly','true')->setDescription('description'));
-        $row->addInputAddon('', false, '⇔');
-        $row->addInputComponent((new InputGroupElements\Text('mxactive'))->addHtmlAttribute('readonly','true'));
-        $this->addSection($row);
+        $mxthurdata = new Text('mxthurdata');
+        $mxthurdata->addHtmlAttribute('readonly','true');
+        $mxthurdata->setDescription('description');
+        
+        $mxactive = new Text('mxactive');
+        $mxactive->addHtmlAttribute('readonly','true');
+        $mxactive->setDescription('description');
+
+        $this->generateDoubleSection([$mxthurdata, $mxactive]);
+
         $row = new InputGroup('SPF');
         $row->addInputComponent((new InputGroupElements\Text('spfthurdata'))->addHtmlAttribute('readonly','true'));
         $row->addInputAddon('', false, '⇔');