diff --git a/README.md b/README.md index 6b8f076..0d6d596 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,6 @@ Szkielet komponentu Joomla 6 do gromadzenia pytań testowych. ## 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**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.43.17.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.43.17.sql new file mode 100644 index 0000000..9060233 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.43.17.sql @@ -0,0 +1 @@ +-- Wydanie 1.43.17: zmieniono przyciski paska narzędzi podglądu zestawu. diff --git a/administrator/components/com_testquestions/src/View/Preview/HtmlView.php b/administrator/components/com_testquestions/src/View/Preview/HtmlView.php index 3669ba1..0376b83 100644 --- a/administrator/components/com_testquestions/src/View/Preview/HtmlView.php +++ b/administrator/components/com_testquestions/src/View/Preview/HtmlView.php @@ -29,13 +29,25 @@ class HtmlView extends BaseHtmlView 'media/com_testquestions/egzamin.css' ); ToolbarHelper::title(Text::_('COM_TESTQUESTIONS_PREVIEW_TITLE')); - ToolbarHelper::link( - $this->set - ? Route::_('index.php?option=com_testquestions&task=set.edit&id=' . (int) $this->set->id) - : Route::_('index.php?option=com_testquestions&view=questions'), - $this->set ? 'COM_TESTQUESTIONS_EDIT_SET' : 'COM_TESTQUESTIONS', - 'arrow-left' - ); + + if ($this->set) { + ToolbarHelper::link( + Route::_('index.php?option=com_testquestions&view=sets'), + 'COM_TESTQUESTIONS_SETS', + '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); } diff --git a/com_testquestions.xml b/com_testquestions.xml index b0910fa..562367e 100644 --- a/com_testquestions.xml +++ b/com_testquestions.xml @@ -4,7 +4,7 @@ 2026-10-14 Komponent GNU General Public License version 2 or later - 1.43.16 + 1.43.17 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions