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