From 79375c3d190ce9a029ee41b15feda70e7bcf1f06 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Mon, 12 Feb 2024 15:32:54 +0100 Subject: [PATCH] Update gymnast listing --- jarvis/people/templates/gymnasts/list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jarvis/people/templates/gymnasts/list.html b/jarvis/people/templates/gymnasts/list.html index bd92073..022a024 100644 --- a/jarvis/people/templates/gymnasts/list.html +++ b/jarvis/people/templates/gymnasts/list.html @@ -27,7 +27,7 @@ - {% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %} + {% if request.user|has_group:"trainer" %} {% endif %} @@ -41,11 +41,13 @@ {% for season_information in season_information_list %} - {% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %} + {% if request.user|has_group:"trainer" %} {% endif %}
Lastname
+ {% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %} + {% endif %} {% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %}{% endif %}{{ season_information.gymnast.last_name }}