This commit is contained in:
Olu Amey
2020-12-05 13:52:04 -05:00
parent f04e5cbc9a
commit c5b1fb1fb6
6 changed files with 258 additions and 34 deletions
@@ -1,13 +1,37 @@
<ion-header>
<ion-toolbar>
<ion-title>merms-calendar</ion-title>
</ion-toolbar>
</ion-header>
<ion-content class="merms-calendar-page">
<div class="container">
<ion-grid class="top-container">
<ion-row>
<ion-col size="2" class="navigation">
<ion-back-button text="" (click)="goBack()"></ion-back-button>
</ion-col>
<ion-col size="8" class="page-title">Calendar</ion-col>
</ion-row>
</ion-grid>
<button ion-button (click)="openCalendar()">Open Calendar on Current Date</button>
{{MyCalendar}}
<ion-list>
<ion-list-header>
<hr size="1">
</ion-list-header>
<ion-content>
<div class="ion-padding">
<ion-item *ngFor="let type of calendarData" (click)="goPatient(type)">
<ion-avatar slot="start">
<img src="./../../assets/imgs/avatar.svg">
</ion-avatar>
<ion-label>
<h2>{{type.firstname}} {{type.lastname}}</h2>
<h3>{{type.reason}}</h3>
<p>{{type.appt}} {{type.gender}} , {{type.age}} yrs</p>
</ion-label>
</ion-item>
{{mycal}}
</ion-list>
</div>
</ion-content>
@@ -0,0 +1,143 @@
.merms-calendar-page{
display: flex;
flex-direction: column;
--padding-top: 0px;
--padding-bottom: 40px;
--padding-start: 24px;
--padding-end: 24px;
.container {
padding-top: 7vh;
display: flex;
flex-direction: column;
height: 100%;
ion-grid.top-container {
flex: 0 0 0;
width: 100%;
}
.navigation {
text-align: left;
padding-left: 2px;
ion-back-button {
--color: #000;
display: inline-block;
--icon-font-size: 30px;
}
}
.page-title {
font-style: normal;
font-weight: bold;
font-size: 12px;
line-height: 106.4%;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #000;
display: flex;
justify-content: center;
align-items: center;
}
h1 {
margin-top: 30px;
font-style: normal;
font-weight: 600;
font-size: 26px;
line-height: 135%;
color: #000;
text-align: center;
}
}
.bottom-container {
margin-top: 6vh;
display: block;
//flex: 1;
//flex-direction: column;
.google-sign-up,
.apple-sign-up {
display: block;
border: 2px solid #000000;
box-sizing: border-box;
border-radius: 26.98px;
padding: 13px 0;
text-align: center;
background: none;
font-weight: bold;
font-size: 16px;
line-height: 14px;
color: #000000;
margin-bottom: 20px;
position: relative;
height: 55px !important;
width: 100%;
span {
opacity: 1;
font-size: 16px;
line-height: 24px;
margin: 0;
height: 25px;
display: inline-block;
padding: 0;
vertical-align: top;
}
img {
height: 24px;
margin-right: 13px;
}
}
span {
font-size: 12px;
line-height: 145%;
letter-spacing: -0.2px;
color: #000000;
opacity: 0.25;
text-align: center;
display: inline-block;
margin-bottom: 20px;
&.forgot-password {
margin-top: 20px;
}
}
.form {
display: flex;
flex: 1;
flex-direction: column;
ion-input {
border: 2px solid #000000;
box-sizing: border-box;
border-radius: 26.98px;
margin-bottom: 16px;
--padding-start: 20px;
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 145%;
letter-spacing: -0.2px;
color: #000000;
}
button {
background: #0b7493;
border-radius: 30px;
vertical-align: bottom;
display: flex;
margin: auto auto 0 auto;
width: 168px;
font-weight: 600;
font-size: 16px;
line-height: 22px;
color: #fff;
justify-content: center;
padding: 14px 0;
opacity: 0.5;
height: 50px;
min-height: 50px;
&.active-button {
opacity: 1;
}
}
}
}
}
+22 -8
View File
@@ -7,23 +7,37 @@ import { Calendar } from '@ionic-native/calendar/ngx';
styleUrls: ['./merms-calendar.page.scss'],
})
export class MermsCalendarPage implements OnInit {
calendar={
mode:'month',
currentDate: new DataCue(),
};
@ViewChild(Calendar) mycal: Calendar;
MyCalendar:any;
calendarData:any;
constructor() {
constructor(private calendar: Calendar) {
// this.MyCalendar=calendar;
/*
this.calendar.createCalendar('MyCalendar').then(
(msg) => { console.log(msg); },
(err) => { console.log(err); }
);
*/
}
goPatient(){
}
openCalendar(){
this.calendar.openCalendar(new Date()).then(
(msg) => { console.log(msg); },
(err) => { console.log(err); }
);
}
goBack(){
}
ngOnInit() {
}