- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/admin/admin.component.html
rde18858 ree137aa 22 22 <div class="wrapper"> 23 23 <div> 24 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf=" true">24 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="requests"> 25 25 <thead> 26 26 <tr> … … 31 31 </thead> 32 32 <tbody> 33 <tr *ngFor="let head of heads">34 <td>{{ head.Name}} | {{head.Email}}</td>35 <td> {{head.Pharmacy[0].name}}</td>36 <td><a (click)=" Approve()">Approve</a> | <a (click)="Reject()">Reject</a></td>33 <tr *ngFor="let request of requests"> 34 <td>{{request.PharmacyHead.Name}} | {{request.PharmacyHead.Email}}</td> 35 <td><a (click)="openPharmacyDialog(request.Pharmacy)">{{request.Pharmacy.name}}</a></td> 36 <td><a (click)="approveRequest(request)">Approve</a> | <a (click)="rejectRequest(request)">Reject</a></td> 37 37 </tr> 38 38 </tbody> … … 44 44 <div class="wrapper"> 45 45 <div> 46 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf=" true">46 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="heads"> 47 47 <thead> 48 48 <tr> … … 53 53 <tbody> 54 54 <tr *ngFor="let head of heads"> 55 <td> {{head.Name}}| {{head.Email}}</td>56 <td><a (click)=" Del(head)">Delete</a> | <a (click)="ChangeDialog(head)">Change</a></td>55 <td><a (click)="openPharmacyHeadDialog(head)">{{head.Name}}</a> | {{head.Email}}</td> 56 <td><a (click)="deletePharmacyHead(head)">Delete</a> | <a (click)="openEditPharmacyHeadDialog(head)">Change</a></td> 57 57 </tr> 58 58 </tbody> … … 62 62 </mat-tab> 63 63 <mat-tab label="Create new account"> 64 <div class="createform"> 64 <h2 *ngIf="!this.head">Loading form...</h2> 65 <div class="createform" *ngIf="this.head"> 65 66 <mat-form-field appearance="fill"> 66 67 <mat-label>Name</mat-label> 67 <input matInput [(ngModel)]=" head.Name">68 <input matInput [(ngModel)]="this.head.Name"> 68 69 </mat-form-field><br> 69 70 <mat-form-field appearance="fill"> 70 71 <mat-label>Email</mat-label> 71 <input matInput [(ngModel)]=" head.Email">72 <input matInput [(ngModel)]="this.head.Email"> 72 73 </mat-form-field><br> 73 74 <mat-form-field appearance="fill"> 74 75 <mat-label>Password</mat-label> 75 <input matInput [(ngModel)]=" head.Passwd">76 <input matInput [(ngModel)]="this.head.Passwd"> 76 77 </mat-form-field><br> 77 78 <button onclick="createHead()" mat-raised-button color="primary">Create</button> … … 79 80 </mat-tab> 80 81 </mat-tab-group> 81 82 <div class="status">{{status}}</div>
Note:
See TracChangeset
for help on using the changeset viewer.