add backand ticket/index changes, add backand\ticket\index export pdf, xls

This commit is contained in:
2016-06-29 20:18:47 +02:00
parent 06eca0fe03
commit 5438c9a038
20 changed files with 870 additions and 284 deletions

View File

@@ -11,47 +11,43 @@ $this->params['breadcrumbs'][] = ['label' => Yii::t('common/ticket', 'Tickets'),
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="ticket-view">
<h1><?= Html::encode($this->title) ?></h1>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id_ticket',
[
'attribute' => 'id_user',
'value' => $model->user->username,
],
[
'attribute' => 'id_ticket_type',
'value' => $model->ticketTypeName,
],
[
'attribute' => 'id_account',
'value' => $model->accountName,
],
[
'attribute' => 'id_discount',
'value' => $model->discountName,
],
'start:datetime',
'end:datetime',
[
'attribute' => 'id_user',
'value' => $model->user->username,
],
[
'attribute' => 'id_ticket_type',
'value' => $model->ticketTypeName,
],
[
'attribute' => 'id_account',
'value' => $model->accountName,
],
[
'attribute' => 'id_discount',
'value' => $model->discountName,
],
'start:date',
'end:date',
'max_usage_count',
'usage_count',
[
'attribute' => 'status',
'value' => $model->statusName
],
[
'attribute' => 'status',
'value' => $model->statusName
],
'price_brutto',
'comment:raw',
'created_at',
'updated_at',
'created_at:datetime',
'updated_at:datetime',
],
]) ?>
</div>