-
Notifications
You must be signed in to change notification settings - Fork 0
/
scheduler.component.html
26 lines (26 loc) · 998 Bytes
/
scheduler.component.html
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
<div class="scheduler">
<div class="header">
<div class="actions">
<i (click)="prevWeek()" class="pi pi-angle-left"></i>
<i (click)="nextWeek()" class="pi pi-angle-right"></i>
</div>
<div class="title">
<span> {{ startDate | formatMoment: 'MMMM D'}}, {{ startDate | formatMoment: 'YYYY'}} </span>
<span> {{ endDate | formatMoment: 'MMMM D'}}, {{ endDate | formatMoment: 'YYYY'}} </span>
</div>
</div>
<div class="body">
<div class="days">
<div class="day" *ngFor="let day of weekDays">
<div class="day-name">{{ day | formatMoment: 'MMM' }}</div>
<div class="day-date">{{ day | formatMoment: 'D' }}</div>
</div>
</div>
<div class="hours scrollbar">
<div class="day-hours" *ngFor="let day of weekDays">
<p class="hour" *ngFor="let hour of getHours(day)" (click)="onClick(hour)" [class.active]="isSelected(hour)">
{{ hour | formatMoment: 'HH:mm' }}
</p>
</div>
</div>
</div>