-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggiunta funzionalità di prenotazione visita
- Loading branch information
1 parent
f10c311
commit 9030acf
Showing
16 changed files
with
482 additions
and
35 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...nt/reservation/reservation-continue/reservation-confirmed/reservation-confirmed.page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<ion-header class="ion-no-border" [translucent]="true"> | ||
<ion-toolbar class="top-toolbar"> | ||
<div class="container"> | ||
<ion-label class="tab-name">Prenotazione confermata</ion-label> | ||
</div> | ||
<!-- <ion-icon id="settings-icon" | ||
src="../../../assets/icon/settings/settings.svg" | ||
slot="end"></ion-icon> --> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content class="ion-padding"> | ||
<ng-lottie height="25em" [options]="options" (animationCreated)="animationCreated($event)" class="animation"></ng-lottie> | ||
<h2 class="info-h2">PRENOTAZIONE EFFETTUATA</h2> | ||
<h6 class="info-h6">La prenotazione è stata effettuata ed è ora in attesa di conferma.</h6> | ||
<ion-button class="confirm-button" expand="block" fill="solid" routerLink="/home">Torna alla home</ion-button> | ||
</ion-content> | ||
|
||
<ion-footer> | ||
<ion-toolbar> | ||
<ion-tabs class="bottom-bar"> | ||
<ion-tab-bar class="bottom-tab-bar" slot="bottom"> | ||
<ion-tab-button class="bottom-bar-buttons" tab="home"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/home.png"></ion-img> | ||
Home | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" tab="notifications"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/notifications.png"></ion-img> | ||
Notifiche | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" tab="reservations"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/booking.png"></ion-img> | ||
Prenota | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" tab="sos"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/sos.png"></ion-img> | ||
SOS | ||
</ion-tab-button> | ||
</ion-tab-bar> | ||
</ion-tabs> | ||
</ion-toolbar> | ||
</ion-footer> |
46 changes: 46 additions & 0 deletions
46
...nt/reservation/reservation-continue/reservation-confirmed/reservation-confirmed.page.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.reservation-confirmed-content-one { | ||
padding: 3em; | ||
} | ||
|
||
.info-h6 { | ||
color: var(--Black, #000); | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 50; | ||
line-height: normal; | ||
margin-bottom: 2em; | ||
text-align: center; | ||
} | ||
|
||
.info-h2 { | ||
color: var(--Black, #000); | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
margin-bottom: 1em; | ||
text-align: center; | ||
} | ||
|
||
.confirm-button { | ||
display: block; | ||
margin-left: auto; | ||
margin-right: auto; | ||
//margin-top: 22em; | ||
width: 85%; | ||
} | ||
|
||
.top-toolbar { | ||
height: 6.5em; | ||
border-bottom-left-radius: 0; | ||
border-bottom-right-radius: 0; | ||
|
||
.container { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.tab-name { | ||
margin-left: 1em; | ||
margin-top: 2.3em; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...reservation/reservation-continue/reservation-confirmed/reservation-confirmed.page.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { ReservationConfirmedPage } from './reservation-confirmed.page'; | ||
|
||
describe('ReservationConfirmedPage', () => { | ||
let component: ReservationConfirmedPage; | ||
let fixture: ComponentFixture<ReservationConfirmedPage>; | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ReservationConfirmedPage); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
39 changes: 39 additions & 0 deletions
39
...ient/reservation/reservation-continue/reservation-confirmed/reservation-confirmed.page.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* eslint-disable @angular-eslint/no-empty-lifecycle-method */ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { IonContent, IonHeader, IonTitle, IonToolbar, IonButtons, IonBackButton, IonIcon, IonImg, IonButton, IonTabBar, IonTabs, IonTabButton, IonFooter, IonLabel } from '@ionic/angular/standalone'; | ||
|
||
import { AnimationItem } from 'lottie-web'; | ||
import { LottieComponent, AnimationOptions } from 'ngx-lottie'; | ||
|
||
@Component({ | ||
selector: 'app-reservation-confirmed', | ||
templateUrl: './reservation-confirmed.page.html', | ||
styleUrls: ['./reservation-confirmed.page.scss'], | ||
standalone: true, | ||
imports: [LottieComponent, IonLabel, IonFooter, IonTabButton, IonTabs, IonTabBar, IonButton, IonImg, IonIcon, IonBackButton, IonButtons, IonContent, IonHeader, IonTitle, IonToolbar, CommonModule, FormsModule] | ||
}) | ||
export class ReservationConfirmedPage implements OnInit { | ||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
options: AnimationOptions = { | ||
path: '../../../assets/animations/green-check.json', | ||
loop: false, | ||
}; | ||
|
||
/* styles: Partial<CSSStyleDeclaration> = { | ||
width: '200em', | ||
height: '200em', | ||
// margin: 'auto auto', | ||
}; */ | ||
|
||
animationCreated(animationItem: AnimationItem): void { | ||
|
||
console.log("Animazione renderizzata. \n\n", animationItem); | ||
} | ||
|
||
} |
69 changes: 69 additions & 0 deletions
69
src/app/pages/patient/reservation/reservation-continue/reservation-continue.page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<ion-header class="ion-no-border" [translucent]="true"> | ||
<ion-toolbar class="top-toolbar"> | ||
<div class="container"> | ||
<ion-button class="back-button" fill="transparent" (click)="navigateBack()"> | ||
← | ||
</ion-button> | ||
<ion-label class="tab-name">Prenotazione</ion-label> | ||
</div> | ||
<!-- <ion-icon id="settings-icon" | ||
src="../../../assets/icon/settings/settings.svg" | ||
slot="end"></ion-icon> --> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content [fullscreen]="true" class="ion-padding"> | ||
<h5 class="available-appointments"><b>Orari disponibili</b></h5> | ||
|
||
<ion-grid> | ||
<ion-row class="available-appointments"> | ||
<ion-button (click)="toggleClickedItem()" [ngClass]="{'button-clicked': this.itemClicked}" fill="outline" size="default" class="appointment-button">7:00</ion-button> | ||
<ion-button fill="outline" size="default" class="appointment-button">11:00</ion-button> | ||
<ion-button fill="outline" size="default" class="appointment-button">15:30</ion-button> | ||
</ion-row> | ||
<ion-row class="available-appointments"> | ||
<ion-button fill="outline" size="default" class="appointment-button">16:15</ion-button> | ||
<ion-button fill="outline" size="default" class="appointment-button">18:00</ion-button> | ||
<ion-button fill="outline" size="default" class="appointment-button">18:30</ion-button> | ||
</ion-row> | ||
</ion-grid> | ||
|
||
<ion-item-divider></ion-item-divider> | ||
|
||
<h6 class="policy">Eventuali modifiche o annullamenti dovranno essere effettuati attraverso l'applicazione con almeno 24 ore di anticipo rispetto all'orario programmato.</h6> | ||
|
||
<ion-button class="confirm-button" expand="block" fill="solid" id="present-alert">Prenota</ion-button> | ||
|
||
<ion-alert | ||
trigger="present-alert" | ||
header="Conferma prenotazione" | ||
subHeader="Visita generale" | ||
message="13/04/2024, alle ore 07:00" | ||
[buttons]="alertButtons" | ||
></ion-alert> | ||
</ion-content> | ||
|
||
<ion-footer> | ||
<ion-toolbar> | ||
<ion-tabs class="bottom-bar"> | ||
<ion-tab-bar class="bottom-tab-bar" slot="bottom"> | ||
<ion-tab-button class="bottom-bar-buttons" tab="home"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/home.png"></ion-img> | ||
Home | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" tab="notifications"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/notifications.png"></ion-img> | ||
Notifiche | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" tab="reservations"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/booking.png"></ion-img> | ||
Prenota | ||
</ion-tab-button> | ||
<ion-tab-button class="bottom-bar-buttons" tab="sos"> | ||
<ion-img class="bottom-bar-icons" src="../../assets/icon/bottom-bar/sos.png"></ion-img> | ||
SOS | ||
</ion-tab-button> | ||
</ion-tab-bar> | ||
</ion-tabs> | ||
</ion-toolbar> | ||
</ion-footer> |
39 changes: 39 additions & 0 deletions
39
src/app/pages/patient/reservation/reservation-continue/reservation-continue.page.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.available-appointments { | ||
justify-content: center; | ||
} | ||
|
||
.appointment { | ||
width: 8em; | ||
} | ||
|
||
.appointment-button { | ||
width: 6em; | ||
} | ||
|
||
.confirm-button { | ||
display: block; | ||
margin-left: auto; | ||
margin-right: auto; | ||
margin-top: 30em; | ||
width: 85%; | ||
} | ||
|
||
.policy { | ||
color: gray; | ||
font-size: 1em; | ||
} | ||
|
||
.top-toolbar { | ||
height: 6.5em; | ||
border-bottom-left-radius: 0; | ||
border-bottom-right-radius: 0; | ||
|
||
.container { | ||
display: flex; | ||
align-items: center; | ||
} | ||
} | ||
|
||
.button-clicked { | ||
background-color: rgba(78, 182, 140, 0.205); | ||
} |
17 changes: 17 additions & 0 deletions
17
src/app/pages/patient/reservation/reservation-continue/reservation-continue.page.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { ReservationContinuePage } from './reservation-continue.page'; | ||
|
||
describe('ReservationContinuePage', () => { | ||
let component: ReservationContinuePage; | ||
let fixture: ComponentFixture<ReservationContinuePage>; | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ReservationContinuePage); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.