Beautifies the user groups user group option type
authorMatthias Schmidt <gravatronics@live.com>
Thu, 8 Sep 2011 21:12:13 +0000 (23:12 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 8 Sep 2011 21:12:13 +0000 (23:12 +0200)
wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php

index 1c53a47fbcc74c14fe91de0271664ac6cd291f2e..bd68f6e72e05bf0486859360f6966620ce846068 100644 (file)
@@ -28,12 +28,12 @@ class UserGroupsUserGroupOptionType extends AbstractOptionType implements IUserG
                $groups = UserGroup::getGroupsByType();
                
                // generate html
-               $html = '';
+               $html = '<fieldset><dl><dd>';
                foreach ($groups as $group) {
                        $html .= '<label><input type="checkbox" name="values['.StringUtil::encodeHTML($option->optionName).'][]" value="'.$group->groupID.'" '.(in_array($group->groupID, $selectedGroups) ? 'checked="checked" ' : '').'/> '.StringUtil::encodeHTML($group->groupName).'</label>';
                }
                
-               return $html;
+               return $html.'</dd></dl></fieldset>';
        }
        
        /**