add indexes, add messagedetsta
This commit is contained in:
57
backend/views/contract/index-customer.php
Normal file
57
backend/views/contract/index-customer.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use backend\components\AdminCustomerTabWidget;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel backend\models\ContractSearch */
|
||||
/* @var $dataProvider yii\data\ActiveDataProvider */
|
||||
|
||||
$this->title = "Vendég szerződések";
|
||||
$this->params['breadcrumbs'][] = "Vendég";
|
||||
$this->params['breadcrumbs'][] = "Szerződések";
|
||||
?>
|
||||
|
||||
<?php echo AdminCustomerTabWidget::widget(['customer' => $searchModel->customer]) ?>
|
||||
<div class="contract-index">
|
||||
|
||||
<?php // echo $this->render('_search-customer', ['model' => $searchModel]); ?>
|
||||
|
||||
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
[
|
||||
'label' => 'Szerződés azonosító',
|
||||
'value' => 'id_contract',
|
||||
'attribute' =>'id_contract',
|
||||
],
|
||||
[
|
||||
'label' => 'Felhasználó',
|
||||
'value' => 'userName',
|
||||
'attribute' =>'id_user',
|
||||
],
|
||||
[
|
||||
'label' => 'Státusz',
|
||||
'value' => 'statusName',
|
||||
'attribute' =>'status',
|
||||
],
|
||||
[
|
||||
'label' => 'Állapot',
|
||||
'value' => 'flagName',
|
||||
'attribute' =>'flag',
|
||||
],
|
||||
[
|
||||
'label' => 'Lejárat',
|
||||
'value' => 'expired_at',
|
||||
'attribute' =>'expired_at',
|
||||
'format' => 'date'
|
||||
],
|
||||
'created_at:datetime',
|
||||
|
||||
// ['class' => 'yii\grid\ActionColumn'],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user