minor changes

This commit is contained in:
Roland Schneider
2021-10-08 11:40:55 +02:00
parent 77919b3bf8
commit edc76b4871
2 changed files with 47 additions and 13 deletions

View File

@@ -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);
// },
]
],