From b65020ed8683819272d373a62af0d13284549a68 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sat, 27 Apr 2024 18:52:46 -0400 Subject: [PATCH] Add requested campus and borough changes --- templates/confirm.html | 2 +- templates/teams/teams.html | 24 +++++++++++++++++++++--- templates/users/users.html | 29 ++++++++++++++++++++++++++--- 3 files changed, 48 insertions(+), 7 deletions(-) diff --git a/templates/confirm.html b/templates/confirm.html index 6257894..43081c6 100644 --- a/templates/confirm.html +++ b/templates/confirm.html @@ -27,7 +27,7 @@

- {% trans %}If the email doesn’t arrive, check your spam folder or contact an administrator to manually verify your account.{% endtrans %} + {% trans %}If the email doesn't arrive, check your spam folder or contact an administrator via the chat bubble to manually verify your account.{% endtrans %}

diff --git a/templates/teams/teams.html b/templates/teams/teams.html index f24b081..c2125a5 100644 --- a/templates/teams/teams.html +++ b/templates/teams/teams.html @@ -47,9 +47,8 @@
{% trans %}Team{% endtrans %} - {% trans %}Website{% endtrans %} - {% trans %}Affiliation{% endtrans %} - {% trans %}Country{% endtrans %} + CUNY Campus + Borough @@ -70,6 +69,24 @@
{% endif %} + {% set team_ns = namespace(college=null, borough=null) %} + {% for field in team.fields %} + {% if field.name == "CUNY Campus" %} + {% set team_ns.college = field.value %} + {% elif field.name == "CUNY Campus Borough" %} + {% set team_ns.borough = field.value %} + {% endif %} + {% endfor %} + + + {{ team_ns.college }} + + + + {{ team_ns.borough }} + + + {# {% if team.website and (team.website.startswith('http://') or team.website.startswith('https://')) %} @@ -109,6 +126,7 @@
{% endif %} + #} {% endfor %} diff --git a/templates/users/users.html b/templates/users/users.html index 02c8d07..a37ce0b 100644 --- a/templates/users/users.html +++ b/templates/users/users.html @@ -44,9 +44,9 @@
{% trans %}User{% endtrans %} - {% trans %}Website{% endtrans %} - {% trans %}Affiliation{% endtrans %} - {% trans %}Country{% endtrans %} + {% trans %}Team{% endtrans %} + CUNY Campus + Borough @@ -68,6 +68,28 @@
{% endif %} + + {{ user.team.name }} + + + {% set user_ns = namespace(college=null, borough=null) %} + {% for field in user.fields %} + {% if field.name == "CUNY Campus" %} + {% set user_ns.college = field.value %} + {% elif field.name == "CUNY Campus Borough" %} + {% set user_ns.borough = field.value %} + {% endif %} + {% endfor %} + + + {{ user_ns.college }} + + + + {{ user_ns.borough }} + + + {# {% if user.website and (user.website.startswith('http://') or user.website.startswith('https://')) %} @@ -100,6 +122,7 @@
{% endif %} + #} {% endfor %}