Jelajahi Sumber

Merge branch 'master' of https://github.com/unaio/una

AntonLV 2 tahun lalu
induk
melakukan
7864da2f64
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      template/scripts/BxBaseFormView.php

+ 4 - 2
template/scripts/BxBaseFormView.php

@@ -2283,7 +2283,7 @@ BLAH;
         }
     }
 
-    function getOpenSectionViewMode($aAttrs = array(), $sTitle = '')
+    function getOpenSectionViewMode($aAttrs = array(), $sTitle = '', $aWrapperAttrs = [])
     {
         if (!$this->_isSectionOpened) {
 
@@ -2297,9 +2297,11 @@ BLAH;
 
             $sAttrs = bx_convert_array2attrs($aAttrs, "bx-form-section bx-form-view-section bx-def-padding-sec-top bx-def-border-top " . $sClassesAdd);
 
+            $sWrapperAttrs = bx_convert_array2attrs($aWrapperAttrs, "bx-form-section-wrapper bx-def-margin-top");
+
             $this->_isSectionOpened = true;
 
-            return "<!-- form header content begins -->\n <div class=\"bx-form-section-wrapper bx-def-margin-top\"> <div $sAttrs> $sTitle <div class=\"bx-form-section-content bx-def-padding-top\">\n";
+            return "<!-- form header content begins -->\n <div $sWrapperAttrs> <div $sAttrs> $sTitle <div class=\"bx-form-section-content bx-def-padding-top\">\n";
 
         } else {