From 6898e9413aa587323aa52d13e3da65f2f4ed37ce Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 24 Jan 2021 23:37:55 +0100 Subject: [PATCH 1/4] Fix user detail for children --- apps/registration/templates/registration/user_detail.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/registration/templates/registration/user_detail.html b/apps/registration/templates/registration/user_detail.html index ff3c6ad..b29a835 100644 --- a/apps/registration/templates/registration/user_detail.html +++ b/apps/registration/templates/registration/user_detail.html @@ -65,8 +65,8 @@ {% endif %} - {% if user_object.registration.studentregistration and user_object.registration.participation.tournament and not user_object.registration.participation.tournament.remote %} - {% if user_object.registration.under_18 %} + {% if user_object.registration.studentregistration %} + {% if user_object.registration.under_18 and user_object.registration.team.participation.tournament and not user_object.registration.team.participation.tournament.remote %}
{% trans "Health sheet:" %}
{% if user_object.registration.health_sheet %} From 8212568feefd4477a2e0ca703f3e55e1ec221f56 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 24 Jan 2021 23:40:05 +0100 Subject: [PATCH 2/4] The user detail page is on a separate page since custom JS can't be loaded --- .../templates/registration/user_detail.html | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/apps/registration/templates/registration/user_detail.html b/apps/registration/templates/registration/user_detail.html index b29a835..757c15e 100644 --- a/apps/registration/templates/registration/user_detail.html +++ b/apps/registration/templates/registration/user_detail.html @@ -150,7 +150,7 @@ {% if user.pk == user_object.pk or user.registration.is_admin %} - {% trans "Update user" as modal_title %} - {% trans "Update" as modal_button %} - {% url "registration:update_user" pk=user_object.pk as modal_action %} - {% include "base_modal.html" with modal_id="updateUser" %} - {% if user_object.registration.team and not user_object.registration.team.participation.valid %} {% trans "Upload photo authorization" as modal_title %} {% trans "Upload" as modal_button %} @@ -196,11 +191,6 @@ {% block extrajavascript %}