fitness-web/backend/views/log/index.php
Roland Schneider 90d19d17b6 add ticket original end and original price
add helper links to related object in admin
2017-09-06 12:14:12 +02:00

73 lines
1.8 KiB
PHP

<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\LogSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('common/log', 'Logok');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="log-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php echo $this->render('_search', ['model' => $searchModel]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
[
'attribute' => "log_id_log",
'label' => "Log azonosító",
],
[
'attribute' => "log_created_at",
'label' => "Dátum idő",
],
[
'attribute' => "log_message",
'label' => "Üzenet",
],
[
'attribute' => "log_app",
'label' => "Alkalmazás",
],
[
'attribute' => "user_username",
'label' => "Felhasználó",
],
// 'id_user',
// 'id_transfer',
// 'id_money_movement',
// 'id_ticket',
// 'id_sale',
// 'id_customer',
// 'id_account',
// 'id_account_state',
// 'id_key',
// 'id_product',
// 'id_door_log',
// 'updated_at',
[
'class' => 'yii\grid\ActionColumn',
'template' => '{view}',
'urlCreator' => function($action, $model, $key, $index){
$result = "";
if ( $action == 'view'){
$result = \yii\helpers\Url::toRoute(['log/view','id' => $model['log_id_log']]);
}
return $result;
}
],
],
]); ?>
</div>