Skip to content

Commit

Permalink
Quick fix for waiver consent issues
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kitsuta committed Jun 7, 2024
1 parent daaa555 commit d3bf885
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions magstock/templates/forms/attendee/admin_consents.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

<div class="row g-sm-3">
<div class="col-12 col-sm-6">{{ form_macros.form_input(consents.waiver_signature, readonly=True) }}</div>
<div class="col-12 col-sm-6">{{ form_macros.form_input(consents.waiver_date, readonly=True) }}</div>
</div>
{% if allow_waiver_signature %}
<div class="row g-sm-3">
<div class="col-12 col-sm-6">{{ form_macros.form_input(consents.waiver_signature) }}</div>
<div class="col-12 col-sm-6">{{ form_macros.form_input(consents.waiver_date) }}</div>
</div>
{% else %}
{{ form_macros.form_input(consents.acknowledged_checkin_policy, force_hidden=True)}}
{{ form_macros.form_input(consents.waiver_consent, force_hidden=True)}}

<div class="row g-sm-3">
<div class="col-12 col-sm-6">{{ form_macros.form_input(consents.waiver_signature, readonly=True) }}</div>
<div class="col-12 col-sm-6">{{ form_macros.form_input(consents.waiver_date, readonly=True) }}</div>
</div>
{% endif %}
{% endblock %}

0 comments on commit d3bf885

Please sign in to comment.