From eec04a351c96df8e27d7a0a9b47db0ab0b7d283a Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 16 Jun 2020 04:14:28 +0200 Subject: [PATCH 1/3] Start of dropdown question type, ref #340 Signed-off-by: Jan-Christoph Borchardt --- lib/Db/Question.php | 3 +- src/components/Questions/AnswerInput.vue | 15 +- src/components/Questions/QuestionDropdown.vue | 362 ++++++++++++++++++ src/components/Questions/QuestionMultiple.vue | 1 + src/models/AnswerTypes.js | 30 +- 5 files changed, 401 insertions(+), 10 deletions(-) create mode 100644 src/components/Questions/QuestionDropdown.vue diff --git a/lib/Db/Question.php b/lib/Db/Question.php index 090d320..26549d0 100644 --- a/lib/Db/Question.php +++ b/lib/Db/Question.php @@ -52,7 +52,8 @@ class Question extends Entity { 'short', 'long', 'multiple', - 'multiple_unique' + 'multiple_unique', + 'dropdown' ]; public function __construct() { diff --git a/src/components/Questions/AnswerInput.vue b/src/components/Questions/AnswerInput.vue index d9aacb3..ef1abb8 100644 --- a/src/components/Questions/AnswerInput.vue +++ b/src/components/Questions/AnswerInput.vue @@ -1,6 +1,10 @@