source: Farmatiko/ClientApp/src/app/admin/admin.component.html@ 1db5673

Last change on this file since 1db5673 was 1db5673, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Fix bugs, add some more

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[785b8bd]1<header>
2 <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
3 <div class="container">
4 <a class="navbar-brand" [routerLink]="['/']"><img src="../../assets/logo.png"></a>
5 <button class="navbar-toggler"
6 type="button"
7 data-toggle="collapse"
8 data-target=".navbar-collapse"
9 aria-label="Toggle navigation">
10 <span class="navbar-toggler-icon"></span>
11 </button>
12 <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
13 <ul class="navbar-nav flex-grow">
14 <li>Administration panel</li>
15 </ul>
16 </div>
17 </div>
18 </nav>
19</header>
[ef1219a]20<mat-tab-group mat-stretch-tabs>
[785b8bd]21 <mat-tab label="Claiming requests">
22 <div class="wrapper">
23 <div>
[ee137aa]24 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="requests">
[785b8bd]25 <thead>
26 <tr>
27 <th>Account</th>
28 <th>Pharmacy</th>
29 <th>Action</th>
30 </tr>
31 </thead>
32 <tbody>
[ee137aa]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>
[785b8bd]37 </tr>
38 </tbody>
39 </table>
40 </div>
[de18858]41 </div>
42 </mat-tab>
[785b8bd]43 <mat-tab label="Manage accounts">
44 <div class="wrapper">
45 <div>
[ee137aa]46 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="heads">
[785b8bd]47 <thead>
48 <tr>
49 <th>Account</th>
50 <th>Actions</th>
51 </tr>
52 </thead>
53 <tbody>
[de18858]54 <tr *ngFor="let head of heads">
[ee137aa]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>
[785b8bd]57 </tr>
58 </tbody>
59 </table>
[de18858]60 </div>
[785b8bd]61 </div>
[de18858]62 </mat-tab>
[785b8bd]63 <mat-tab label="Create new account">
[ee137aa]64 <h2 *ngIf="!this.head">Loading form...</h2>
65 <div class="createform" *ngIf="this.head">
[785b8bd]66 <mat-form-field appearance="fill">
67 <mat-label>Name</mat-label>
[ee137aa]68 <input matInput [(ngModel)]="this.head.Name">
[785b8bd]69 </mat-form-field><br>
70 <mat-form-field appearance="fill">
71 <mat-label>Email</mat-label>
[ee137aa]72 <input matInput [(ngModel)]="this.head.Email">
[785b8bd]73 </mat-form-field><br>
74 <mat-form-field appearance="fill">
75 <mat-label>Password</mat-label>
[ee137aa]76 <input matInput [(ngModel)]="this.head.Passwd">
[785b8bd]77 </mat-form-field><br>
[1db5673]78 <button (click)="createHead()" mat-raised-button color="primary">Create</button>
[de18858]79 </div>
80 </mat-tab>
[ee137aa]81</mat-tab-group>
Note: See TracBrowser for help on using the repository browser.