minor changes
This commit is contained in:
@@ -187,19 +187,19 @@ function getCommonColumnsHtmlOptions($model)
|
||||
];
|
||||
return Html::a('<span class="glyphicon glyphicon-ban-circle"></span>', $url, $options);
|
||||
},
|
||||
'delete-registration' => function ($url, $model) {
|
||||
if (isset($model['event_registration_canceled_at'])) {
|
||||
return "";
|
||||
}
|
||||
$options = [
|
||||
'title' => Yii::t('yii', 'Delete'),
|
||||
'aria-label' => Yii::t('yii', 'Delete'),
|
||||
'data-confirm' => Yii::t('event', 'Are you sure you want to delete this item? Usage count will be restored!'),
|
||||
'data-method' => 'post',
|
||||
'data-pjax' => '0',
|
||||
];
|
||||
return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, $options);
|
||||
},
|
||||
// 'delete-registration' => function ($url, $model) {
|
||||
// if (isset($model['event_registration_canceled_at'])) {
|
||||
// return "";
|
||||
// }
|
||||
// $options = [
|
||||
// 'title' => Yii::t('yii', 'Delete'),
|
||||
// 'aria-label' => Yii::t('yii', 'Delete'),
|
||||
// 'data-confirm' => Yii::t('event', 'Are you sure you want to delete this item? Usage count will be restored!'),
|
||||
// 'data-method' => 'post',
|
||||
// 'data-pjax' => '0',
|
||||
// ];
|
||||
// return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, $options);
|
||||
// },
|
||||
]
|
||||
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user