diff --git a/src/web/src/components/QuestionRenderer.vue b/src/web/src/components/QuestionRenderer.vue
index 95925ad..6b3122b 100644
--- a/src/web/src/components/QuestionRenderer.vue
+++ b/src/web/src/components/QuestionRenderer.vue
@@ -26,9 +26,11 @@
v-if="question.isValid() && question.OPTIONAL == 0"
>mdi-check-bold
+ {{ question.answer }}
+
@@ -115,9 +117,46 @@
+
+
+
Select items on the left to move them to the ordered list on the right. To remove items from the ranking,
+ click them.
+
+
+ Available options:
+
+
+ {{ option.descr }}
+
+
+
+
+
+ Ranked options:
+ Please choose your top {{ question.SELECT_LIMIT }}:
+
+
+
+
+ {{ index + 1 }}. {{ item }}
+
+
+
+
+
{{ question }}
+
@@ -127,7 +166,7 @@
@@ -248,4 +311,13 @@ table.matrix th {
font-weight: 400;
font-size: 0.95rem;
}
+
+.rankingOption {
+ border: 1px #999 solid;
+ border-radius: 4px;
+ padding: 5px 10px;
+ margin-bottom: 5px;
+ background-color: white;
+ cursor: pointer;
+}
diff --git a/src/web/src/modules/administration/modules/survey/components/QuestionEditor.vue b/src/web/src/modules/administration/modules/survey/components/QuestionEditor.vue
index 9e6ee53..36ab44c 100644
--- a/src/web/src/modules/administration/modules/survey/components/QuestionEditor.vue
+++ b/src/web/src/modules/administration/modules/survey/components/QuestionEditor.vue
@@ -81,8 +81,34 @@
clearable
item-title="TITLE" />
+
+
+
+
+
-
+
+
+
+
+
i);
+
+ if (q.SELECT_LIMIT) {
+ const limit = parseInt(q.SELECT_LIMIT);
+ if (items.length < limit) return false;
+ }
+
+ return items.length > 0;
+ }
+
if (q.TYPE == "matrix_question") {
return q.answer && q.answer != false;
}