source: Farmatiko/ClientApp/src/app/dialogs/edit-pharmacy-dialog/edit-pharmacy-dialog.component.html@ afc9a9a

Last change on this file since afc9a9a was ee137aa, checked in by Mile Jankuloski <mile.jankuloski@…>, 4 years ago

Added DataService and dialogs, all bindings needed implemented

  • Property mode set to 100644
File size: 1.7 KB
Line 
1
2 <form (ngSubmit)="save()" #pharmacyForm="ngForm" class="editForm" novalidate>
3 <div class="form-group">
4 <label>Name</label>
5 <input type="text" class="form-control" name="name" [(ngModel)]="pharmacy.name" #name="ngModel" required>
6 <div class="alert alert-danger" [hidden]="pharmacy.name">Name is required</div>
7 </div>
8 <div class="form-group">
9 <label>Address</label>
10 <input type="text" class="form-control" name="address" [(ngModel)]="pharmacy.address" #address="ngModel" required>
11 <div class="alert alert-danger" [hidden]="pharmacy.address">Address is required</div>
12 </div>
13 <div class="form-group">
14 <label>Location</label>
15 <input type="text" class="form-control" [(ngModel)]="pharmacy.location" #email="ngModel" required />
16 <div class="alert alert-danger" [hidden]="pharmacy.location">Location is required</div>
17 </div>
18 <div class="form-group">
19 <label>Work 24/7</label>
20 <br />
21 <div class="radio">
22 <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 Не
31 </label>
32 </div>
33 </div>
34 <br />
35 <div class="pull-right">
36 <button class="btn btn-default" (click)="close()">Cancel</button>&nbsp;&nbsp;
37 <button type="submit" class="btn btn-success" [disabled]="!pharmacyForm.valid">Save</button>
38 </div>
39 </form>
Note: See TracBrowser for help on using the repository browser.