improve tpl layout

This commit is contained in:
Dennis Eichhorn 2020-12-12 18:24:38 +01:00
parent 547c6b1b80
commit 033f42a9ee
2 changed files with 13 additions and 5 deletions

View File

@ -60,6 +60,14 @@ class QAQuestion implements \JsonSerializable
*/
public string $question = '';
/**
* Question.
*
* @var string
* @since 1.0.0
*/
public string $questionRaw = '';
/**
* Category.
*

View File

@ -22,9 +22,9 @@ echo $this->getData('nav')->render();
<div class="row">
<div class="col-xs-12">
<section class="box wf-100">
<header><h1><?= $this->printHtml($question->name); ?></h1></header>
<div class="inner">
<section class="portlet">
<div class="portlet-head"><?= $this->printHtml($question->name); ?></div>
<div class="portlet-body">
<?= $this->printHtml($question->question); ?>
</div>
<div class="inner">
@ -39,8 +39,8 @@ echo $this->getData('nav')->render();
<?php foreach ($answers as $answer) : ?>
<div class="row">
<div class="col-xs-12">
<section class="box wf-100">
<div class="inner">
<section class="portlet">
<div class="portlet-body">
<?= $this->printHtml($answer->getAnswer()); ?><?= $this->printHtml($answer->createdAt->format('Y-m-d')); ?><?= $answer->createdBy->getId(); ?><?= $answer->getStatus(); ?><?= $this->printHtml((string) $answer->isAccepted()); ?>
</div>
</section>