feat: let the office test the questionnaire on any assignment
This commit is contained in:
1 parent
a35f91ac63
commit
9fedc5b5d3
13 files changed
+337
-29
No files matched your search
@@ -1,10 +1,9 @@
|
||||
{#
|
||||
# A submitted questionnaire response, read-only. Expects `definition` (the version the response
|
||||
# was submitted under) and `response`. Questions that are hidden or were left open are skipped;
|
||||
# an answer the definition does not know (an option key since renamed) is shown as stored rather
|
||||
# Questionnaire answers, read-only. Expects `definition` (the version they were given under) and
|
||||
# `answers`, keyed by question key. Questions that are hidden or were left open are skipped; an
|
||||
# answer the definition does not know (an option key since renamed) is shown as stored rather
|
||||
# than dropped.
|
||||
#}
|
||||
{% set answers = response.answers %}
|
||||
<div class="flex flex-col gap-y-8">
|
||||
{% for section in definition.sections %}
|
||||
{% set shown = section.questions|filter(question => answers[question.key] is defined and definition.isVisible(question, answers)) %}
|
||||
|
||||
Reference in new issue
Block a user