Browse Source

test use sections

andre 3 months ago
parent
commit
eb36913a36

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

@@ -37,7 +37,9 @@ class InfoForm extends SortedFieldForm implements ClientArea
             <div id="addalertheader" class="lu-alert--lg"></div>';
 
         $this->addSection(new GeneralSection());
-        $this->addSection(new AdditionalSection());
+        $additionalSection = new AdditionalSection();
+        $additionalSection->addInternalAlert('Test9');
+        $this->addSection($additionalSection);
 
     }
 }

+ 0 - 2
app/UI/Client/Setting/Sections/AdditionalSection.php

@@ -24,8 +24,6 @@ class AdditionalSection extends FreeFieldsSection
 
     public function initContent()
     {
-        $this->setInternalAlertMessage('Test8');
-        $this->setInternalAlertMessageRaw(true);
         $sigdescr = new BaseField('Test5');
         $sigdescr->setPlaceholder('Test7');
         $this->generateDoubleSection([$sigdescr, new Text('test2')]);