minor changes
This commit is contained in:
@@ -20,6 +20,11 @@ $customer = $receptionForm->customer;
|
||||
$this->title = Yii::t('common/ticket', 'Tickets');
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<style>
|
||||
.ticket-index .grid-view th {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
</style>
|
||||
<div class="ticket-index">
|
||||
|
||||
|
||||
@@ -35,6 +40,9 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
</p>
|
||||
|
||||
<?= GridView::widget([
|
||||
// 'options' => [
|
||||
// 'class' => ''
|
||||
// ],
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
[
|
||||
@@ -53,7 +61,9 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'start:date',
|
||||
'end:date',
|
||||
'max_usage_count',
|
||||
'usage_count',
|
||||
'usage_count',
|
||||
'max_reservation_count',
|
||||
'reservation_count',
|
||||
[
|
||||
'attribute' => 'id_user',
|
||||
'value' => 'userName'
|
||||
@@ -69,7 +79,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
],
|
||||
*/
|
||||
'price_brutto',
|
||||
|
||||
|
||||
'created_at:datetime',
|
||||
['class' => 'yii\grid\ActionColumn',
|
||||
'template' =>'{delete} {update}',
|
||||
@@ -77,23 +87,23 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'update' => function($url, $model, $key){
|
||||
return $model->status == Ticket::STATUS_DELETED ? "" : Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url,
|
||||
[ 'title' => "Bérlet módosítása", 'class'=>'btn btn-primary btn-xs', ]) ;
|
||||
},
|
||||
},
|
||||
'delete' => function($url, $model, $key){
|
||||
return $model->status == Ticket::STATUS_DELETED ? "" : Html::a('<span class="glyphicon glyphicon-trash"></span>', $url,
|
||||
[ 'title' => "Bérlet törlése", 'class'=>'btn btn-primary btn-xs', 'data' => [
|
||||
'confirm' => Yii::t('common/waste', 'Biztosan törli a bérletet?'),
|
||||
'method' => 'post',
|
||||
]]) ;
|
||||
},
|
||||
},
|
||||
],
|
||||
// 'buttons ' => [
|
||||
|
||||
|
||||
// 'update' =>function ($url, $model, $key){
|
||||
// return "update";
|
||||
// },
|
||||
// 'delete' =>function ($url, $model, $key){
|
||||
// return "delete";
|
||||
|
||||
|
||||
// }
|
||||
// ]
|
||||
// 'template' => function($model){ return $model->status == Ticket::STATUS_DELETED ? "" : "'{delete} {update}'" ;},
|
||||
|
||||
Reference in New Issue
Block a user