mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-19 11:28:41 +00:00
29 lines
952 B
PHP
29 lines
952 B
PHP
<?php
|
|
$question = $this->getData('question');
|
|
$answers = $question->getAnswers();
|
|
|
|
echo $this->getData('nav')->render();
|
|
?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<section class="box wf-100">
|
|
<header><h1><?= $this->printHtml($question->getName()); ?></h1></header>
|
|
<div class="inner">
|
|
<?= $this->printHtml($question->getQuestion()); ?>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<?php foreach ($answers as $answer) : ?>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<section class="box wf-100">
|
|
<div class="inner">
|
|
<?= $this->printHtml($answer->getAnswer()); ?><?= $this->printHtml($answer->getCreatedAt()->format('Y-m-d')); ?><?= $this->printHtml($answer->getCreatedBy()); ?><?= $this->printHtml($answer->getStatus()); ?><?= $this->printHtml($answer->isAccepted()); ?>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|