MOBILE-3931 lesson: Add missing ion-labels
parent
b40bbef46b
commit
f5918e08a7
|
@ -36,20 +36,24 @@
|
||||||
|
|
||||||
<!-- Retake and ongoing score. -->
|
<!-- Retake and ongoing score. -->
|
||||||
<ion-item class="ion-text-wrap" *ngIf="showRetake && !eolData && !processData">
|
<ion-item class="ion-text-wrap" *ngIf="showRetake && !eolData && !processData">
|
||||||
<p>{{ 'addon.mod_lesson.attempt' | translate:{$a: retake} }}</p>
|
<ion-label>
|
||||||
|
<p>{{ 'addon.mod_lesson.attempt' | translate:{$a: retake} }}</p>
|
||||||
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item *ngIf="pageData && pageData.ongoingscore && !eolData && !processData"
|
<ion-item *ngIf="pageData && pageData.ongoingscore && !eolData && !processData"
|
||||||
class="addon-mod_lesson-ongoingscore ion-text-wrap">
|
class="addon-mod_lesson-ongoingscore ion-text-wrap">
|
||||||
{{ pageData.ongoingscore }}
|
<ion-label>{{ pageData.ongoingscore }}</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<!-- Page content. -->
|
<!-- Page content. -->
|
||||||
<ion-card *ngIf="!eolData && !processData">
|
<ion-card *ngIf="!eolData && !processData">
|
||||||
<!-- Content page. -->
|
<!-- Content page. -->
|
||||||
<ion-item class="ion-text-wrap" *ngIf="!question && pageContent">
|
<ion-item class="ion-text-wrap" *ngIf="!question && pageContent">
|
||||||
<core-format-text [component]="component" [componentId]="lesson.coursemodule" [text]="pageContent" contextLevel="module"
|
<ion-label>
|
||||||
[contextInstanceId]="lesson.coursemodule" [courseId]="courseId">
|
<core-format-text [component]="component" [componentId]="lesson.coursemodule" [text]="pageContent"
|
||||||
</core-format-text>
|
contextLevel="module" [contextInstanceId]="lesson.coursemodule" [courseId]="courseId">
|
||||||
|
</core-format-text>
|
||||||
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<!-- Question page. -->
|
<!-- Question page. -->
|
||||||
|
@ -71,20 +75,24 @@
|
||||||
|
|
||||||
<!-- Short answer. -->
|
<!-- Short answer. -->
|
||||||
<ion-item class="ion-text-wrap" *ngSwitchCase="'shortanswer'">
|
<ion-item class="ion-text-wrap" *ngSwitchCase="'shortanswer'">
|
||||||
<ion-input [type]="question.input!.type" placeholder="{{ 'addon.mod_lesson.youranswer' | translate }}"
|
<ion-label>
|
||||||
[id]="question.input!.id" [formControlName]="question.input!.name" autocorrect="off"
|
<ion-input [type]="question.input!.type" placeholder="{{ 'addon.mod_lesson.youranswer' | translate }}"
|
||||||
[maxlength]="question.input!.maxlength">
|
[id]="question.input!.id" [formControlName]="question.input!.name" autocorrect="off"
|
||||||
</ion-input>
|
[maxlength]="question.input!.maxlength">
|
||||||
|
</ion-input>
|
||||||
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<!-- Essay. -->
|
<!-- Essay. -->
|
||||||
<ng-container *ngSwitchCase="'essay'">
|
<ng-container *ngSwitchCase="'essay'">
|
||||||
<ion-item *ngIf="question.textarea">
|
<ion-item *ngIf="question.textarea">
|
||||||
<core-rich-text-editor placeholder="{{ 'addon.mod_lesson.youranswer' | translate }}"
|
<ion-label>
|
||||||
[control]="question.control" [component]="component" [componentId]="lesson?.coursemodule"
|
<core-rich-text-editor placeholder="{{ 'addon.mod_lesson.youranswer' | translate }}"
|
||||||
[autoSave]="true" contextLevel="module" [contextInstanceId]="lesson?.coursemodule"
|
[control]="question.control" [component]="component" [componentId]="lesson?.coursemodule"
|
||||||
elementId="answer_editor">
|
[autoSave]="true" contextLevel="module" [contextInstanceId]="lesson?.coursemodule"
|
||||||
</core-rich-text-editor>
|
elementId="answer_editor">
|
||||||
|
</core-rich-text-editor>
|
||||||
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
<ion-item class="ion-text-wrap" *ngIf="!question.textarea && question.useranswer">
|
<ion-item class="ion-text-wrap" *ngIf="!question.textarea && question.useranswer">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
|
|
Loading…
Reference in New Issue