backend/group-training : improve delete© week
This commit is contained in:
@@ -15,25 +15,27 @@ class TimeTableMonthView extends Widget
|
||||
{
|
||||
public $timeTable;
|
||||
public $actionsColumn;
|
||||
|
||||
public $copyWeekContext;
|
||||
|
||||
public function run() {
|
||||
return $this->render('_timetable', [
|
||||
'timeTable' => $this->timeTable,
|
||||
'actionsColumn' => ( isset($this->actionsColumn) ? $this->actionsColumn : null)
|
||||
'actionsColumn' => ( isset($this->actionsColumn) ? $this->actionsColumn : null),
|
||||
'copyWeekContext' => $this->copyWeekContext
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
public static function renderDay($weekDay ){
|
||||
public static function renderDay($weekDay , $copyWeekContext = null){
|
||||
|
||||
/**
|
||||
* @param TimeTableMonthWeek $week
|
||||
* @return string
|
||||
*/
|
||||
return static function ($week) use ($weekDay) {
|
||||
return static function ($week) use ($weekDay, $copyWeekContext) {
|
||||
return TimeTableMonthDayView::widget([
|
||||
'day' => $week->getWeekDay($weekDay),
|
||||
'copyWeekContext' => $copyWeekContext
|
||||
]);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user