Skip to content

Commit

Permalink
fix group block label to account for multi-column form changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Mar 28, 2024
1 parent 691f4c8 commit dad1260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/plugins/block.group.php
Expand Up @@ -36,7 +36,7 @@ function smarty_block_group($params,$content,&$smarty, &$repeat) {
if (!empty($params['id']))
echo '<div id="' . $params['id'] . '">';
if (!empty($params['label']))
echo '<div class="control" style="margin-bottom: 0;padding-bottom: 0;"><label class="'.((bs4()||bs5())?'col-sm-12 ':'').((bs3()|bs4()||bs5())?'control-label':'label').'" style="margin-bottom: 0;padding-bottom: 0;">'.$params['label'].'</label></div>';
echo '<div class="control col-sm-12" style="margin-bottom: 0;padding-bottom: 0;"><label class="'.((bs4()||bs5())?'col-sm-12 ':'').((bs3()|bs4()||bs5())?'control-label':'label').'" style="margin-bottom: 0;padding-bottom: 0;">'.$params['label'].'</label></div>';
$class = !empty($params['class']) ? ' ' . $params['class'] : '';
echo '<div role="group" class="group-controls', $class, '">';
} else {
Expand Down

0 comments on commit dad1260

Please sign in to comment.