From 709cfd39a60cbcaa46904f90a530b915aef8a586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santanch=C3=A8?= Date: Thu, 3 Sep 2020 02:13:10 -0300 Subject: [PATCH] fix (template): quiz sequence links --- src/adonisjs/public/dccs/edit/properties.js | 26 ++++++++++++++++++- .../templates/simple/case/quiz_sequence.md | 12 ++------- src/adonisjs/public/translator/translator.js | 2 ++ 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/src/adonisjs/public/dccs/edit/properties.js b/src/adonisjs/public/dccs/edit/properties.js index e19a517be..b4a152b43 100644 --- a/src/adonisjs/public/dccs/edit/properties.js +++ b/src/adonisjs/public/dccs/edit/properties.js @@ -477,7 +477,31 @@ class Properties { role: 'input' }, text: { - type: 'shortStr', + type: 'text', + label: 'Statement', + visual: 'inline', + role: 'text' + }, + variable: { + type: 'variable', + label: 'Variable', + visual: 'panel' + }, + vocabularies: { + type: 'select', + options: 'selectVocabulary', + label: 'Vocabularies', + visual: 'panel' + } + }, + text: { + input: { + type: 'void', + visual: 'inline', + role: 'input' + }, + text: { + type: 'text', label: 'Statement', visual: 'inline', role: 'text' diff --git a/src/adonisjs/public/templates/simple/case/quiz_sequence.md b/src/adonisjs/public/templates/simple/case/quiz_sequence.md index e66975e25..03d2c47f3 100644 --- a/src/adonisjs/public/templates/simple/case/quiz_sequence.md +++ b/src/adonisjs/public/templates/simple/case/quiz_sequence.md @@ -8,7 +8,7 @@ Write here the **stem** of your question. + Distractor 2 <-> "Feedback for Distractor 2" + Distractor 3 <-> "Feedback for Distractor 3" -* Next Question -> Knot.Next +* Next Question -> Flow.Next # Quiz2 (quiz) @@ -20,7 +20,7 @@ Write here the **stem** of your question. + Distractor 2 <-> "Feedback for Distractor 2" + Distractor 3 <-> "Feedback for Distractor 3" -* Next Question -> Knot.Next +* Next Question -> Flow.Next # Note (note) @@ -28,14 +28,6 @@ Write here the **stem** of your question.
^parameter^ -# Presentation References (note) - -**You answered:** ^Presentation.input1^. -
-^parameter^ - -References <-> References - # References (note) * [Enter References](References) diff --git a/src/adonisjs/public/translator/translator.js b/src/adonisjs/public/translator/translator.js index 0ea2089b7..29effdda9 100644 --- a/src/adonisjs/public/translator/translator.js +++ b/src/adonisjs/public/translator/translator.js @@ -1900,6 +1900,8 @@ class Translator { ((obj[atr] == 'true') ? '' : "='" + obj[atr] + "'") } } + if (obj.subtype == 'text') + extraAttr += ' rows="5"' if (obj.contextTarget) { extraAttr += " target='" + this._transformNavigationMessage(obj.contextTarget) + "'"