backend: add colors to event_type index.php; fix timetable dates

This commit is contained in:
2021-10-07 07:59:05 +02:00
parent d26581e338
commit 89b3ab4ce5
5 changed files with 28 additions and 15 deletions

View File

@@ -16,7 +16,7 @@ if ( $permissions->allowCreate ){
$indexTableTemplateButtons[] = '{update}';
}
$indexTableTemplateButtons[] = '{reserve-card}';
$indexTableTemplateButtons[] = '{equipment-types-assignment}';
//$indexTableTemplateButtons[] = '{equipment-types-assignment}';
?>
@@ -155,14 +155,14 @@ $indexTableTemplateButtons[] = '{equipment-types-assignment}';
];
return Html::a('<span class="glyphicon glyphicon-user"></span>', $url, $options);
},
'equipment-types-assignment' => function ($url, $model, $key) {
$options = [
'title' => Yii::t('yii', 'Equipment Types'),
'aria-label' => Yii::t('yii', 'Equipment Types'),
'data-pjax' => '0',
];
return Html::a('<span class="glyphicon glyphicon-wrench"></span>', $url, $options);
}
// 'equipment-types-assignment' => function ($url, $model, $key) {
// $options = [
// 'title' => Yii::t('yii', 'Equipment Types'),
// 'aria-label' => Yii::t('yii', 'Equipment Types'),
// 'data-pjax' => '0',
// ];
// return Html::a('<span class="glyphicon glyphicon-wrench"></span>', $url, $options);
// }
]
],