'auto', 'relative' => true)); } // Build heading $table_head = ''; if (!empty($groupByFieldset)) { foreach ($tmpl->getFieldsets() as $fieldset) { $table_head .= '' . JText::_($fieldset->label); if ($fieldset->description) { $table_head .= '
' . JText::_($fieldset->description) . ''; } $table_head .= ''; } $sublayout = 'section-byfieldsets'; } else { foreach ($tmpl->getGroup('') as $field) { $table_head .= '' . strip_tags($field->label); if ($field->description) { $table_head .= '
' . JText::_($field->description) . ''; } $table_head .= ''; } $sublayout = 'section'; // Label will not be shown for sections layout, so reset the margin left JFactory::getDocument()->addStyleDeclaration( '.subform-table-sublayout-section .controls { margin-left: 0px }' ); } ?>
$form): echo $this->sublayout( $sublayout, array( 'form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons, 'unique_subform_id' => $unique_subform_id, ) ); endforeach; ?>