Add configurable subjects to question sets

This commit is contained in:
Wojtek
2026-10-15 16:53:06 +02:00
parent c59bfb2813
commit 5ae5c6f277
21 changed files with 255 additions and 3 deletions
@@ -0,0 +1,26 @@
<?php
namespace Komponent\Component\Testquestions\Administrator\View\Subject;
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Toolbar\ToolbarHelper;
class HtmlView extends BaseHtmlView
{
protected $form;
protected $item;
public function display($tpl = null)
{
$this->form = $this->get('Form');
$this->item = $this->get('Item');
ToolbarHelper::title($this->item->id ? Text::_('COM_TESTQUESTIONS_EDIT_SUBJECT') : Text::_('COM_TESTQUESTIONS_NEW_SUBJECT'));
ToolbarHelper::save('subject.save', 'JTOOLBAR_SAVE');
ToolbarHelper::cancel('subject.cancel', 'JTOOLBAR_CANCEL');
return parent::display($tpl);
}
}