2021-03-11 15:55:14 +01:00
|
|
|
<ion-header>
|
|
|
|
<ion-toolbar>
|
|
|
|
<ion-buttons slot="start">
|
2021-04-27 15:21:09 +02:00
|
|
|
<ion-back-button [text]="'core.back' | translate"></ion-back-button>
|
2021-03-11 15:55:14 +01:00
|
|
|
</ion-buttons>
|
2021-03-16 12:27:28 +01:00
|
|
|
<ion-title *ngIf="plan">{{plan.plan.name}}</ion-title>
|
2021-03-11 15:55:14 +01:00
|
|
|
</ion-toolbar>
|
|
|
|
</ion-header>
|
|
|
|
<ion-content>
|
|
|
|
<ion-refresher slot="fixed" [disabled]="!loaded" (ionRefresh)="refreshLearningPlan($event.target)">
|
|
|
|
<ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
|
|
|
|
</ion-refresher>
|
|
|
|
<core-loading [hideUntil]="loaded">
|
|
|
|
<ion-card *ngIf="user">
|
|
|
|
<ion-item class="ion-text-wrap">
|
|
|
|
<ion-label>
|
|
|
|
<core-user-avatar [user]="user" slot="start"></core-user-avatar>
|
2021-03-16 12:27:28 +01:00
|
|
|
<h2>{{ user.fullname }}</h2>
|
2021-03-11 15:55:14 +01:00
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
</ion-card>
|
|
|
|
<ion-card *ngIf="plan">
|
|
|
|
<ion-list>
|
2021-03-16 12:27:28 +01:00
|
|
|
<ion-item class="ion-text-wrap" *ngIf="plan.plan.description" lines="none">
|
2021-03-11 15:55:14 +01:00
|
|
|
<ion-label>
|
2021-03-16 12:27:28 +01:00
|
|
|
<core-format-text [text]="plan.plan.description" contextLevel="user"
|
|
|
|
[contextInstanceId]="plan.plan.userid">
|
2021-03-11 15:55:14 +01:00
|
|
|
</core-format-text>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
<ion-item class="ion-text-wrap" lines="none">
|
|
|
|
<ion-label>
|
|
|
|
<p>
|
2021-03-16 12:27:28 +01:00
|
|
|
<strong>{{ 'addon.competency.status' | translate }}</strong>: {{ plan.plan.statusname }}
|
2021-03-11 15:55:14 +01:00
|
|
|
</p>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
2021-03-16 12:27:28 +01:00
|
|
|
<ion-item class="ion-text-wrap" *ngIf="plan.plan.duedate > 0" lines="none">
|
2021-03-11 15:55:14 +01:00
|
|
|
<ion-label>
|
|
|
|
<p>
|
|
|
|
<strong>{{ 'addon.competency.duedate' | translate }}</strong>:
|
|
|
|
{{ plan.plan.duedate * 1000 | coreFormatDate }}
|
|
|
|
</p>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
2021-03-16 12:27:28 +01:00
|
|
|
<ion-item class="ion-text-wrap" *ngIf="plan.plan.template" lines="none">
|
2021-03-11 15:55:14 +01:00
|
|
|
<ion-label>
|
|
|
|
<p>
|
2021-03-16 12:27:28 +01:00
|
|
|
<strong>{{ 'addon.competency.template' | translate }}</strong>: {{ plan.plan.template.shortname }}
|
2021-03-11 15:55:14 +01:00
|
|
|
</p>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
<ion-item class="ion-text-wrap" lines="none">
|
|
|
|
<ion-label>
|
|
|
|
<p>
|
|
|
|
<strong>{{ 'addon.competency.progress' | translate }}</strong>:
|
|
|
|
{{ 'addon.competency.xcompetenciesproficientoutofy' | translate:
|
|
|
|
{$a: {x: plan.proficientcompetencycount, y: plan.competencycount} } }}
|
|
|
|
</p>
|
|
|
|
<core-progress-bar [progress]="plan.proficientcompetencypercentage"
|
|
|
|
[text]="plan.proficientcompetencypercentageformatted"></core-progress-bar>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
</ion-list>
|
|
|
|
</ion-card>
|
|
|
|
<ion-card *ngIf="plan">
|
|
|
|
<ion-card-header class="ion-text-wrap">
|
|
|
|
<h2>{{ 'addon.competency.learningplancompetencies' | translate }}</h2>
|
|
|
|
</ion-card-header>
|
|
|
|
<ion-list>
|
|
|
|
<ion-item class="ion-text-wrap" *ngIf="plan.competencycount == 0">
|
|
|
|
<ion-label>
|
|
|
|
<p>{{ 'addon.competency.nocompetencies' | translate }}</p>
|
|
|
|
</ion-label>
|
|
|
|
</ion-item>
|
|
|
|
<ion-item class="ion-text-wrap" *ngFor="let competency of plan.competencies"
|
|
|
|
(click)="openCompetency(competency.competency.id)"
|
|
|
|
[title]="competency.competency.shortname" detail="true">
|
|
|
|
<ion-label><h2>{{competency.competency.shortname}} <em>{{competency.competency.idnumber}}</em></h2></ion-label>
|
|
|
|
<ion-badge *ngIf="competency.usercompetencyplan" slot="end"
|
|
|
|
[color]="competency.usercompetencyplan.proficiency ? 'success' : 'danger'">
|
|
|
|
{{ competency.usercompetencyplan.gradename }}
|
|
|
|
</ion-badge>
|
|
|
|
<ion-badge *ngIf="!competency.usercompetencyplan" slot="end"
|
|
|
|
[color]="competency.usercompetency.proficiency ? 'success' : 'danger'">
|
|
|
|
{{ competency.usercompetency.gradename }}
|
|
|
|
</ion-badge>
|
|
|
|
</ion-item>
|
|
|
|
</ion-list>
|
|
|
|
</ion-card>
|
|
|
|
</core-loading>
|
|
|
|
</ion-content>
|