diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index ed4addf0..71567f95 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -147,16 +147,17 @@ function admin_user() . page_link_to('admin_user', ['action' => 'save_groups', 'id' => $user_id]) . '" method="post">' . "\n"; $html .= form_csrf(); - $html .= ''; + $html .= '
'; $groups = changeableGroups($my_highest_group, $user_id); foreach ($groups as $group) { - $html .= '
'; + . ' />'; } - $html .= '
selected ? ' checked="checked"' : '') - . ' />' . $group->name . '

'; + $html .= '
'; $html .= '' . "\n"; $html .= ''; diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 468120d4..aab14884 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -372,10 +372,11 @@ function make_select($items, $selected, $name, $title = null, $additionalButtons $html .= buttons($buttons); foreach ($items as $i) { - $htmlItems[] = '
' - . '' + . ' />' . (!isset($i['enabled']) || $i['enabled'] ? '' : icon('book')) . '
'; } diff --git a/includes/sys_form.php b/includes/sys_form.php index ce6258e6..3f18d6b4 100644 --- a/includes/sys_form.php +++ b/includes/sys_form.php @@ -175,9 +175,9 @@ function form_checkbox($name, $label, $selected, $value = 'checked', $html_id = $html_id = $name; } - return '