Add preview toolbar navigation for sets
This commit is contained in:
@@ -30,6 +30,6 @@ Szkielet komponentu Joomla 6 do gromadzenia pytań testowych.
|
|||||||
|
|
||||||
## Instalacja
|
## Instalacja
|
||||||
|
|
||||||
W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.16).
|
W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.17).
|
||||||
|
|
||||||
Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**.
|
Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**.
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
-- Wydanie 1.43.17: zmieniono przyciski paska narzędzi podglądu zestawu.
|
||||||
@@ -29,13 +29,25 @@ class HtmlView extends BaseHtmlView
|
|||||||
'media/com_testquestions/egzamin.css'
|
'media/com_testquestions/egzamin.css'
|
||||||
);
|
);
|
||||||
ToolbarHelper::title(Text::_('COM_TESTQUESTIONS_PREVIEW_TITLE'));
|
ToolbarHelper::title(Text::_('COM_TESTQUESTIONS_PREVIEW_TITLE'));
|
||||||
ToolbarHelper::link(
|
|
||||||
$this->set
|
if ($this->set) {
|
||||||
? Route::_('index.php?option=com_testquestions&task=set.edit&id=' . (int) $this->set->id)
|
ToolbarHelper::link(
|
||||||
: Route::_('index.php?option=com_testquestions&view=questions'),
|
Route::_('index.php?option=com_testquestions&view=sets'),
|
||||||
$this->set ? 'COM_TESTQUESTIONS_EDIT_SET' : 'COM_TESTQUESTIONS',
|
'COM_TESTQUESTIONS_SETS',
|
||||||
'arrow-left'
|
'arrow-left'
|
||||||
);
|
);
|
||||||
|
ToolbarHelper::link(
|
||||||
|
Route::_('index.php?option=com_testquestions&task=set.edit&id=' . (int) $this->set->id),
|
||||||
|
'COM_TESTQUESTIONS_EDIT_SET',
|
||||||
|
'edit'
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
ToolbarHelper::link(
|
||||||
|
Route::_('index.php?option=com_testquestions&view=questions'),
|
||||||
|
'COM_TESTQUESTIONS',
|
||||||
|
'arrow-left'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return parent::display($tpl);
|
return parent::display($tpl);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<creationDate>2026-10-14</creationDate>
|
<creationDate>2026-10-14</creationDate>
|
||||||
<author>Komponent</author>
|
<author>Komponent</author>
|
||||||
<license>GNU General Public License version 2 or later</license>
|
<license>GNU General Public License version 2 or later</license>
|
||||||
<version>1.43.16</version>
|
<version>1.43.17</version>
|
||||||
<description>COM_TESTQUESTIONS_DESCRIPTION</description>
|
<description>COM_TESTQUESTIONS_DESCRIPTION</description>
|
||||||
<element>com_testquestions</element>
|
<element>com_testquestions</element>
|
||||||
<namespace path="src">Komponent\Component\Testquestions</namespace>
|
<namespace path="src">Komponent\Component\Testquestions</namespace>
|
||||||
|
|||||||
Reference in New Issue
Block a user