View camera archive list. Stub for archive record page

This commit is contained in:
ftc
2023-07-02 17:18:17 +03:00
parent b19e70b005
commit 477afbecd1
6 changed files with 93 additions and 4 deletions
+7 -1
View File
@@ -2,6 +2,7 @@
/** @var yii\web\View $this */
use yii\helpers\Url;
use yii\helpers\Html;
$this->title = 'Камера '.$id;
?>
@@ -12,7 +13,12 @@ $this->title = 'Камера '.$id;
<img style="max-width:100%;" src='<?= Url::to(['camera/stream', 'id' => $id]); ?>'>
</div>
<div class="col-lg-8">
Архив записей:
Архив записей:<br/>
<ul>
<?php foreach ($archive as $e): ?>
<li><?= Html::a($e->start_time." - ".$e->end_time, ['camera/view-archive', 'event_id' => $e->id]); ?></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>