-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathevents-view.html
More file actions
60 lines (57 loc) · 2.16 KB
/
events-view.html
File metadata and controls
60 lines (57 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<ion-header>
<ion-navbar>
<ion-title>{{ event.title }}</ion-title>
</ion-navbar>
</ion-header>
<ion-content class="events">
<ion-list>
<ion-item class="title-background"
[ngStyle]="{'background-image': 'url(' + event.coverUrl + ')'}">
<p class="title">{{ event.title }}</p>
<div *ngIf="event.isBooked" class="status">
<div class="tag">{{ (event.isAttended) ? 'Attended' : 'Booked' }}</div>
</div>
</ion-item>
</ion-list>
<ion-list class="details">
<ion-row>
<ion-col col-8 class="info">
<p><strong>{{ event.startDisplay }}</strong></p>
<p class="lighter">{{ event.location }}</p>
<p class="lighter">{{ event.activity.name }}</p>
</ion-col>
</ion-row>
</ion-list>
<ion-list no-lines>
<ion-item text-wrap>
{{ event.description || 'No description available.' }}
</ion-item>
</ion-list>
<ion-list inset class="download" *ngIf="event.files && event.files.length > 0">
<button ion-item (click)="gotoDownload(event)" detail-push>{{ 'GENERAL.DOWNLOAD' | translate }}</button>
</ion-list>
</ion-content>
<ion-footer class="events">
<ion-toolbar>
<p class="lighter spacer-left">{{ bookingStatus }}</p>
<ion-buttons end *ngIf="loadings.checkin">
<ion-spinner></ion-spinner>
</ion-buttons>
<ion-buttons end *ngIf="!loadings.checkin">
<button ion-button *ngIf="!event.isBooked" class="book-btn" (click)="book(event)">
{{ 'EVENTS.BOOK' | translate }}
</button>
<button ion-button *ngIf="event.isBooked && hasReference(event) && allowCheckIn(event)" class="checkin-btn" (click)="checkin(event)">
<span *ngIf="completedSubmissions">
{{ 'EVENTS.VIEWCHECKIN' | translate }}
</span>
<span *ngIf="!completedSubmissions">
{{ 'EVENTS.CHECKIN' | translate }}
</span>
</button>
<button ion-button *ngIf="!completedSubmissions && !event.isAttended && event.isBooked && hasReference(event) && allowCheckIn(event)" class="cancel-btn" outline (click)="cancelBooking(event)">
{{ 'EVENTS.CANCELBOOKING' | translate }}
</button>
</ion-buttons>
</ion-toolbar>
</ion-footer>