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); return Html::a('<span class="glyphicon glyphicon-ban-circle"></span>', $url, $options);
}, },
'delete-registration' => function ($url, $model) { // 'delete-registration' => function ($url, $model) {
if (isset($model['event_registration_canceled_at'])) { // if (isset($model['event_registration_canceled_at'])) {
return ""; // return "";
} // }
$options = [ // $options = [
'title' => Yii::t('yii', 'Delete'), // 'title' => Yii::t('yii', 'Delete'),
'aria-label' => 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-confirm' => Yii::t('event', 'Are you sure you want to delete this item? Usage count will be restored!'),
'data-method' => 'post', // 'data-method' => 'post',
'data-pjax' => '0', // 'data-pjax' => '0',
]; // ];
return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, $options); // return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, $options);
}, // },
] ]
], ],

View File

@ -96,3 +96,37 @@ a.desc:after {
background-color: #dc500b; background-color: #dc500b;
border-color: #faebcc; border-color: #faebcc;
} }
.event-theme-active-0 {
background-color: #ECB809 !important;
}
.event-theme-active-1 {
background-color: #AE173B !important;
}
.event-theme-active-2 {
background-color: #DF429B !important;
}
.event-theme-active-3 {
background-color: #B929B1 !important;
}
.event-theme-active-4 {
background-color: #3EBFAE !important;
}
.event-theme-active-5 {
background-color: #6594D1 !important;
}
.event-theme-active-6 {
background-color: #F1591A !important;
}
.event-theme-active-7 {
background-color: #30B211 !important;
}
.event-theme-active-8 {
background-color: #E82A36 !important;
}
.event-theme-active-9 {
background-color: #98701E !important;
}