#11965 new view hardening

This commit is contained in:
Daniel Cebrian 2023-09-12 10:45:23 +02:00
parent 2a56b63f2a
commit 1cd5d1b0fa
3 changed files with 31 additions and 22 deletions

View File

@ -4202,8 +4202,7 @@ function ui_print_datatable(array $parameters)
$spinner = '<div id="'.$table_id.'-spinner" class="spinner-fixed"><span></span><span></span><span></span><span></span></div>'; $spinner = '<div id="'.$table_id.'-spinner" class="spinner-fixed"><span></span><span></span><span></span><span></span></div>';
// TODO This widget should take a return: ui_print_info_message($info_msg_arr, '', true) $info_msg = '<div>'.ui_print_info_message($info_msg_arr, '', true).'</div>';
$info_msg = '<div>'.ui_print_info_message($info_msg_arr).'</div>';
$err_msg = '<div id="error-'.$table_id.'"></div>'; $err_msg = '<div id="error-'.$table_id.'"></div>';
$output = $info_msg.$err_msg.$filter.$extra.$spinner.$table.$js; $output = $info_msg.$err_msg.$filter.$extra.$spinner.$table.$js;

View File

@ -498,8 +498,12 @@ function radar_graph(
$chart_data, $chart_data,
$options $options
) { ) {
$chart = get_build_setup_charts('RADAR', $options, $chart_data); if (count($chart_data[0]['data']) > 0) {
return $chart->render(true, true); $chart = get_build_setup_charts('RADAR', $options, $chart_data);
return $chart->render(true, true);
} else {
return graph_nodata_image([]);
}
} }

View File

@ -37,12 +37,12 @@
} }
.col-md-2 { .col-md-2 {
width: 25%; width: 30%;
margin: 10px; margin: 10px;
} }
.col-md-7 { .col-md-7 {
width: 50%; width: 40%;
margin: 10px; margin: 10px;
} }
@ -110,9 +110,13 @@
.custom-filter label { .custom-filter label {
font-size: 13px !important; font-size: 13px !important;
margin-right: 10px;
} }
#time-line-graph {
.time-line { height: 300px;
}
.time-line,
#time-line-graph {
max-height: 300px; max-height: 300px;
} }
.summary_categories { .summary_categories {
@ -120,12 +124,8 @@
margin: 20px; margin: 20px;
} }
#list_total_resume .sorting_asc { .sorting_asc {
background-image: none; background-image: none !important;
}
#list_agents_worse_scoring .sorting_asc {
background-image: none;
} }
#form_list_resume { #form_list_resume {
@ -140,7 +140,6 @@
} }
.dt-buttons { .dt-buttons {
display: flex;
margin-top: 10px; margin-top: 10px;
} }
@ -162,17 +161,14 @@
font-size: 50px; font-size: 50px;
} }
#list_total_failed_wrapper,
#list_agents_worse_scoring_wrapper {
width: 31%;
}
#filter-range-date { #filter-range-date {
width: 90%; width: 90%;
margin: 0 auto; margin: 0 auto;
align-items: flex-end;
} }
#filter-category > div { #filter-category > div,
#filter-group > div {
display: flex; display: flex;
align-items: center; align-items: center;
} }
@ -181,13 +177,23 @@
.col-md-3 { .col-md-3 {
width: 40%; width: 40%;
} }
.col-md-1 {
width: 20%;
}
.col-md-2 {
width: 45%;
}
.col-md-6 { .col-md-6 {
width: 88%; width: 88%;
} }
.col-md-7 {
width: 80%;
}
.resume-audit { .resume-audit {
justify-content: center; justify-content: center;
} }
.time-line { .time-line,
#time-line-graph {
max-height: 230px; max-height: 230px;
} }
} }