логотипы команд в расписании тура
This commit is contained in:
@@ -3702,3 +3702,26 @@ async function saveReferees() {
|
||||
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 "";
|
||||
}
|
||||
@@ -927,6 +927,7 @@ data-role="{{ p.position or '' }}"
|
||||
<th class="tour-match-col">Матч</th>
|
||||
<th class="tour-meta-col">Счёт / статус</th>
|
||||
<th class="tour-stadium-col">Стадион</th>
|
||||
<th class="tour-channel-col">Канал</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -975,6 +976,28 @@ data-role="{{ p.position or '' }}"
|
||||
<td class="stadium-cell">
|
||||
{{ m.stadium_name or "—" }}
|
||||
</td>
|
||||
|
||||
<td class="tour-channel-cell">
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
class="tour-channel-checkbox"
|
||||
data-channel="match"
|
||||
data-match-id="{{ m.match_external_id }}"
|
||||
>
|
||||
Матч
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
class="tour-channel-checkbox"
|
||||
data-channel="match_premier"
|
||||
data-match-id="{{ m.match_external_id }}"
|
||||
>
|
||||
Матч Премьер
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user