fitness-web/frontend/views/log/index.php

39 lines
1.0 KiB
PHP

<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\LogSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('common/log', 'Törölköző bérlés történet');
$this->params['breadcrumbs'][] = $this->title;
?>
<?php echo \frontend\components\CustomerTabWidget::widget(['card' => $searchModel->card])?>
<div class="log-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php echo $this->render('_search', ['model' => $searchModel]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
[
'attribute' => "log_created_at",
'label' => "Dátum idő",
],
[
'attribute' => "log_type",
'label' => "Esemény",
],
[
'attribute' => "log_message",
'label' => "Db",
],
[
'attribute' => "user_username",
'label' => "Felhasználó",
],
],
]); ?>
</div>