Commit be5f5398 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

small fix for query values and feedback

parent cb7ccfc2
{ {
"name": "mcClient", "name": "mcClient",
"version": "0.1.6", "version": "0.1.7",
"author": "Ionic Framework", "author": "Ionic Framework",
"homepage": "http://ionicframework.com/", "homepage": "http://ionicframework.com/",
"private": true, "private": true,
......
...@@ -91,6 +91,41 @@ ...@@ -91,6 +91,41 @@
</ion-grid> </ion-grid>
</ion-col> </ion-col>
</ion-row> </ion-row>
<ion-row>
<ion-col>
<h3>{{ 'EXERCISE_FEEDBACK' | translate }}</h3>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<ion-label>{{ 'EXERCISE_FEEDBACK_GENERAL' | translate }}</ion-label>
<ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.general"
name="feedbackGeneral"></ion-textarea>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<ion-label>{{ 'EXERCISE_FEEDBACK_CORRECT' | translate }}</ion-label>
<ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.correct"
name="feedbackCorrect"></ion-textarea>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<ion-label>{{ 'EXERCISE_FEEDBACK_PARTIALLY_CORRECT' | translate }}</ion-label>
<ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.partiallyCorrect"
name="feedbackPartiallyCorrect"></ion-textarea>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<ion-label>{{ 'EXERCISE_FEEDBACK_INCORRECT' | translate }}</ion-label>
<ion-textarea [(ngModel)]="exerciseProvider.exercise.feedback.incorrect"
name="feedbackIncorrect"></ion-textarea>
</ion-col>
</ion-row>
</ion-grid> </ion-grid>
<button ion-button (click)="generateExercise()">{{ 'PREVIEW' | translate }}</button> <button ion-button (click)="generateExercise()">{{ 'PREVIEW' | translate }}</button>
</div> </div>
......
...@@ -89,7 +89,7 @@ export class ShowTextPage { ...@@ -89,7 +89,7 @@ export class ShowTextPage {
adjustQueryValue(query: QueryMC) { adjustQueryValue(query: QueryMC) {
let availableValues = Object.keys(this.exerciseProvider.phenomenonMap[query.phenomenon][0]); let availableValues = Object.keys(this.exerciseProvider.phenomenonMap[query.phenomenon][0]);
// when the phenomenon changes, choose a (almost) random value as the default // when the phenomenon changes, choose a (almost) random value as the default
query.values = availableValues[Object.keys(availableValues)[0]]; query.values = [availableValues[Object.keys(availableValues)[0]]];
} }
adjustTranslations() { adjustTranslations() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment