Show all exam questions

This commit is contained in:
Wojtek
2026-10-15 12:28:00 +02:00
parent 9742c273de
commit 27f37e8500
5 changed files with 4 additions and 6 deletions
@@ -40,10 +40,6 @@ use Joomla\CMS\HTML\HTMLHelper;
<?php if ($item->image) : ?>
<img src="<?php echo htmlspecialchars($item->image, ENT_QUOTES, 'UTF-8'); ?>" alt="" loading="lazy">
<?php endif; ?>
<p class="small text-muted">
<?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_TIME_LIMIT'); ?>: <?php echo (int) $item->time_limit; ?> s |
<?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_POINTS'); ?>: <?php echo (int) $item->points; ?>
</p>
<?php if ($item->question_type === 'open') : ?>
<label for="answer-<?php echo (int) $number; ?>"><?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_ENTER_ANSWER'); ?></label>
<input type="text" id="answer-<?php echo (int) $number; ?>" name="answers[<?php echo (int) $item->id; ?>]" class="form-control" value="<?php echo $this->results ? htmlspecialchars($this->results['items'][$item->id]['selected'], ENT_QUOTES, 'UTF-8') : ''; ?>">