Last change
on this file since 7d80751 was 8e74e2f, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Fix bugs, add some more.
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[ee137aa] | 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>
|
---|
[8e74e2f] | 15 | <input type="text" class="form-control" name="location" [(ngModel)]="pharmacy.location" #location="ngModel" required />
|
---|
[ee137aa] | 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 | <div class="radio">
|
---|
| 21 | <label>
|
---|
[8e74e2f] | 22 | <input type="checkbox" name="workAllTime" [(ngModel)]="pharmacy.workAllTime" #workAllTime="ngModel" [value]="pharmacy.workAllTime"/>
|
---|
[ee137aa] | 23 | </label>
|
---|
| 24 | </div>
|
---|
| 25 | </div>
|
---|
| 26 | <br />
|
---|
| 27 | <div class="pull-right">
|
---|
| 28 | <button class="btn btn-default" (click)="close()">Cancel</button>
|
---|
| 29 | <button type="submit" class="btn btn-success" [disabled]="!pharmacyForm.valid">Save</button>
|
---|
| 30 | </div>
|
---|
| 31 | </form> |
---|
Note:
See
TracBrowser
for help on using the repository browser.