Merge branch 'max_dev' of Software_Engineering_I/greenvironment-frontend into master
commit
49aeb71ec0
@ -0,0 +1,15 @@
|
||||
<h1 mat-dialog-title>Create a new event!</h1>
|
||||
<div mat-dialog-content>
|
||||
<mat-form-field style="display:contents;">
|
||||
<input matInput placeholder="Enter eventname" #name>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="display:contents;">
|
||||
<input matInput [matDatepicker]="picker" placeholder="Choose a date" #date disabled>
|
||||
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
||||
<mat-datepicker #picker disabled="false"></mat-datepicker>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div mat-dialog-actions>
|
||||
<button mat-button (click)="onNoClick()">Cancel</button>
|
||||
<button mat-button cdkFocusInitial (click)="createEvent(name.value, date.value)">Create Event</button>
|
||||
</div>
|
@ -0,0 +1,11 @@
|
||||
export class Event {
|
||||
id: number;
|
||||
name: string;
|
||||
date: string;
|
||||
|
||||
constructor(pId: number, pName: string, pdate: string) {
|
||||
this.id = pId;
|
||||
this.name = pName;
|
||||
this.date = pdate;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue