{# events/partials/rsvp_page_questions_answer.html #} {# Render inputs only — the wrapping form handles submission. #} {% comment %} Helper pattern: scan the responses QuerySets to see if an existing Response exists for this question (and guest when relevant). The template uses loops to determine whether to render `checked` or prefill `value`. {% endcomment %} {% if question.kind == "single" %} {% for choice in question.choices.all %}
{% endfor %} {% elif question.kind == "multiple" %} {% for choice in question.choices.all %}
{% endfor %} {% elif question.kind == "boolean" %}
{% elif question.kind == "integer" %} {% else %} {% endif %}