-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reports-add component was completely implemented. (#42)
- Loading branch information
1 parent
b37471d
commit cd42cf7
Showing
4 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<div class="form-wrapper"> | ||
<form class="form-container"> | ||
<mat-form-field class="example-full-width"> | ||
<input matInput [(ngModel)]="report.distance" placeholder="Distance (Metres)"> | ||
<input matInput placeholder="Distance (Metres)" name="distance" [(ngModel)]="distance" > | ||
</mat-form-field> | ||
<mat-form-field class="example-full-width"> | ||
<input matInput [(ngModel)]="report.time" placeholder="Time (seconds)"> | ||
<input matInput placeholder="Time (seconds)" name="time" [(ngModel)]="time"> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input matInput [(ngModel)]="report.timestamp" [matDatepicker]="picker" placeholder="Choose a date"> | ||
<input matInput [matDatepicker]="picker" placeholder="Choose a date" name="timestamp" [(ngModel)]="timestamp" color="primary"> | ||
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> | ||
<mat-datepicker #picker startView="year" [startAt]="startDate"></mat-datepicker> | ||
</mat-form-field> | ||
<button mat-raised-button (click)="addReport()">Add</button> | ||
<button mat-raised-button (click)="addReport(distance, time, timestamp)">Add</button> | ||
</form> | ||
</div> |
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