Update voicemails.php (#6952)
This commit is contained in:
parent
808e2cbe66
commit
4e06ce8c14
|
|
@ -52,12 +52,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
echo " <div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 20px;' onclick=\"$('#hud_voicemail_details').slideToggle('fast');\">\n";
|
||||
echo " <span class='hud_title' style='color: ".$dashboard_heading_text_color.";' onclick=\"document.location.href='".PROJECT_PATH."/app/voicemails/voicemail_messages.php'\">".$text['label-new_messages']."</span>";
|
||||
|
||||
if ($dashboard_chart_type == "doughnut") {
|
||||
//add doughnut chart
|
||||
?>
|
||||
<div style='display: flex; flex-wrap: wrap; justify-content: center; padding-bottom: 20px;' onclick="$('#hud_voicemail_details').slideToggle('fast');">
|
||||
<canvas id='new_messages_chart' width='175px' height='175px'></canvas>
|
||||
</div>
|
||||
<div style='height: 143px;'><canvas id='new_messages_chart'></canvas></div>
|
||||
|
||||
<script>
|
||||
const new_messages_chart = new Chart(
|
||||
|
|
@ -79,10 +80,6 @@
|
|||
plugins: {
|
||||
chart_number: {
|
||||
text: '<?php echo $messages['new']; ?>'
|
||||
},
|
||||
title: {
|
||||
text: '<?php echo $text['label-new_messages']; ?>',
|
||||
color: '<?php echo $dashboard_heading_text_color; ?>'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -102,6 +99,11 @@
|
|||
);
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
if ($dashboard_chart_type == "none") {
|
||||
echo " <span class='hud_stat' style='color: ".$dashboard_number_text_color.";' onclick=\"$('#hud_voicemail_details').slideToggle('fast');\">".$messages['new']."</span>";
|
||||
}
|
||||
echo " </div>\n";
|
||||
|
||||
echo "<div class='hud_details hud_box' id='hud_voicemail_details'>";
|
||||
if (sizeof($voicemails) > 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue