fix clear and copy week

This commit is contained in:
2019-11-05 16:58:25 +01:00
committed by Roland Schneider
parent 9c0e2a56ee
commit 2c5db234ce
19 changed files with 692 additions and 142 deletions

View File

@@ -14,10 +14,14 @@ use yii\bootstrap\Widget;
class TimeTableMonthView extends Widget
{
public $timeTable;
public $actionsColumn;
public function run() {
return $this->render('_timetable', [ 'timeTable' => $this->timeTable]);
return $this->render('_timetable', [
'timeTable' => $this->timeTable,
'actionsColumn' => ( isset($this->actionsColumn) ? $this->actionsColumn : null)
]);
}
@@ -28,7 +32,9 @@ class TimeTableMonthView extends Widget
* @return string
*/
return static function ($week) use ($weekDay) {
return TimeTableMonthDayView::widget(['day' => $week->getWeekDay($weekDay)]);
return TimeTableMonthDayView::widget([
'day' => $week->getWeekDay($weekDay),
]);
};
}