From 7e65956da7d695cb7b07c3c79703ed8097267fb4 Mon Sep 17 00:00:00 2001 From: Charles Delachapelle Evarisk Date: Mon, 28 Oct 2024 10:15:23 +0100 Subject: [PATCH] #1893 [Control] add: progress bar of different colors --- view/control/control_card.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/view/control/control_card.php b/view/control/control_card.php index 19ba3012..b298cc5b 100644 --- a/view/control/control_card.php +++ b/view/control/control_card.php @@ -896,7 +896,18 @@
-
+ 0 ? $answerCounter . '/' . $questionCounter : 0) . '">
'); + } + if ($percentage > 0 && $percentage < 100) { + print ('
'); + } + if ($percentage == 100) { + print ('
'); + } + ?>
conf->DIGIQUALI_SHOW_ONLY_QUESTIONS_WITH_NO_ANSWER ? img_picto($langs->trans('Enabled'), 'switch_on', 'class="show-only-questions-with-no-answer marginrightonly"') : img_picto($langs->trans('Disabled'), 'switch_off', 'class="show-only-questions-with-no-answer marginrightonly"');