mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-27 23:18:39 +00:00
improve tpl layout
This commit is contained in:
parent
547c6b1b80
commit
033f42a9ee
|
|
@ -60,6 +60,14 @@ class QAQuestion implements \JsonSerializable
|
|||
*/
|
||||
public string $question = '';
|
||||
|
||||
/**
|
||||
* Question.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public string $questionRaw = '';
|
||||
|
||||
/**
|
||||
* Category.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user