forked from EVOgeek/Vmeda.Online
58 lines
3.0 KiB
HTML
58 lines
3.0 KiB
HTML
<ion-header>
|
||
<ion-navbar>
|
||
<ion-title><core-format-text [text]="title"></core-format-text></ion-title>
|
||
</ion-navbar>
|
||
</ion-header>
|
||
<ion-content>
|
||
<ion-refresher [enabled]="eventLoaded" (ionRefresh)="refreshEvent($event)">
|
||
<ion-refresher-content pullingText="{{ 'core.pulltorefresh' | translate }}"></ion-refresher-content>
|
||
</ion-refresher>
|
||
<core-loading [hideUntil]="eventLoaded" class="core-loading-center">
|
||
<ion-card>
|
||
<ion-card-content>
|
||
<ion-card-title text-wrap>
|
||
<ion-icon *ngIf="!event.moduleIcon" name="{{event.icon}}" item-start></ion-icon>
|
||
<core-format-text [text]="event.name"></core-format-text>
|
||
</ion-card-title>
|
||
<ion-item text-wrap>
|
||
<h2>{{ 'addon.calendar.eventstarttime' | translate}}</h2>
|
||
<p>{{ event.timestart | coreToLocaleString }}</p>
|
||
</ion-item>
|
||
<ion-item text-wrap *ngIf="event.timeduration > 0">
|
||
<h2>{{ 'addon.calendar.eventendtime' | translate}}</h2>
|
||
<p>{{ (event.timestart + event.timeduration) | coreToLocaleString }}</p>
|
||
</ion-item>
|
||
<ion-item text-wrap *ngIf="courseName">
|
||
<h2>{{ 'core.course' | translate}}</h2>
|
||
<p><core-format-text [text]="courseName"></core-format-text></p>
|
||
</ion-item>
|
||
<ion-item text-wrap *ngIf="event.moduleIcon">
|
||
<img *ngIf="event.moduleIcon" src="{{event.moduleIcon}}" item-start> {{event.moduleName}}
|
||
</ion-item>
|
||
<ion-item>
|
||
<p text-wrap *ngIf="event.description">
|
||
<core-format-text [text]="event.description"></core-format-text>
|
||
</p>
|
||
</ion-item>
|
||
</ion-card-content>
|
||
</ion-card>
|
||
|
||
<ion-card list *ngIf="notificationsEnabled">
|
||
<ion-item>
|
||
<ion-label>{{ 'addon.calendar.notifications' | translate }}</ion-label>
|
||
<ion-select [(ngModel)]="notificationTime" (ionChange)="updateNotificationTime($event)">
|
||
<ion-option value="-1">{{ 'core.defaultvalue' | translate :{$a: defaultTimeReadable} }}</ion-option>
|
||
<ion-option value="0">{{ 'core.settings.disabled' | translate }}</ion-option>
|
||
<ion-option value="10">{{ 600 | coreDuration }}</ion-option>
|
||
<ion-option value="30">{{ 1800 | coreDuration }}</ion-option>
|
||
<ion-option value="60">{{ 3600 | coreDuration }}</ion-option>
|
||
<ion-option value="120">{{ 7200 | coreDuration }}</ion-option>
|
||
<ion-option value="360">{{ 21600 | coreDuration }}</ion-option>
|
||
<ion-option value="720">{{ 43200 | coreDuration }}</ion-option>
|
||
<ion-option value="1440">{{ 86400 | coreDuration }}</ion-option>
|
||
</ion-select>
|
||
</ion-item>
|
||
</ion-card>
|
||
</core-loading>
|
||
</ion-content>
|