From: Aleksey Filippov Date: Thu, 19 Feb 2026 16:47:21 +0000 (+0300) Subject: auto-claude: subtask-4-1 - Подключить Plyr.js CSS и JS через registerCssFile/register... X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=2effd2b902a8368e0ed6c183c206bcaab2901a58;p=erp24_rep%2Fyii-erp24%2F.git auto-claude: subtask-4-1 - Подключить Plyr.js CSS и JS через registerCssFile/registerJsFile - Added Plyr.js CSS from CDN (https://cdn.plyr.io/3.7.8/plyr.css) - Added Plyr.js JS from CDN (https://cdn.plyr.io/3.7.8/plyr.min.js) - CSS registered with POS_HEAD position for proper styling - JS registered with POS_END position for optimal page loading Co-Authored-By: Claude Opus 4.5 --- diff --git a/erp24/views/write_offs_erp/view.php b/erp24/views/write_offs_erp/view.php index 02abc0db..e9aba86b 100644 --- a/erp24/views/write_offs_erp/view.php +++ b/erp24/views/write_offs_erp/view.php @@ -24,6 +24,10 @@ $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); $this->registerCssFile('/css/write-offs-erp.css', ['position' => \yii\web\View::POS_HEAD]); + +// Plyr.js video player assets +$this->registerCssFile('https://cdn.plyr.io/3.7.8/plyr.css', ['position' => View::POS_HEAD]); +$this->registerJsFile('https://cdn.plyr.io/3.7.8/plyr.min.js', ['position' => View::POS_END]); ?>