소스 검색

test use sections

andre 3 달 전
부모
커밋
57f6d1c512
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 1
      app/UI/Admin/Templates/custom/modals/modalExtendedTabsEdit.tpl
  2. 2 3
      app/UI/Client/Setting/Forms/InfoForm.php

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

@@ -28,12 +28,14 @@
                     {/foreach}
                 </ul>
             </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__body">
                             {if $editForm->isInternalAlertMessageRaw()|unescape:'html'}{$editForm->getInternalAlertMessage()}{else}{$MGLANG->T($editForm->getInternalAlertMessage())|unescape:'html'}{/if}
                         </div>
                     </div>
+                {/if}
                 {if $editForm->getConfirmMessage()}
                     {if $editForm->isTranslateConfirmMessage()}
                         {$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') :
         $message = 'DNS Informations for <b id="infoalertmaildomain" class="lu-alert--lg"></b>
             <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());
 
     }