58 lines
2.1 KiB
Smarty
58 lines
2.1 KiB
Smarty
|
<?php
|
||
|
use oat\tao\helpers\Template;
|
||
|
use oat\taoDelivery\helper\Delivery;
|
||
|
|
||
|
$resumableDeliveries = get_data('resumableDeliveries');
|
||
|
$availableDeliveries = get_data('availableDeliveries');
|
||
|
$warningMessage = get_data('warningMessage');
|
||
|
?>
|
||
|
<main class="test-listing">
|
||
|
|
||
|
<h1><?= __("My Tests"); ?></h1>
|
||
|
|
||
|
<div class="permanent-feedback"></div>
|
||
|
|
||
|
<?php if (count($resumableDeliveries) > 0) : ?>
|
||
|
<h2 class="info">
|
||
|
<?= __("In progress") ?>: <?= count($resumableDeliveries); ?>
|
||
|
</h2>
|
||
|
|
||
|
<ul class="entry-point-box plain">
|
||
|
<?php foreach ($resumableDeliveries as $delivery): ?>
|
||
|
<li>
|
||
|
<div class="block entry-point entry-point-started-deliveries"
|
||
|
data-launch_url="<?= $delivery[Delivery::LAUNCH_URL] ?>"
|
||
|
tabindex="-1">
|
||
|
<h3><?= _dh($delivery[Delivery::LABEL]) ?></h3>
|
||
|
|
||
|
<?php foreach ($delivery[Delivery::DESCRIPTION] as $desc) : ?>
|
||
|
<p><?= $desc?></p>
|
||
|
<?php endforeach; ?>
|
||
|
|
||
|
<div class="clearfix">
|
||
|
<span class="action"
|
||
|
href="<?= $delivery[Delivery::LAUNCH_URL] ?>"
|
||
|
role="button"
|
||
|
aria-label="<?= __('Resume this test')?>"
|
||
|
tabindex="0">
|
||
|
<span class="icon-continue"></span> <?= __("Resume") ?>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</li>
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<?php if (count($availableDeliveries) > 0) : ?>
|
||
|
<h2>
|
||
|
<?= __("Available") ?>: <?= count($availableDeliveries); ?>
|
||
|
</h2>
|
||
|
<ul class="entry-point-box plain">
|
||
|
<?php foreach ($availableDeliveries as $delivery) : ?>
|
||
|
<?php Template::inc('DeliveryServer/delivery_entry.tpl', null, ['delivery' => $delivery]); ?>
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
<?php endif; ?>
|
||
|
</main>
|