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

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

Fix bugs, add some more

  • Property mode set to 100644
File size: 3.3 KB
Line 
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="requests">
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 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 </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="heads">
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><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 </tr>
58 </tbody>
59 </table>
60 </div>
61 </div>
62 </mat-tab>
63 <mat-tab label="Create new account">
64 <h2 *ngIf="!this.head">Loading form...</h2>
65 <div class="createform" *ngIf="this.head">
66 <mat-form-field appearance="fill">
67 <mat-label>Name</mat-label>
68 <input matInput [(ngModel)]="this.head.Name">
69 </mat-form-field><br>
70 <mat-form-field appearance="fill">
71 <mat-label>Email</mat-label>
72 <input matInput [(ngModel)]="this.head.Email">
73 </mat-form-field><br>
74 <mat-form-field appearance="fill">
75 <mat-label>Password</mat-label>
76 <input matInput [(ngModel)]="this.head.Passwd">
77 </mat-form-field><br>
78 <button (click)="createHead()" mat-raised-button color="primary">Create</button>
79 </div>
80 </mat-tab>
81</mat-tab-group>
Note: See TracBrowser for help on using the repository browser.