add indexes, add messagedetsta

This commit is contained in:
2016-01-29 17:13:33 +01:00
parent ad59cbb940
commit a00331ce7c
65 changed files with 3195 additions and 92 deletions

View File

@@ -4,6 +4,8 @@ use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\ArrayHelper;
use yii\data\ArrayDataProvider;
use backend\components\AdminCustomerTabWidget;
use common\models\Ticket;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\TicketSearch */
@@ -15,15 +17,15 @@ if ( isset($card)){
}
$this->title = Yii::t('common/ticket', '{customer} Tickets', ['customer'=>$customer]);
$this->params['breadcrumbs'][] = $this->title;
$this->params['breadcrumbs'][] = "Vendég";
$this->params['breadcrumbs'][] = "Befizetések";
?>
<?php echo AdminCustomerTabWidget::widget(['customer' => $searchModel->customer]) ?>
<div class="ticket-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php echo $this->render('_search_customer', ['model' => $searchModel]); ?>
@@ -83,27 +85,50 @@ $this->params['breadcrumbs'][] = $this->title;
'dataProvider' => $dataProvider,
'columns' => [
[
'attribute' => 'id_customer',
'value' => 'customerName'
'attribute' => 'ticket_id_ticket',
'label' => 'Bérlet azonosító'
],
// [
// 'attribute' => 'card_number',
// 'label' => 'Kártyaszám'
// ],
[
'attribute' => 'ticket_start',
'label' => 'Érvényesség kezdete',
'format' => 'datetime'
],
[
'attribute' => 'id_card',
'value' => 'cardNumber'
'attribute' => 'ticket_end',
'label' => 'Érvényesség vége',
'format' => 'datetime'
],
'start:date',
'end:date',
[
'attribute' => 'id_user',
'value' => 'userName'
'attribute' => 'user_username',
'label' => 'Kiadta',
],
[
'attribute' => 'paid_by_username',
'label' => 'Fizette'
],
[
'attribute' => 'id_ticket_type',
'value' => 'ticketTypeName'
'attribute' => 'ticket_type_name',
'label' => 'Típus'
],
[
'attribute' => 'id_account',
'value' => 'accountName'
'attribute' => 'account_name',
'label' => 'Kassza'
],
[
'attribute' => 'ticket_status',
'label' => 'Státusz',
'value' => function ($model, $key, $index, $column){
return Ticket::toStatusName($model['ticket_status']);
}
],
[
'attribute' => 'ticket_price_brutto',
'label' => 'Ár'
],
// 'max_usage_count',
// 'usage_count',