diff --git a/package.json b/package.json index 265c848048..5b9f8f81de 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "planet", "license": "AGPL-3.0", - "version": "0.22.89", + "version": "0.22.90", "myplanet": { "latest": "v0.55.91", "min": "v0.53.91" diff --git a/src/app/exams/exams-add.component.html b/src/app/exams/exams-add.component.html index e9a56a2b7f..8fa5026c5f 100644 --- a/src/app/exams/exams-add.component.html +++ b/src/app/exams/exams-add.component.html @@ -25,7 +25,7 @@ - + diff --git a/src/app/exams/exams-question.component.html b/src/app/exams/exams-question.component.html index b1842acceb..0fc36188b7 100644 --- a/src/app/exams/exams-question.component.html +++ b/src/app/exams/exams-question.component.html @@ -1,5 +1,11 @@
+
+ Scale + + {{n}} + +
Type @@ -7,7 +13,7 @@ Text - Long answer Multiple Choice - single answer Multiple Choice - multiple answer - Rating Scale - 1 to 9 + Rating Scale
diff --git a/src/app/exams/exams-question.component.ts b/src/app/exams/exams-question.component.ts index b7816029aa..01ac4014e9 100644 --- a/src/app/exams/exams-question.component.ts +++ b/src/app/exams/exams-question.component.ts @@ -16,6 +16,7 @@ import { NgIf, NgFor } from '@angular/common'; import { PlanetMarkdownTextboxComponent } from '../shared/forms/planet-markdown-textbox.component'; import { FormErrorMessagesComponent } from '../shared/forms/form-error-messages.component'; import { MatButton, MatIconButton } from '@angular/material/button'; +import { MatButtonToggle, MatButtonToggleGroup } from '@angular/material/button-toggle'; import { MatCheckbox } from '@angular/material/checkbox'; import { MatInput } from '@angular/material/input'; import { MatIcon } from '@angular/material/icon'; @@ -27,7 +28,7 @@ import { MatIcon } from '@angular/material/icon'; imports: [ FormsModule, ReactiveFormsModule, MatFormField, MatLabel, MatSelect, MatOption, NgIf, PlanetMarkdownTextboxComponent, MatError, FormErrorMessagesComponent, MatButton, NgFor, MatCheckbox, - MatInput, MatIconButton, MatSuffix, MatIcon + MatInput, MatIconButton, MatSuffix, MatIcon, MatButtonToggle, MatButtonToggleGroup ] }) export class ExamsQuestionComponent implements OnInit, OnChanges, OnDestroy, AfterViewChecked { @@ -38,6 +39,7 @@ export class ExamsQuestionComponent implements OnInit, OnChanges, OnDestroy, Aft @Output() questionRemove = new EventEmitter(); @ViewChildren('choiceInput') choiceInputs: QueryList; correctCheckboxes: any = {}; + scaleMaxOptions = [ 5, 6, 7, 8, 9 ]; questionForm: QuestionFormGroup = this.examsService.newQuestionForm(this.examType === 'courses'); initializing = true; choiceAdded = false; diff --git a/src/app/exams/exams-question.scss b/src/app/exams/exams-question.scss index 4b2cfc3238..7c3e5fddbc 100644 --- a/src/app/exams/exams-question.scss +++ b/src/app/exams/exams-question.scss @@ -5,6 +5,7 @@ form { display: grid; grid-template-rows: 56px auto 56px; + grid-row-gap: 1rem; } .question-choices { @@ -20,8 +21,21 @@ .type-title-container { display: grid; - grid-template-columns: 1fr v.$form-width-1; - grid-column-gap: 0.5rem; + grid-template-columns: 2fr 8fr; + grid-column-gap: 1rem; + align-items: center; + } + + .scale-max-field { + display: flex; + align-items: center; + gap: 0.75rem; + flex-wrap: wrap; + } + + .scale-max-label { + font-size: 14px; + color: rgba(0, 0, 0, 0.6); } } diff --git a/src/app/exams/exams-view.component.html b/src/app/exams/exams-view.component.html index 614f854e63..968077aa46 100644 --- a/src/app/exams/exams-view.component.html +++ b/src/app/exams/exams-view.component.html @@ -32,86 +32,114 @@ +
+
+
- -
- - - - Enter answer here - - - - - - - - {{option.text}} - - -
- - Other: +
+ +
+ + + + Enter answer here + + + + + + +
+ + {{option.text}} - + check
-
- -
- - {examType, select, survey {You can choose one or more answers.} exam {There are one or more correct answers. Please choose all correct answers.}} - - - {{option.text}} - - -
- - Other: + +
+ + Other: + +
+ +
+ check +
+
+ +
+ + {examType, select, survey {You can choose one or more answers.} exam {There are one or more correct answers. Please choose all correct answers.}} + +
+ + {{option.text}} - + check
- -
-
-
- + +
+ + Other: + +
+ +
+ check +
+
-
+ +
+ +
+ +
+ +
+
+
+ - - -

Submitted answer:

- - - Correct - Incorrect - - - Comment - - -
- -

Response:

- - -

Grade:

-

Correct

-

Incorrect

+ +

Submitted answer:

+ + + Correct + Incorrect + + + Comment + +
- -

Feedback:

- + +

Response:

+ + +

Grade:

+

Correct

+

Incorrect

+
+ +

Feedback:

+ +
-
+