Improve Event management
This commit is contained in:
@@ -38,7 +38,11 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
[
|
||||
'attribute' => 'event_end',
|
||||
'label' => \Yii::t('event', 'End'),
|
||||
'format' => 'datetime'
|
||||
'format' => 'time'
|
||||
],
|
||||
[
|
||||
'attribute' => 'event_seat_count',
|
||||
'label' => \Yii::t('event', 'Seat Count')
|
||||
],
|
||||
[
|
||||
'attribute' => 'registration_count',
|
||||
@@ -62,9 +66,14 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'label' => \Yii::t('event', 'Updated At'),
|
||||
'format' => 'datetime'
|
||||
],
|
||||
[
|
||||
'attribute' => 'event_deleted_at',
|
||||
'label' => \Yii::t('event', 'Deleted At'),
|
||||
'format' => 'datetime'
|
||||
],
|
||||
[
|
||||
'class' => 'yii\grid\ActionColumn',
|
||||
'template' => '{view} {update} {delete} {register-card}',
|
||||
'template' => '{view} {update} {reserve-card}',
|
||||
'urlCreator' => function ($action, $model, $key, $index) {
|
||||
$params = ['id' => $model['event_id']];
|
||||
$params[0] = "event" . '/' . $action;
|
||||
@@ -97,7 +106,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
];
|
||||
return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, $options);
|
||||
},
|
||||
'register-card' => function ($url, $model, $key) {
|
||||
'reserve-card' => function ($url, $model, $key) {
|
||||
$options = [
|
||||
'title' => Yii::t('yii', 'Register'),
|
||||
'aria-label' => Yii::t('yii', 'Register'),
|
||||
|
||||
Reference in New Issue
Block a user