feat: let teamers fill in and read their questionnaire
This commit is contained in:
1 parent
2a041d25a0
commit
5e4e574076
11 files changed
+472
-2
No files matched your search
@@ -120,13 +120,14 @@ class QuestionnaireType extends AbstractType
|
||||
'label' => $question->label,
|
||||
'help' => $question->help,
|
||||
'required' => false,
|
||||
'row_attr' => null === $question->showIf ? [] : [
|
||||
// read by assets/controllers/questionnaire_controller.js
|
||||
'row_attr' => ['data-question-key' => $question->key] + (null === $question->showIf ? [] : [
|
||||
'data-show-if' => json_encode([
|
||||
'question' => $question->showIf->question,
|
||||
'operator' => $question->showIf->operator->value,
|
||||
'value' => $question->showIf->value,
|
||||
], JSON_THROW_ON_ERROR),
|
||||
],
|
||||
]),
|
||||
];
|
||||
|
||||
return match ($question->type) {
|
||||
|
||||
Reference in new issue
Block a user