From 033f42a9ee3ee46bc8f9bf453edace8c74ebe4c3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 12 Dec 2020 18:24:38 +0100 Subject: [PATCH] improve tpl layout --- Models/QAQuestion.php | 8 ++++++++ Theme/Backend/qa-question.tpl.php | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Models/QAQuestion.php b/Models/QAQuestion.php index 66894a8..2768813 100755 --- a/Models/QAQuestion.php +++ b/Models/QAQuestion.php @@ -60,6 +60,14 @@ class QAQuestion implements \JsonSerializable */ public string $question = ''; + /** + * Question. + * + * @var string + * @since 1.0.0 + */ + public string $questionRaw = ''; + /** * Category. * diff --git a/Theme/Backend/qa-question.tpl.php b/Theme/Backend/qa-question.tpl.php index eee588d..df2a9d8 100755 --- a/Theme/Backend/qa-question.tpl.php +++ b/Theme/Backend/qa-question.tpl.php @@ -22,9 +22,9 @@ echo $this->getData('nav')->render();
-
-

printHtml($question->name); ?>

-
+
+
printHtml($question->name); ?>
+
printHtml($question->question); ?>
@@ -39,8 +39,8 @@ echo $this->getData('nav')->render();
-
-
+
+
printHtml($answer->getAnswer()); ?>printHtml($answer->createdAt->format('Y-m-d')); ?>createdBy->getId(); ?>getStatus(); ?>printHtml((string) $answer->isAccepted()); ?>