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 %}