mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-03-10 08:42:17 +00:00
feat: timetable module - schedule and calendar
This commit is contained in:
57
src/app/modules/schedule/page/schedule-page.html
Normal file
57
src/app/modules/schedule/page/schedule-page.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<!--
|
||||
~ Copyright (C) 2021 StApps
|
||||
~ This program is free software: you can redistribute it and/or modify it
|
||||
~ under the terms of the GNU General Public License as published by the Free
|
||||
~ Software Foundation, version 3.
|
||||
~
|
||||
~ This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
~ more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License along with
|
||||
~ this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<ion-header>
|
||||
<ion-segment #segment value="calendar" (ionChange)="onSegmentChange()">
|
||||
<ion-segment-button value="calendar">
|
||||
<ion-label>{{ 'schedule.calendar' | translate }}</ion-label>
|
||||
</ion-segment-button>
|
||||
<ion-segment-button value="recurring">
|
||||
<ion-label>{{ 'schedule.recurring' | translate }}</ion-label>
|
||||
</ion-segment-button>
|
||||
<ion-segment-button value="single">
|
||||
<ion-label>{{ 'schedule.single' | translate }}</ion-label>
|
||||
</ion-segment-button>
|
||||
</ion-segment>
|
||||
</ion-header>
|
||||
|
||||
<div
|
||||
[ngSwitch]="tabChoreographer.currentValue"
|
||||
[@materialSharedAxisX]="tabChoreographer.animationState"
|
||||
(@materialSharedAxisX.done)="tabChoreographer.animationDone()"
|
||||
>
|
||||
<stapps-calendar-view
|
||||
*ngSwitchCase="'calendar'"
|
||||
[layout]="layout"
|
||||
></stapps-calendar-view>
|
||||
<!-- Schedule view needs full week -->
|
||||
<stapps-schedule-view
|
||||
*ngSwitchCase="'recurring'"
|
||||
[layout]="weeklyConfig"
|
||||
></stapps-schedule-view>
|
||||
<stapps-single-events *ngSwitchCase="'single'"></stapps-single-events>
|
||||
</div>
|
||||
|
||||
<ion-fab
|
||||
*ngIf="fabVisible"
|
||||
@fabAnimation
|
||||
vertical="bottom"
|
||||
horizontal="end"
|
||||
slot="fixed"
|
||||
>
|
||||
<ion-fab-button (click)="showCreateEventModal()">
|
||||
<ion-icon name="add"></ion-icon>
|
||||
</ion-fab-button>
|
||||
</ion-fab>
|
||||
Reference in New Issue
Block a user