Skip to content

Commit

Permalink
Merge pull request #220 from datasci4health/development
Browse files Browse the repository at this point in the history
fix (template): quiz sequence links
  • Loading branch information
HeitorMatt authored Sep 3, 2020
2 parents 91d5c62 + 709cfd3 commit ad07f81
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
26 changes: 25 additions & 1 deletion src/adonisjs/public/dccs/edit/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 2 additions & 10 deletions src/adonisjs/public/templates/simple/case/quiz_sequence.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -20,22 +20,14 @@ 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)

**You answered:** ^Presentation.input1^.
<br>
^parameter^

# Presentation References (note)

**You answered:** ^Presentation.input1^.
<br>
^parameter^

References <-> References

# References (note)

* [Enter References](References)
Expand Down
2 changes: 2 additions & 0 deletions src/adonisjs/public/translator/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) + "'"
Expand Down

0 comments on commit ad07f81

Please sign in to comment.