mirror of
https://github.com/Karaka-Management/oms-Workflow.git
synced 2026-01-10 14:28:40 +00:00
48 lines
1.6 KiB
PHP
Executable File
48 lines
1.6 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package Modules\Workflow
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
*/
|
|
$instances = $this->data['instances'] ?? [];
|
|
|
|
echo $this->data['nav']->render(); ?>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<section class="portlet">
|
|
<div class="portlet-head"><?= $this->getHtml('Instances'); ?><i class="g-icon download btn end-xs">download</i></div>
|
|
<table class="default sticky">
|
|
<thead>
|
|
<td><?= $this->getHtml('Date'); ?>
|
|
<td><?= $this->getHtml('Status'); ?>
|
|
<td class="wf-100"><?= $this->getHtml('Title'); ?>
|
|
<tbody>
|
|
<?php
|
|
$c = 0;
|
|
foreach ($instances as $key => $instance) : ++$c;
|
|
$url = \phpOMS\Uri\UriFactory::build('{/base}/workflow/instance/view?{?}&id=' . $instance->id);
|
|
?>
|
|
<tr data-href="<?= $url; ?>">
|
|
<td><a href="<?= $url; ?>"><?= $instance->createdAt->format('Y-m-d H:i:s'); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->getHtml(':istatus-' . $instance->status); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($instance->template->name); ?></a>
|
|
<?php endforeach; if ($c == 0) : ?>
|
|
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</section>
|
|
</div>
|
|
</div>
|