Changeset 8e74e2f for Farmatiko/ClientApp/src/app/dialogs
- Timestamp:
- 11/16/20 03:55:10 (4 years ago)
- Branches:
- master
- Children:
- db484c9
- Parents:
- 8b13eb2
- Location:
- Farmatiko/ClientApp/src/app/dialogs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/dialogs/edit-pharmacy-dialog/edit-pharmacy-dialog.component.html
r8b13eb2 r8e74e2f 13 13 <div class="form-group"> 14 14 <label>Location</label> 15 <input type="text" class="form-control" [(ngModel)]="pharmacy.location" #email="ngModel" required />15 <input type="text" class="form-control" name="location" [(ngModel)]="pharmacy.location" #location="ngModel" required /> 16 16 <div class="alert alert-danger" [hidden]="pharmacy.location">Location is required</div> 17 17 </div> 18 18 <div class="form-group"> 19 19 <label>Work 24/7</label> 20 <br />21 20 <div class="radio"> 22 21 <label> 23 <input type="radio" name="workAllTime" [(ngModel)]="pharmacy.workAllTime" #workAllTime="ngModel" value="true" required /> 24 Да 25 </label> 26 </div> 27 <div class="radio"> 28 <label> 29 <input type="radio" name="workAllTime" [(ngModel)]="pharmacy.workAllTime" #workAlltime="ngModel" value="false" required /> 30 Не 22 <input type="checkbox" name="workAllTime" [(ngModel)]="pharmacy.workAllTime" #workAllTime="ngModel" [value]="pharmacy.workAllTime"/> 31 23 </label> 32 24 </div> -
Farmatiko/ClientApp/src/app/dialogs/edit-pharmacy-dialog/edit-pharmacy-dialog.component.ts
r8b13eb2 r8e74e2f 19 19 20 20 save() { 21 console.log(this.pharmacy); 21 22 this.dialogRef.close(this.pharmacy); 22 23 } -
Farmatiko/ClientApp/src/app/dialogs/list-medicines-dialog/list-medicines-dialog.component.html
r8b13eb2 r8e74e2f 21 21 <tbody> 22 22 <tr *ngFor="let medicine of filteredListMedicines"> 23 <td> >{{ medicine.name }}</td>23 <td>{{ medicine.name }}</td> 24 24 <td>{{ medicine.strength }}</td> 25 25 <td>{{ medicine.form }}</td> -
Farmatiko/ClientApp/src/app/dialogs/list-medicines-dialog/list-medicines-dialog.component.ts
r8b13eb2 r8e74e2f 10 10 }) 11 11 export class ListMedicinesDialogComponent implements OnInit { 12 medicines: IMedicine[] ;12 medicines: IMedicine[] = []; 13 13 listMedicines: IMedicine[]; 14 14 filteredListMedicines: IMedicine[]; … … 30 30 this.medicines = this.medicines.filter(x => x != selectedMedicine); 31 31 } 32 else { 33 this.medicines.push(selectedMedicine); 34 } 32 this.medicines.push(selectedMedicine); 35 33 } 36 34
Note:
See TracChangeset
for help on using the changeset viewer.