fitness-web/backend/views/door-log/index.php

46 lines
973 B
PHP

<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\DoorLogSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('common/door_log', 'Mozgások');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="door-log-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php echo $this->render('_search', ['model' => $searchModel]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'id_card',
'value' => 'cardNumber'
],
[
'attribute' => 'id_key',
'value' => 'keyNumber'
],
[
'attribute' => 'id_customer',
'value' => 'customerName'
],
[
'attribute' => 'direction',
'value' => 'directionName'
],
// 'type',
'created_at:datetime',
],
]); ?>
</div>