From dc2a5013fb93141f50dc92b4b8cc4d6004b8e814 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sun, 17 Jun 2018 21:31:00 +0000 Subject: Backend for team assignment --- templates/staff/jams/index.html | 2 +- templates/staff/jams/teams/view.html | 358 +++++++++++++++++++++++++++++++++++ 2 files changed, 359 insertions(+), 1 deletion(-) create mode 100644 templates/staff/jams/teams/view.html (limited to 'templates') diff --git a/templates/staff/jams/index.html b/templates/staff/jams/index.html index bb6a3c21..74292204 100644 --- a/templates/staff/jams/index.html +++ b/templates/staff/jams/index.html @@ -106,7 +106,7 @@  Participants - +  Teams diff --git a/templates/staff/jams/teams/view.html b/templates/staff/jams/teams/view.html new file mode 100644 index 00000000..48bc3c61 --- /dev/null +++ b/templates/staff/jams/teams/view.html @@ -0,0 +1,358 @@ +{% extends "main/base.html" %} +{% block title %}Staff | Jams | Teams{% endblock %} +{% block og_title %}Staff | Jams | Teams{% endblock %} +{% block og_description %}Manage Teams{% endblock %} +{% block content %} +
+
+

Hover a user to show their information here

+ +
+ +
+ +
+
+

Code Jam {{ jam.number }}: Teams

+ +  Back + + {% if teams %} + + {% else %} + + {% endif %} + + +
+
+ +
+ {% for participant in jam.participants %} +
+
+
+ + {{ participant.username }}#{{ participant.discriminator }} +
+
+
+ {% endfor %} +
+ + {% if not teams %} +

No teams found.

+ +
+
+ {% else %} + + +
+ {% for id, team in teams.items() %} +
+
+
+

{{ team.name }}

+
+
+

Drop users here to assign them

+ + {% for user_id in team.members %} +
+ + + {{ participants[user_id].username }}#{{ participants[user_id].discriminator }} ({{ participants[user_id].profile.timezone }}) + +
+ {% endfor %} +
+ +
+
+ {% endfor %} +
+ {% endif %} +
+
+ + +{% endblock %} -- cgit v1.2.3