From 84e49b2b399dcfea6e6543ad7181f6a7be1d651e 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: Tue, 21 Apr 2026 15:08:05 +0300 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=822?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/script.js | 48 ++++++++++++++++++++------ templates/match_workspace.html | 62 +++++++++++++++++++++++++++------- 2 files changed, 86 insertions(+), 24 deletions(-) diff --git a/static/script.js b/static/script.js index 6f0f02b..6f3f1a1 100644 --- a/static/script.js +++ b/static/script.js @@ -2037,12 +2037,14 @@ function renderLineupRow(row) { const side = row.dataset.side; const role = row.dataset.role; const player = getRowPlayer(row); + const fullName = (player.name || `${player.lastName || ""} ${player.firstName || ""}`).trim(); const displayName = buildPersonDisplayName( player.firstName, player.lastName, player.name || fullName ); + const gkBadge = isGoalkeeperPosition(player.position) ? 'ВР' : ''; const captainBadge = player.isCaptain ? 'К' : ''; const disciplineBadge = player.disciplineType === "yellow_red" @@ -2050,7 +2052,11 @@ function renderLineupRow(row) { : (player.disciplineType === "red" ? 'КК' : ''); - const firstNameHtml = player.firstName ? ` ${escapeHtml(player.firstName)}` : ''; + + const firstNameHtml = player.firstName + ? ` ${escapeHtml(player.firstName)}` + : ''; + const idJs = JSON.stringify(player.id || player.number || ""); const nameJs = JSON.stringify(displayName); @@ -2084,19 +2090,31 @@ function renderLineupRow(row) { } row.innerHTML = ` - ${escapeHtml(player.number)} - -
-
- ${escapeHtml(player.lastName || player.name)}${firstNameHtml} + ${escapeHtml(player.number || "")} + +
+ ${actionsHtml} `; } - function makeDraggable(el) { let dragging = false; @@ -3199,10 +3217,18 @@ function renderLiveCoachBlockForSide(side) { block.innerHTML = source.map(c => `
-
+
+