Skip to content

Commit

Permalink
Merge pull request #1648 from evarisk-micka/fix_ihm_control
Browse files Browse the repository at this point in the history
#1587 [Control] fix: increment answer counter and better display
  • Loading branch information
nicolas-eoxia authored Jan 4, 2024
2 parents 66d70f9 + 1e89c19 commit e02dd80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions view/control/control_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -929,11 +929,10 @@
} ?>

<div class="progress-info">
<span class="badge badge-info" style="margin-right: 10px;">0</span>
<div class="progress-bar">
<span class="badge badge-info" style="margin-right: 10px;"><?php print $answerCounter . '/' . $questionCounter; ?></span>
<div class="progress-bar" style="margin-right: 10px;">
<div class="progress progress-bar-success" style="width:<?php print ($questionCounter > 0 ? ($answerCounter/$questionCounter) * 100 : 0) . '%'; ?>;" title="<?php print ($questionCounter > 0 ? $answerCounter . '/' . $questionCounter : 0); ?>"></div>
</div>
<span class="badge badge-info" style="margin-left: 10px; margin-right: 10px;"><?php print $questionCounter; ?></span>

<?php print $user->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"');
print $form->textwithpicto($user->conf->DIGIQUALI_SHOW_ONLY_QUESTIONS_WITH_NO_ANSWER ? '<i class="fas fa-eye"></i>' : '<i class="fas fa-eye-slash"></i>', $langs->trans('ShowOnlyQuestionsWithNoAnswer'));
Expand Down

0 comments on commit e02dd80

Please sign in to comment.