mirror of
https://github.com/Karaka-Management/oms-QA.git
synced 2026-01-26 14:38:41 +00:00
48 lines
1.4 KiB
PHP
Executable File
48 lines
1.4 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package Modules\QA
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
use phpOMS\Uri\UriFactory;
|
|
|
|
$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->name); ?></h1></header>
|
|
<div class="inner">
|
|
<?= $this->printHtml($question->question); ?>
|
|
</div>
|
|
<div class="inner">
|
|
<img alt="<?= $this->getHtml('AccountImage', '0', '0'); ?>" loading="lazy" src="<?= UriFactory::build('{/prefix}' . $question->createdBy->image->getPath()); ?>">
|
|
</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->createdBy->getId()); ?><?= $this->printHtml($answer->getStatus()); ?><?= $this->printHtml($answer->isAccepted()); ?>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|