improve representation of unused credit

This commit is contained in:
osaajani 2021-07-11 21:17:11 +02:00
parent 4e03ce55bd
commit e1c617c3b7
2 changed files with 7 additions and 7 deletions

View file

@ -123,9 +123,9 @@
<h3 class="panel-title"><i class="fa fa-area-chart fa-fw"></i> Activité de la semaine : </h3>
<span style="color: #5CB85C;">SMS envoyés (moyenne = <?php echo $avg_sendeds; ?> par jour).</span><br/>
<span style="color: #EDAB4D">SMS reçus (moyenne = <?php echo $avg_receiveds; ?> par jour).</span>
<?php if ($quota_limit) { ?>
<?php if ($quota_unused) { ?>
<br/>
<span style="color: #d9534f">Limite max de SMS sur la période (<?= $quota_limit; ?>).</span>
<span style="color: #d9534f">Crédits restants : <?= $quota_unused; ?>.</span>
<?php } ?>
</div>
<div class="panel-body">
@ -254,8 +254,8 @@
ykeys: ['sendeds', 'receiveds'],
labels: ['SMS envoyés', 'SMS reçus'],
lineColors: ['#5CB85C', '#EDAB4D'],
goals: [<?php echo $avg_sendeds; ?>, <?php echo $avg_receiveds; ?><?= $quota_limit ? ',' . $quota_limit : ''; ?>],
goalLineColors: ['#5CB85C', '#EDAB4D', '#d9534f'],
goals: [<?php echo $avg_sendeds; ?>, <?php echo $avg_receiveds; ?>],
goalLineColors: ['#5CB85C', '#EDAB4D'],
goalStrokeWidth: 2,
pointSize: 4,
hideHover: 'auto',