Add bulk deletion for saved test results
This commit is contained in:
@@ -4,6 +4,7 @@ defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
HTMLHelper::_('behavior.multiselect');
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_testquestions&view=results'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<div class="row mb-3">
|
||||
@@ -53,6 +54,7 @@ use Joomla\CMS\Router\Route;
|
||||
</div>
|
||||
<table class="table table-striped">
|
||||
<thead><tr>
|
||||
<th class="w-1"><?php echo HTMLHelper::_('grid.checkall'); ?></th>
|
||||
<th><?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_RESULT_PARTICIPANT'); ?></th>
|
||||
<th><?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_SET_TITLE'); ?></th>
|
||||
<th><?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_RESULT_POINTS_BEFORE_AFTER'); ?></th>
|
||||
@@ -62,8 +64,9 @@ use Joomla\CMS\Router\Route;
|
||||
<th><?php echo \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_RESULT_AI_TOKENS'); ?></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $item) : ?>
|
||||
<?php foreach ($this->items as $i => $item) : ?>
|
||||
<tr class="<?php echo (int) $item->extra_time > 0 ? 'table-warning' : ''; ?>">
|
||||
<td><?php echo HTMLHelper::_('grid.id', $i, $item->id); ?></td>
|
||||
<th><a href="<?php echo Route::_('index.php?option=com_testquestions&view=result&id=' . (int) $item->id); ?>"><?php echo $this->escape($item->participant_name); ?></a></th>
|
||||
<td><?php echo $this->escape(($item->subject_title ? $item->subject_title . ' — ' : '') . $item->set_title); ?></td>
|
||||
<?php $pointsTotal = (int) $item->points_total ?: (int) $item->total_count; ?>
|
||||
@@ -96,6 +99,7 @@ use Joomla\CMS\Router\Route;
|
||||
</tbody>
|
||||
</table>
|
||||
<?php echo $this->pagination->getListFooter(); ?>
|
||||
<input type="hidden" name="boxchecked" value="0">
|
||||
<input type="hidden" name="task" value="">
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user