From b5b339cdfde254367eccd49d296178314a159ba7 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 12 Jun 2018 13:43:46 +0100 Subject: [Jams] Approvals interface --- templates/main/jams/index.html | 2 +- templates/staff/jams/index.html | 2 +- templates/staff/jams/participants.html | 160 +++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+), 2 deletions(-) create mode 100644 templates/staff/jams/participants.html (limited to 'templates') diff --git a/templates/main/jams/index.html b/templates/main/jams/index.html index 804a89f3..0ef5fd9e 100644 --- a/templates/main/jams/index.html +++ b/templates/main/jams/index.html @@ -79,7 +79,7 @@

{% if jam.participants %} - {{ jam.participants | length }} participants + Participants: {{ jam.participants | length }} {% endif %} diff --git a/templates/staff/jams/index.html b/templates/staff/jams/index.html index c38883c2..1d7beeb8 100644 --- a/templates/staff/jams/index.html +++ b/templates/staff/jams/index.html @@ -106,7 +106,7 @@  Form - +  Participants diff --git a/templates/staff/jams/participants.html b/templates/staff/jams/participants.html new file mode 100644 index 00000000..ff2b4a7d --- /dev/null +++ b/templates/staff/jams/participants.html @@ -0,0 +1,160 @@ +{% extends "main/base.html" %} +{% block title %}Staff | Jams | Participants{% endblock %} +{% block og_title %}Staff | Jams | Participants{% endblock %} +{% block og_description %}Listing of participant applications and their status{% endblock %} +{% block extra_head %} + +{% endblock %} +{% block content %} + {% macro card_header(app) %} +

+ + + {{ app.username }}#{{ app.discriminator }} +

+ + {% if jam.state in ["announced", "preparing"] %} + {% if app.approved %} + + + {% else %} + + + {% endif %} + {% endif %} + + + + + + + {% endmacro %} + +
+

Code Jam {{ jam.number }}: Participants

+  Back + +
+
+ + {% for app in jam.participants %} + +
+ {% endfor %} +
+ + +{% endblock %} -- cgit v1.2.3