From a086b9ab2e35fae56e6bf5caaa7b183bdbef3ad8 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 19 Jun 2018 13:31:24 +0100 Subject: [Jams] Team member cards coloured based on assignment --- templates/staff/jams/teams/view.html | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'templates') diff --git a/templates/staff/jams/teams/view.html b/templates/staff/jams/teams/view.html index 48bc3c61..909c4c94 100644 --- a/templates/staff/jams/teams/view.html +++ b/templates/staff/jams/teams/view.html @@ -67,14 +67,25 @@
{% for participant in jam.participants %} -
-
-
- - {{ participant.username }}#{{ participant.discriminator }} + {% if participant.user_id not in assigned %} +
+
+
+ + {{ participant.username }}#{{ participant.discriminator }} +
+
-
-
+ {% else %} +
+
+
+ + {{ participant.username }}#{{ participant.discriminator }} +
+
+
+ {% endif %} {% endfor %}
@@ -286,6 +297,8 @@ "pos": "bottom-center", "timeout": 5000 }); + + $(`#participant-${member}-card`).removeClass("uk-card-primary").addClass("uk-card-secondary"); } else { console.log(data); -- cgit v1.2.3