Add bulk deletion for saved test results
This commit is contained in:
@@ -8,6 +8,7 @@ use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
|
||||
use Joomla\CMS\Toolbar\ToolbarHelper;
|
||||
use Joomla\CMS\Factory;
|
||||
|
||||
class HtmlView extends BaseHtmlView
|
||||
{
|
||||
@@ -25,6 +26,9 @@ class HtmlView extends BaseHtmlView
|
||||
$this->sets = $this->get('Sets');
|
||||
$this->aiUsageTotals = $this->get('AiUsageTotals');
|
||||
ToolbarHelper::title(Text::_('COM_TESTQUESTIONS_RESULTS'));
|
||||
if (Factory::getApplication()->getIdentity()->authorise('core.delete', 'com_testquestions')) {
|
||||
ToolbarHelper::deleteList('', 'results.delete', 'JTOOLBAR_DELETE');
|
||||
}
|
||||
ToolbarHelper::link('index.php?option=com_testquestions&view=sets', 'COM_TESTQUESTIONS_SETS', 'back');
|
||||
|
||||
return parent::display($tpl);
|
||||
|
||||
Reference in New Issue
Block a user