mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-02-26 14:21:21 +01:00
38 lines
969 B
PHP
38 lines
969 B
PHP
<?php
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model app\models\Event */
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
|
|
$this->title = $model->name;
|
|
$this->params['breadcrumbs'][] = ['label' => 'Events', 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="event-view">
|
|
|
|
<p>
|
|
<?= Html::a('<i class="fa fa-pencil"></i>', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
|
<?= Html::a('<i class="fa fa-trash"></i>', ['delete', 'id' => $model->id], [
|
|
'class' => 'btn btn-danger',
|
|
'data' => [
|
|
'confirm' => 'Are you sure you want to delete this item?',
|
|
'method' => 'post',
|
|
],
|
|
]) ?>
|
|
</p>
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id',
|
|
'active',
|
|
'name',
|
|
'description:ntext',
|
|
'last_triggered_at',
|
|
],
|
|
]) ?>
|
|
|
|
</div>
|