diff --git a/pandora_console/include/functions_notifications.php b/pandora_console/include/functions_notifications.php index 45e08dfcf6..1a70a63f63 100644 --- a/pandora_console/include/functions_notifications.php +++ b/pandora_console/include/functions_notifications.php @@ -699,45 +699,6 @@ function notifications_print_global_source_configuration($source) $source['id'] ); $html_selectors .= ''; - // Generate the checkboxes and time select. - $html_checkboxes = "
"; - $html_checkboxes .= ' '; - $html_checkboxes .= html_print_checkbox_extended('all-'.$source['id'], 1, $is_group_all, false, '', 'class= "elem-clickable"', true, 'id="nt-'.$source['id'].'-all_users"'); - $html_checkboxes .= __('Notify all users'); - $html_checkboxes .= '
'; - $html_checkboxes .= html_print_checkbox_extended('mail-'.$source['id'], 1, $source['also_mail'], false, '', 'class= "elem-clickable"', true, 'id="nt-'.$source['id'].'-also_mail"'); - $html_checkboxes .= __('Also email users with notification content'); - $html_checkboxes .= '
'; - $html_checkboxes .= html_print_checkbox_extended('user-'.$source['id'], 1, $source['user_editable'], false, '', 'class= "elem-clickable"', true, 'id="nt-'.$source['id'].'-user_editable"'); - $html_checkboxes .= __('Users can modify notification preferences'); - $html_checkboxes .= ' '; - $html_checkboxes .= '
'; - - // Generate the select with the time. - $html_select_pospone = __('Users can postpone notifications up to'); - // FIXMEit should not be disabled. - $html_select_pospone .= html_print_select( - [ - SECONDS_5MINUTES => __('5 minutes'), - SECONDS_15MINUTES => __('15 minutes'), - SECONDS_12HOURS => __('12 hours'), - SECONDS_1DAY => __('1 day'), - SECONDS_1WEEK => __('1 week'), - SECONDS_15DAYS => __('15 days'), - SECONDS_1MONTH => __('1 month'), - NOTIFICATIONS_POSTPONE_FOREVER => __('forever'), - ], - 'nt-'.$source['id'].'-max_postpone_time', - $source['max_postpone_time'], - '', - '', - 0, - true, - false, - true, - 'elem-changeable', - true - ); // Return all html. return $html_title.$html_selectors.$html_checkboxes.$html_select_pospone;