From d3bf885e15b9446fc0a69daa13aac0fae81c34ab Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Fri, 7 Jun 2024 17:09:32 -0400 Subject: [PATCH] Quick fix for waiver consent issues We're running into various problems with admins not being able to edit the waiver signature boxes, so we're now allowing them in certain cases. --- .../forms/attendee/admin_consents.html | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/magstock/templates/forms/attendee/admin_consents.html b/magstock/templates/forms/attendee/admin_consents.html index 6d91cb6..5d24f39 100644 --- a/magstock/templates/forms/attendee/admin_consents.html +++ b/magstock/templates/forms/attendee/admin_consents.html @@ -3,11 +3,20 @@ {% block required %} {{ super() }} -{{ form_macros.form_input(consents.acknowledged_checkin_policy, force_hidden=True)}} -{{ form_macros.form_input(consents.waiver_consent, force_hidden=True)}} +{% set allow_waiver_signature = not consents.waiver_signature or attendee.is_new or attendee.placeholder %} -
-
{{ form_macros.form_input(consents.waiver_signature, readonly=True) }}
-
{{ form_macros.form_input(consents.waiver_date, readonly=True) }}
-
+{% if allow_waiver_signature %} +
+
{{ form_macros.form_input(consents.waiver_signature) }}
+
{{ form_macros.form_input(consents.waiver_date) }}
+
+{% else %} + {{ form_macros.form_input(consents.acknowledged_checkin_policy, force_hidden=True)}} + {{ form_macros.form_input(consents.waiver_consent, force_hidden=True)}} + +
+
{{ form_macros.form_input(consents.waiver_signature, readonly=True) }}
+
{{ form_macros.form_input(consents.waiver_date, readonly=True) }}
+
+{% endif %} {% endblock %} \ No newline at end of file