MOBILE-4470 quiz: Improve review status page to be more readable

main
Pau Ferrer Ocaña 2024-05-17 15:14:20 +02:00
parent 24aeb1dfc1
commit 42b67d58a3
3 changed files with 5 additions and 26 deletions

View File

@ -926,7 +926,6 @@
"addon.mod_quiz.overduemustbesubmittedby": "quiz",
"addon.mod_quiz.preview": "quiz",
"addon.mod_quiz.previewquiznow": "quiz",
"addon.mod_quiz.question": "quiz",
"addon.mod_quiz.quiznavigation": "quiz",
"addon.mod_quiz.quizpassword": "quizaccess_password",
"addon.mod_quiz.reattemptquiz": "quiz",
@ -943,7 +942,6 @@
"addon.mod_quiz.stateinprogress": "quiz",
"addon.mod_quiz.stateoverdue": "quiz",
"addon.mod_quiz.stateoverduedetails": "quiz",
"addon.mod_quiz.status": "quiz",
"addon.mod_quiz.submission_confirmation_unanswered": "quiz",
"addon.mod_quiz.submitallandfinish": "quiz",
"addon.mod_quiz.summaryofattempt": "quiz",

View File

@ -54,7 +54,6 @@
"overduemustbesubmittedby": "This attempt is now overdue. It should already have been submitted. If you would like this quiz to be graded, you must submit it by {{$a}}. If you do not submit it by then, no marks from this attempt will be counted.",
"preview": "Preview",
"previewquiznow": "Preview quiz now",
"question": "Question",
"quiznavigation": "Quiz navigation",
"quizpassword": "Quiz password",
"reattemptquiz": "Re-attempt quiz",
@ -71,7 +70,6 @@
"stateinprogress": "In progress",
"stateoverdue": "Overdue",
"stateoverduedetails": "Must be submitted by {{$a}}",
"status": "Status",
"submission_confirmation_unanswered": "Questions without a response: {{$a}}",
"submitallandfinish": "Submit all and finish",
"summaryofattempt": "Summary of attempt",

View File

@ -68,38 +68,21 @@
<ion-card-title>{{ 'addon.mod_quiz.summaryofattempt' | translate }}</ion-card-title>
</ion-card-header>
<!-- "Header" of the summary table. -->
<ion-item class="ion-text-wrap">
<ion-label>
<ion-row class="ion-align-items-center">
<ion-col size="3" class="ion-text-center ion-hide-md-down">
<strong>{{ 'addon.mod_quiz.question' | translate }}</strong>
</ion-col>
<ion-col size="3" class="ion-text-center ion-hide-md-up"><strong>#</strong></ion-col>
<ion-col size="9" class="ion-text-center">
<strong>{{ 'addon.mod_quiz.status' | translate }}</strong>
</ion-col>
</ion-row>
</ion-label>
</ion-item>
<!-- List of questions of the summary table. -->
<ng-container *ngFor="let question of summaryQuestions">
<ion-item *ngIf="question.type !== 'description' && question.questionnumber"
(click)="!isSequential && canReturn && changePage(question.page, false, question.slot)"
[attr.aria-label]="'core.question.questionno' | translate:{$a: question.questionnumber}"
[detail]="!isSequential && canReturn" [button]="!isSequential && canReturn">
[detail]="!isSequential && canReturn" [button]="!isSequential && canReturn" class="ion-text-wrap">
<ion-label>
<ion-row class="ion-align-items-center">
<ion-col size="3" class="ion-text-center ion-text-wrap">{{ question.questionnumber }}</ion-col>
<ion-col size="9" class="ion-text-center ion-text-wrap">{{ question.status }}</ion-col>
</ion-row>
<span [attr.aria-label]="'core.question.questionno' | translate:{$a: question.questionnumber}">
{{ question.questionnumber }}.</span> {{ question.status }}
</ion-label>
</ion-item>
</ng-container>
<!-- Due date warning. -->
<ion-item class="ion-text-wrap" *ngIf="dueDateWarning">
<ion-item class="ion-text-wrap core-warning-item" *ngIf="dueDateWarning">
<ion-icon slot="start" name="fas-triangle-exclamation" color="warning" aria-hidden="true" />
<ion-label>{{ dueDateWarning }}</ion-label>
</ion-item>