Bladeren bron

test use sections

andre 3 maanden geleden
bovenliggende
commit
57f6d1c512

+ 3 - 1
app/UI/Admin/Templates/custom/modals/modalExtendedTabsEdit.tpl

@@ -28,12 +28,14 @@
                     {/foreach}
                     {/foreach}
                 </ul>
                 </ul>
             </div>
             </div>
-            <div class="lu-modal__body">Blubb5
+            <div class="lu-modal__body">
+                {if $editForm->haveInternalAlertMessage()}
                     <div class="lu-alert {if $editForm->getInternalAlertSize() !== ''}lu-alert--{$editForm->getInternalAlertSize()}{/if} lu-alert--{$editForm->getInternalAlertMessageType()} lu-alert--faded modal-alert-top">
                     <div class="lu-alert {if $editForm->getInternalAlertSize() !== ''}lu-alert--{$editForm->getInternalAlertSize()}{/if} lu-alert--{$editForm->getInternalAlertMessageType()} lu-alert--faded modal-alert-top">
                         <div class="lu-alert__body">
                         <div class="lu-alert__body">
                             {if $editForm->isInternalAlertMessageRaw()|unescape:'html'}{$editForm->getInternalAlertMessage()}{else}{$MGLANG->T($editForm->getInternalAlertMessage())|unescape:'html'}{/if}
                             {if $editForm->isInternalAlertMessageRaw()|unescape:'html'}{$editForm->getInternalAlertMessage()}{else}{$MGLANG->T($editForm->getInternalAlertMessage())|unescape:'html'}{/if}
                         </div>
                         </div>
                     </div>
                     </div>
+                {/if}
                 {if $editForm->getConfirmMessage()}
                 {if $editForm->getConfirmMessage()}
                     {if $editForm->isTranslateConfirmMessage()}
                     {if $editForm->isTranslateConfirmMessage()}
                         {$MGLANG->T($editForm->getConfirmMessage())|unescape:'html'}
                         {$MGLANG->T($editForm->getConfirmMessage())|unescape:'html'}

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

@@ -35,9 +35,8 @@ class InfoForm extends SortedFieldForm implements ClientArea
         di('lang')->absoluteT('dnsinfomessage') ? $message = di('lang')->absoluteT('dnsinfomessage') :
         di('lang')->absoluteT('dnsinfomessage') ? $message = di('lang')->absoluteT('dnsinfomessage') :
         $message = 'DNS Informations for <b id="infoalertmaildomain" class="lu-alert--lg"></b>
         $message = 'DNS Informations for <b id="infoalertmaildomain" class="lu-alert--lg"></b>
             <div id="addalertheader" class="lu-alert--lg"></div>';
             <div id="addalertheader" class="lu-alert--lg"></div>';
-        $section = new GeneralSection();
-        $section->addInternalAlert($message, null, 100);
-        $this->addSection($section);
+
+        $this->addSection(new GeneralSection());
         $this->addSection(new AdditionalSection());
         $this->addSection(new AdditionalSection());
 
 
     }
     }