-
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.
Merge pull request #3 from Marwan01/edit
Edit
- Loading branch information
Showing
13 changed files
with
258 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
dist: trusty | ||
sudo: false | ||
|
||
language: node_js | ||
node_js: | ||
- '10' | ||
|
||
|
||
cache: | ||
directories: | ||
- ./node_modules | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
script: | ||
- ./node_modules/.bin/eslint './src/app/*.ts' --fix | ||
- ng build --prod | ||
# - ng test -- --watch=false --no-progress --browsers=ChromeHeadlessNoSandbox | ||
# - firebase deploy says firebase: command not found |
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
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
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,9 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.css'] | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.css'] | ||
}) | ||
export class AppComponent { | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<h1 mat-dialog-title> Edit Existing Patient:</h1> | ||
<div mat-dialog-content> | ||
<form [formGroup]="form" class="example-form" style="height: 400px;"> | ||
<mat-form-field style="width:50%"> | ||
<div style="color:red;" *ngIf="form.get('firstname').hasError('pattern')">Detected some invalid characters</div> | ||
<input formControlName="firstname" name="firstName" matInput placeholder="First Name"> | ||
</mat-form-field> | ||
<mat-form-field style="width:50%"> | ||
<div style="color:red;" *ngIf="form.get('lastname').hasError('pattern')">Detected some invalid characters</div> | ||
<input formControlName="lastname" name="lastName" matInput placeholder="Last Name"> | ||
</mat-form-field> | ||
<mat-checkbox [(ngModel)]="checked" formControlName="examined" name="examined" labelPosition="before">Check if patient has been examined:</mat-checkbox> | ||
<mat-form-field style="width:100%" *ngIf="checked"> | ||
<input matInput formControlName="examinedOn" [matDatepicker]="picker" placeholder="Choose a date"> | ||
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> | ||
<mat-datepicker #picker></mat-datepicker> | ||
</mat-form-field> | ||
<mat-form-field style="width:100%"> | ||
<input formControlName="diagnosis" name="diagnosis" matInput placeholder="Diagnosis"> | ||
</mat-form-field> | ||
<mat-form-field style="width:100%;"> | ||
<input formControlName="notes" name="notes" matInput placeholder="Any Additional Notes?"> | ||
</mat-form-field> | ||
<div mat-dialog-actions> | ||
<button mat-button (click)="onNoClick()">Cancel</button> | ||
<button [disabled]="!form.valid" mat-button (click)="onEdit(form.value)" [mat-dialog-close]>Edit</button> | ||
</div> | ||
</form> | ||
</div> |
Empty file.
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,6 @@ | ||
<button mat-icon-button | ||
(click)="openDialog()" | ||
aria-label="icon-button with a menu" | ||
matTooltip="Click here to edit a patient"> | ||
<mat-icon>edit</mat-icon> | ||
</button> |
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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { EditPatientComponent } from './edit-patient.component'; | ||
|
||
describe('EditPatientComponent', () => { | ||
let component: EditPatientComponent; | ||
let fixture: ComponentFixture<EditPatientComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ EditPatientComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(EditPatientComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.