From 5110c402e82ba4c72d228ff56a33bace7ce1f241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=A7=D0=B5=D1=80=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Fri, 15 May 2026 14:05:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BB=D0=BE=D0=B3=D0=BE=D1=82=D0=B8=D0=BF?= =?UTF-8?q?=D1=8B=20=D0=BA=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=20=D0=B2=20=D1=80?= =?UTF-8?q?=D0=B0=D1=81=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D0=B8=20=D1=82?= =?UTF-8?q?=D1=83=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/script.js | 23 +++++++++++++++++++++++ templates/match_workspace.html | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/static/script.js b/static/script.js index 9f259b3..249d31a 100644 --- a/static/script.js +++ b/static/script.js @@ -3701,4 +3701,27 @@ async function saveReferees() { console.error("saveReferees failed", e); alert("Ошибка сети при сохранении судей"); } +} + +function getTourChannelLogoPath(matchId) { + const checked = Array.from( + document.querySelectorAll(`.tour-channel-checkbox[data-match-id="${matchId}"]:checked`) + ).map(el => el.dataset.channel); + + const hasMatch = checked.includes("match"); + const hasPremier = checked.includes("match_premier"); + + if (hasMatch && hasPremier) { + return "D:\\Графика\\ФУТБОЛ\\Женская Суперлига 2026\\Лого каналов\\матч-матч_премьер.png"; + } + + if (hasPremier) { + return "D:\\Графика\\ФУТБОЛ\\Женская Суперлига 2026\\Лого каналов\\матч_премьер.png"; + } + + if (hasMatch) { + return "D:\\Графика\\ФУТБОЛ\\Женская Суперлига 2026\\Photo\\EMPTY.png"; + } + + return ""; } \ No newline at end of file diff --git a/templates/match_workspace.html b/templates/match_workspace.html index d6f917d..494b361 100644 --- a/templates/match_workspace.html +++ b/templates/match_workspace.html @@ -927,6 +927,7 @@ data-role="{{ p.position or '' }}" Матч Счёт / статус Стадион + Канал @@ -975,6 +976,28 @@ data-role="{{ p.position or '' }}" {{ m.stadium_name or "—" }} + + + + + + {% endfor %}