AntonLV 8 лет назад
Родитель
Сommit
db91dfc324
2 измененных файлов с 8 добавлено и 2 удалено
  1. 6 0
      template/css/forms.css
  2. 2 2
      template/scripts/BxBaseFormView.php

+ 6 - 0
template/css/forms.css

@@ -42,6 +42,12 @@
     cursor:pointer;
 }
 
+.bx-form-section-header span {
+	white-space: nowrap;
+	text-transform: none;
+	font-size: 0.75rem;
+}
+
 .bx-form-section-hidden .bx-form-section-content {
     display:none;
 }

+ 2 - 2
template/scripts/BxBaseFormView.php

@@ -567,9 +567,9 @@ BLAH;
 
 
         if (isset($this->aParams['view_mode']) && $this->aParams['view_mode'])
-            $sLegend = '<legend class="bx-def-padding-left bx-def-padding-sec-right bx-def-font-grayed bx-def-font-h3">' . bx_process_output($aInput['caption']) . '</legend>';
+            $sLegend = '<legend class="bx-def-padding-left bx-def-padding-sec-right bx-def-font-grayed bx-def-font-h3">' . bx_process_output($aInput['caption']) . (!empty($aInput['info']) ? '<br /><span>' . bx_process_output($aInput['info']) . '</span>' : '') . '</legend>';
         else
-            $sLegend = '<legend class="bx-def-padding-left bx-def-padding-sec-right bx-def-font-grayed bx-def-font-h3"><a href="javascript:void(0);">' . bx_process_output($aInput['caption']) . '</a></legend>';
+            $sLegend = '<legend class="bx-def-padding-left bx-def-padding-sec-right bx-def-font-grayed bx-def-font-h3"><a href="javascript:void(0);">' . bx_process_output($aInput['caption']) . '</a>' . (!empty($aInput['info']) ? '<br /><span>' . bx_process_output($aInput['info']) . '</span>' : '') . '</legend>';
 
         $sCode .= $this->{$this->_sSectionOpen}($aAttrs, $sLegend);