diff --git a/pandora_console/include/functions_profile.php b/pandora_console/include/functions_profile.php index 94127b5d2f..5132817588 100644 --- a/pandora_console/include/functions_profile.php +++ b/pandora_console/include/functions_profile.php @@ -181,7 +181,7 @@ function profile_delete_profile_and_clean_users($id_profile) * @param int User id * @param bool Show the tags select or not */ -function profile_print_profile_table($id, $json_profile=false, $return=false) +function profile_print_profile_table($id, $json_profile=false, $return=false, $create_user=false) { global $config; @@ -296,12 +296,26 @@ function profile_print_profile_table($id, $json_profile=false, $return=false) $data['hierarchy'] = $profile['no_hierarchy'] ? __('Yes') : __('No'); - $data['actions'] = '
'; + if ($create_user) { + $data['actions'] .= html_print_input_image( + 'del', + 'images/cross.png', + 1, + '', + true, + [ + 'onclick' => 'delete_profile(event, this)', + 'class' => 'invert_filter', + ] + ); + } else { + $data['actions'] = ''; + } array_push($table->data, $data); }