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>
|
---|
20 | <mat-tab-group mat-stretch-tabs>
|
---|
21 | <mat-tab label="Claiming requests">
|
---|
22 | <div class="wrapper">
|
---|
23 | <div>
|
---|
24 | <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="true">
|
---|
25 | <thead>
|
---|
26 | <tr>
|
---|
27 | <th>Account</th>
|
---|
28 | <th>Pharmacy</th>
|
---|
29 | <th>Action</th>
|
---|
30 | </tr>
|
---|
31 | </thead>
|
---|
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>
|
---|
37 | </tr>
|
---|
38 | </tbody>
|
---|
39 | </table>
|
---|
40 | </div>
|
---|
41 | </div>
|
---|
42 | </mat-tab>
|
---|
43 | <mat-tab label="Manage accounts">
|
---|
44 | <div class="wrapper">
|
---|
45 | <div>
|
---|
46 | <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="true">
|
---|
47 | <thead>
|
---|
48 | <tr>
|
---|
49 | <th>Account</th>
|
---|
50 | <th>Actions</th>
|
---|
51 | </tr>
|
---|
52 | </thead>
|
---|
53 | <tbody>
|
---|
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>
|
---|
57 | </tr>
|
---|
58 | </tbody>
|
---|
59 | </table>
|
---|
60 | </div>
|
---|
61 | </div>
|
---|
62 | </mat-tab>
|
---|
63 | <mat-tab label="Create new account">
|
---|
64 | <div class="createform">
|
---|
65 | <mat-form-field appearance="fill">
|
---|
66 | <mat-label>Name</mat-label>
|
---|
67 | <input matInput [(ngModel)]="head.Name">
|
---|
68 | </mat-form-field><br>
|
---|
69 | <mat-form-field appearance="fill">
|
---|
70 | <mat-label>Email</mat-label>
|
---|
71 | <input matInput [(ngModel)]="head.Email">
|
---|
72 | </mat-form-field><br>
|
---|
73 | <mat-form-field appearance="fill">
|
---|
74 | <mat-label>Password</mat-label>
|
---|
75 | <input matInput [(ngModel)]="head.Passwd">
|
---|
76 | </mat-form-field><br>
|
---|
77 | <button onclick="createHead()" mat-raised-button color="primary">Create</button>
|
---|
78 | </div>
|
---|
79 | </mat-tab>
|
---|
80 | </mat-tab-group>
|
---|
81 |
|
---|
82 | <div class="status">{{status}}</div> |
---|