backend/group-training : improve delete&copy week

This commit is contained in:
Roland Schneider
2021-10-10 23:01:18 +02:00
parent 5fe59ff1d3
commit 50011a4e4f
14 changed files with 226 additions and 131 deletions

View File

@@ -1,5 +1,6 @@
<?php
namespace common\modules\event\widgets\day;
use common\modules\event\models\copy\CopyWeekContext;
use common\modules\event\models\timetable\TimeTableMonthDay;
use yii\bootstrap\Widget;
@@ -11,13 +12,15 @@ use yii\bootstrap\Widget;
* @package common\modules\event\widgets
*
* @property TimeTableMonthDay $day
* @property CopyWeekContext $copyWeekContext
*/
class TimeTableMonthDayView extends Widget
{
public $day;
public $copyWeekContext;
public function run(){
return $this->render('_day', [ 'day' => $this->day]);
return $this->render('_day', [ 'day' => $this->day,'copyWeekContext' => $this->copyWeekContext]);
}