diff --git a/backend/modules/calendar/views/calendar/alternative.php b/backend/modules/calendar/views/calendar/alternative.php deleted file mode 100644 index 4b20d21..0000000 --- a/backend/modules/calendar/views/calendar/alternative.php +++ /dev/null @@ -1,80 +0,0 @@ -title = 'Календарь ДР'; -?> -= \backend\widgets\Calendar::widget([ - 'button' => Html::a(' Назад', - Yii::$app->request->referrer, ['class' => 'btn btn-primary',]), - 'runBuild' => "function (date, content){ - this.build(date, content) - }", - 'updateContent' => "function(date){ - let monthNumber = date.substr(5, 2); - return fetch('../ajax/get-birthday-by-month?' + - 'month=' + monthNumber) - .then((res) => { - return res.json() - }) - }", - 'getColor' => "function (date, dates = null) { - for (let contentDate of dates) { - if (contentDate['dob'].substr(8, 2) == DateHelper.intToDate(date.getDate())) { - return 'success'; - } - } - }", - 'getHtmlContentForDate' => 'function (content, date) { - let flag = false - let html = `
# | -ФИО | -Дата рождения | -- |
---|---|---|---|
${i} | ` - html += `${model["fio"]} | ` - html += `${model["dob"]} | ` - html += `- - - - - - - | ` - html += `