add indexes, add messagedetsta
This commit is contained in:
85
backend/views/contract/index.php
Normal file
85
backend/views/contract/index.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use common\models\Contract;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel backend\models\ContractSearch */
|
||||
/* @var $dataProvider yii\data\ActiveDataProvider */
|
||||
|
||||
$this->title = "Szerződések";
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="contract-index">
|
||||
|
||||
<h1><?php echo "Szerződések" ?></h1>
|
||||
<?php echo $this->render('_search', ['model' => $searchModel]); ?>
|
||||
|
||||
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
/*
|
||||
* 'contract.id_contract as contract_id_contract',
|
||||
'user.username as user_name',
|
||||
'customer.id_customer as customer_id_customer',
|
||||
'customer.name as customer_name',
|
||||
'customer.status as customer_status',
|
||||
'customer.flags as customer_flags',*/
|
||||
[
|
||||
'attribute' => 'contract_id_contract' ,
|
||||
'label' =>'Szerződés azonosító'
|
||||
],
|
||||
[
|
||||
'attribute' => 'user_name' ,
|
||||
'label' =>'Felhasználó'
|
||||
],
|
||||
[
|
||||
'attribute' => 'customer_id_customer' ,
|
||||
'label' =>'Vendég azonosító'
|
||||
],
|
||||
[
|
||||
'attribute' => 'customer_name' ,
|
||||
'label' =>'Vendég név'
|
||||
],
|
||||
[
|
||||
'attribute' => 'contract_status' ,
|
||||
'label' =>'Státusz',
|
||||
'value' => function ($model, $key, $index, $column){
|
||||
return Contract::toStatusName($model['contract_status']);
|
||||
}
|
||||
],
|
||||
[
|
||||
'attribute' => 'contract_flag' ,
|
||||
'label' =>'Állapot',
|
||||
'value' => function ($model, $key, $index, $column){
|
||||
return Contract::toFlangName($model['contract_flag']);
|
||||
}
|
||||
],
|
||||
[
|
||||
'attribute' => 'contract_part_count' ,
|
||||
'label' =>'Összes részlet'
|
||||
],
|
||||
[
|
||||
'attribute' => 'contract_part_required' ,
|
||||
'label' =>'Esedékes részletek'
|
||||
],
|
||||
[
|
||||
'attribute' => 'contract_part_paid' ,
|
||||
'label' =>'Részletek fizetve'
|
||||
],
|
||||
[
|
||||
'attribute' => 'contract_created_at' ,
|
||||
'label' =>'Létrehozva',
|
||||
'format' => 'date'
|
||||
],
|
||||
[
|
||||
'attribute' => 'contract_expired_at' ,
|
||||
'label' =>'Lejárat',
|
||||
'format' => 'date'
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user