From 8384a1851cfea376b26c2428c8c2bf15180b38fa Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Sun, 14 Apr 2024 15:09:57 +0200 Subject: [PATCH] Let registration status tune participation column opacity --- view-webapp/src/main/sass/tour.scss | 3 +++ view-webapp/src/main/webapp/js/tour-registration.inc.js | 1 + view-webapp/src/main/webapp/tour-registration.inc.html | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/view-webapp/src/main/sass/tour.scss b/view-webapp/src/main/sass/tour.scss index 53dc6a9..470e50d 100644 --- a/view-webapp/src/main/sass/tour.scss +++ b/view-webapp/src/main/sass/tour.scss @@ -111,6 +111,9 @@ border-radius: 500rem; } } + tr:not(.final) .participation { + opacity: 0.5; + } } } diff --git a/view-webapp/src/main/webapp/js/tour-registration.inc.js b/view-webapp/src/main/webapp/js/tour-registration.inc.js index 7fec09a..47dbeac 100644 --- a/view-webapp/src/main/webapp/js/tour-registration.inc.js +++ b/view-webapp/src/main/webapp/js/tour-registration.inc.js @@ -365,6 +365,7 @@ onLoad(() => { final: newStatus }).then(player => { if (player !== 'error') { + tr.toggleClass('final'); cell.toggleClass('final'); standingsUpToDate = false; pairablesUpToDate = false; diff --git a/view-webapp/src/main/webapp/tour-registration.inc.html b/view-webapp/src/main/webapp/tour-registration.inc.html index 8d56998..ca3ed7c 100644 --- a/view-webapp/src/main/webapp/tour-registration.inc.html +++ b/view-webapp/src/main/webapp/tour-registration.inc.html @@ -39,7 +39,7 @@ #foreach($part in $parts) - +