2021-03-04 14:43:23 +01:00
|
|
|
<!-- Buttons to add to the header. -->
|
|
|
|
<core-navbar-buttons slot="end">
|
2022-02-17 13:58:10 +01:00
|
|
|
<ion-button fill="clear" (click)="openModuleSummary()" aria-haspopup="true" [attr.aria-label]="'core.info' | translate">
|
2022-02-17 15:55:10 +01:00
|
|
|
<ion-icon name="fas-info-circle" slot="icon-only" aria-hidden="true"></ion-icon>
|
|
|
|
</ion-button>
|
2021-03-04 14:43:23 +01:00
|
|
|
</core-navbar-buttons>
|
|
|
|
|
|
|
|
<!-- Content. -->
|
2022-02-25 16:45:31 +01:00
|
|
|
<core-loading [hideUntil]="!showLoading" class="safe-area-padding list-item-limited-width">
|
2021-03-04 14:43:23 +01:00
|
|
|
|
2021-05-07 10:09:31 +02:00
|
|
|
<!-- Activity info. -->
|
2022-02-25 10:25:24 +01:00
|
|
|
<core-course-module-info [module]="module" [description]="description" [component]="component" [componentId]="componentId"
|
2022-03-02 13:40:07 +01:00
|
|
|
[courseId]="courseId" (completionChanged)="onCompletionChange()">
|
2021-05-07 10:09:31 +02:00
|
|
|
</core-course-module-info>
|
|
|
|
|
2022-02-25 10:25:24 +01:00
|
|
|
<ion-list>
|
2021-04-27 13:14:31 +02:00
|
|
|
<ion-item>
|
2022-02-25 10:25:24 +01:00
|
|
|
<ion-label>
|
|
|
|
<h2>{{ 'addon.mod_imscp.toc' | translate }}</h2>
|
|
|
|
</ion-label>
|
2021-04-27 13:14:31 +02:00
|
|
|
</ion-item>
|
2021-03-04 14:43:23 +01:00
|
|
|
|
2022-02-25 10:25:24 +01:00
|
|
|
<ion-item class="ion-text-wrap" *ngFor="let item of items" (click)="openImscp(item.href)" button detail="true">
|
|
|
|
<ion-label [class.core-bold]="!item.href">
|
|
|
|
<p>
|
|
|
|
<span class="ion-padding-start" *ngFor="let i of getNumberForPadding(item.level)"></span>
|
|
|
|
{{item.title}}
|
|
|
|
</p>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
</ion-list>
|
2021-12-03 13:45:23 +01:00
|
|
|
|
2022-03-07 12:04:32 +01:00
|
|
|
<div collapsible-footer appearOnBottom *ngIf="!showLoading" slot="fixed">
|
2022-02-25 10:25:24 +01:00
|
|
|
<div class="list-item-limited-width">
|
|
|
|
<ion-button class="ion-margin ion-text-wrap" expand="block" (click)="openImscp()">
|
|
|
|
<span *ngIf="!hasStarted">{{ 'core.start' | translate }}</span>
|
|
|
|
<span *ngIf="hasStarted">{{ 'core.resume' | translate }}</span>
|
|
|
|
</ion-button>
|
|
|
|
</div>
|
|
|
|
|
2022-03-02 13:40:07 +01:00
|
|
|
<core-course-module-navigation [courseId]="courseId" [currentModuleId]="module.id">
|
2022-02-24 16:44:24 +01:00
|
|
|
</core-course-module-navigation>
|
|
|
|
</div>
|
|
|
|
</core-loading>
|