- Another fix to hide empty tabs
| | |
| | | } |
| | | |
| | | // wrap rows in fieldgroup container |
| | | $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')), |
| | | ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') . |
| | | $rows); |
| | | if ($rows) { |
| | | $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')), |
| | | ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') . |
| | | $rows); |
| | | } |
| | | } |
| | | |
| | | if (!$content) |