From 18574741bee5da13dc5bcd8421991529924e0eec Mon Sep 17 00:00:00 2001 From: Wojtek Date: Thu, 15 Oct 2026 17:28:55 +0200 Subject: [PATCH] Keep correct answer marker inline --- README.md | 2 +- .../sql/updates/mysql/1.12.3.sql | 1 + .../com_testquestions/tmpl/set/edit.php | 16 ++++++++-------- com_testquestions.xml | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 administrator/components/com_testquestions/sql/updates/mysql/1.12.3.sql diff --git a/README.md b/README.md index 1b84c4c..47cf30f 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,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.12.2). +W Joomla wybierz **System → Install → Install from Folder** i wskaż ten katalog. Manifestem instalacyjnym jest `com_testquestions.xml` (wersja 1.12.3). Po instalacji komponent jest dostępny w panelu administratora jako **Pytania testowe**. diff --git a/administrator/components/com_testquestions/sql/updates/mysql/1.12.3.sql b/administrator/components/com_testquestions/sql/updates/mysql/1.12.3.sql new file mode 100644 index 0000000..ec6b09e --- /dev/null +++ b/administrator/components/com_testquestions/sql/updates/mysql/1.12.3.sql @@ -0,0 +1 @@ +-- No database changes required for version 1.12.3. diff --git a/administrator/components/com_testquestions/tmpl/set/edit.php b/administrator/components/com_testquestions/tmpl/set/edit.php index dc29d29..d9285e6 100644 --- a/administrator/components/com_testquestions/tmpl/set/edit.php +++ b/administrator/components/com_testquestions/tmpl/set/edit.php @@ -33,10 +33,10 @@ HTMLHelper::_('behavior.formvalidator'); question_type === 'open') : ?>
: escape($question->answer_open); ?>
-
A:answer_a; ?>correct_answer === 1 ? ' ✓' : ''; ?>
-
B:answer_b; ?>correct_answer === 2 ? ' ✓' : ''; ?>
-
C:answer_c; ?>correct_answer === 3 ? ' ✓' : ''; ?>
-
D:answer_d; ?>correct_answer === 4 ? ' ✓' : ''; ?>
+
A:correct_answer === 1) : ?>✓answer_a; ?>
+
B:correct_answer === 2) : ?>✓answer_b; ?>
+
C:correct_answer === 3) : ?>✓answer_c; ?>
+
D:correct_answer === 4) : ?>✓answer_d; ?>
@@ -70,10 +70,10 @@ HTMLHelper::_('behavior.formvalidator'); question_type === 'open') : ?>
: escape($question->answer_open); ?>
-
A:answer_a; ?>correct_answer === 1 ? ' ✓' : ''; ?>
-
B:answer_b; ?>correct_answer === 2 ? ' ✓' : ''; ?>
-
C:answer_c; ?>correct_answer === 3 ? ' ✓' : ''; ?>
-
D:answer_d; ?>correct_answer === 4 ? ' ✓' : ''; ?>
+
A:correct_answer === 1) : ?>✓answer_a; ?>
+
B:correct_answer === 2) : ?>✓answer_b; ?>
+
C:correct_answer === 3) : ?>✓answer_c; ?>
+
D:correct_answer === 4) : ?>✓answer_d; ?>
diff --git a/com_testquestions.xml b/com_testquestions.xml index 660fb14..b705192 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.12.2 + 1.12.3 COM_TESTQUESTIONS_DESCRIPTION com_testquestions Komponent\Component\Testquestions