Selaa lähdekoodia

test use sections

andre 3 kuukautta sitten
vanhempi
commit
1e19ca215a
1 muutettua tiedostoa jossa 30 lisäystä ja 15 poistoa
  1. 30 15
      app/UI/Client/Setting/Sections/GeneralSection.php

+ 30 - 15
app/UI/Client/Setting/Sections/GeneralSection.php

@@ -36,21 +36,36 @@ class GeneralSection extends FreeFieldsSection
 
         $this->generateDoubleSection([$mxthurdata, $mxactive]);
 
-        $row = new InputGroup('SPF');
-        $row->addInputComponent((new InputGroupElements\Text('spfthurdata'))->addHtmlAttribute('readonly','true'));
-        $row->addInputAddon('', false, '⇔');
-        $row->addInputComponent((new InputGroupElements\Text('spf'))->addHtmlAttribute('readonly','true'));
-        $this->addSection($row);
-        $row = new InputGroup('DMARC');
-        $row->addInputComponent((new InputGroupElements\Text('dmarcthurdata'))->addHtmlAttribute('readonly','true'));
-        $row->addInputAddon('', false, '⇔');
-        $row->addInputComponent((new InputGroupElements\Text('dmarc'))->addHtmlAttribute('readonly','true'));
-        $this->addSection($row);
-        $row = new InputGroup('DKIM');
-        $row->addInputComponent((new InputGroupElements\Text('dkimthurdata'))->addHtmlAttribute('readonly','true'));
-        $row->addInputAddon('', false, '⇔');
-        $row->addInputComponent((new InputGroupElements\Text('dkim'))->addHtmlAttribute('readonly','true'));
-        $this->addSection($row);
+        $spfthurdata = new Text('spfthurdata');
+        $spfthurdata->addHtmlAttribute('readonly','true');
+        $spfthurdata->setDescription('description');
+
+        $spf = new Text('spf');
+        $spf->addHtmlAttribute('readonly','true');
+        $spf->setDescription('description');
+
+        $this->generateDoubleSection([$spfthurdata, $spf]);
+
+        $dmarcthurdata = new Text('dmarcthurdata');
+        $dmarcthurdata->addHtmlAttribute('readonly','true');
+        $dmarcthurdata->setDescription('description');
+
+        $dmarc = new Text('dmarc');
+        $dmarc->addHtmlAttribute('readonly','true');
+        $dmarc->setDescription('description');
+
+        $this->generateDoubleSection([$dmarcthurdata, $dmarc]);
+
+        $dkimthurdata = new Text('dkimthurdata');
+        $dkimthurdata->addHtmlAttribute('readonly','true');
+        $dkimthurdata->setDescription('description');
+
+        $dkim = new Text('dkim');
+        $dkim->addHtmlAttribute('readonly','true');
+        $dkim->setDescription('description');
+
+        $this->generateDoubleSection([$dkimthurdata, $dkim]);
+
         $this->generateDoubleSection([new Hidden('infomaildomain'), new Hidden('id')]);
         $this->generateDoubleSection([new Hidden('selfdns'), new Hidden('dnsok')]);
     }