From 14f2eec18d7e0c703e42dfa6c036292aea65c413 Mon Sep 17 00:00:00 2001 From: Wojtek Date: Sat, 17 Oct 2026 12:46:50 +0200 Subject: [PATCH] Add PDF print button to result details --- README.md | 2 +- .../language/en-GB/com_testquestions.ini | 1 + .../sql/updates/mysql/1.43.35.sql | 1 + .../com_testquestions/tmpl/result/default.php | 26 +++++++++++++++++++ com_testquestions.xml | 2 +- 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.43.35.sql diff --git a/README.md b/README.md index dcdd65b..680aa1d 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.34). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.43.35). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini b/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini index 1f30f14..5356a14 100644 --- a/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini +++ b/administrator/components/com_testquestions/language/en-GB/com_testquestions.ini @@ -131,6 +131,7 @@ COM_TESTQUESTIONS_RESULT_SCORE="Wynik" COM_TESTQUESTIONS_RESULT_POINTS_BEFORE_AFTER="Punkty przed / po korekcie" COM_TESTQUESTIONS_RESULT_GRADE="Ocena" COM_TESTQUESTIONS_RESULT_NOT_ASSESSED="Nie sprawdzono" +COM_TESTQUESTIONS_RESULT_GENERATE_PDF="Generuj PDF / drukuj" COM_TESTQUESTIONS_RESULT_DATE="Data zakończenia" COM_TESTQUESTIONS_RESULT_ANSWERS="Odpowiedzi" COM_TESTQUESTIONS_RESULT_EXECUTION_TIME="Czas wykonania" diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.43.35.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.43.35.sql new file mode 100644 index 0000000..3e029a5 --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.43.35.sql @@ -0,0 +1 @@ +-- Brak zmian w schemacie bazy danych w wersji 1.43.35. diff --git a/administrator/components/com_testquestions/tmpl/result/default.php b/administrator/components/com_testquestions/tmpl/result/default.php index 0b679aa..7008436 100644 --- a/administrator/components/com_testquestions/tmpl/result/default.php +++ b/administrator/components/com_testquestions/tmpl/result/default.php @@ -14,6 +14,32 @@ $resolveImageUrl = static function ($path) { }; ?>
+
+ +
+ +
item->extra_time > 0 ? ' style="background-color: #fff3cd;"' : ''; ?>>
diff --git a/com_testquestions.xml b/com_testquestions.xml index 5685ac2..03511d0 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.34 + 1.43.35 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions