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

Last change on this file since dae4cde was dae4cde, checked in by Mile Jankuloski <mile.jankuloski@…>, 22 months ago

Minor logging fixes

  • Property mode set to 100644
File size: 3.5 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">
[8e74e2f]14 <li>Administration panel:</li>
15 <li>&nbsp;Logged as <p *ngIf="head">{{adminHead.Name}}</p> </li>
16 <li (click)="logout()" class="btn btn-link"><a>Logout</a></li>
[785b8bd]17 </ul>
18 </div>
19 </div>
20 </nav>
21</header>
[8e74e2f]22<mat-tab-group mat-stretch-tabs dynamicHeight>
[785b8bd]23 <mat-tab label="Claiming requests">
24 <div class="wrapper">
25 <div>
[ee137aa]26 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="requests">
[785b8bd]27 <thead>
28 <tr>
29 <th>Account</th>
30 <th>Pharmacy</th>
31 <th>Action</th>
32 </tr>
33 </thead>
34 <tbody>
[ee137aa]35 <tr *ngFor="let request of requests">
36 <td>{{request.PharmacyHead.Name}} | {{request.PharmacyHead.Email}}</td>
37 <td><a (click)="openPharmacyDialog(request.Pharmacy)">{{request.Pharmacy.name}}</a></td>
38 <td><a (click)="approveRequest(request)">Approve</a> | <a (click)="rejectRequest(request)">Reject</a></td>
[785b8bd]39 </tr>
40 </tbody>
41 </table>
42 </div>
[de18858]43 </div>
44 </mat-tab>
[785b8bd]45 <mat-tab label="Manage accounts">
46 <div class="wrapper">
47 <div>
[ee137aa]48 <table class='table table-striped table-bordered table-sm' cellspacing="0" width="100%" aria-labelledby="tableLabel" *ngIf="heads">
[785b8bd]49 <thead>
50 <tr>
51 <th>Account</th>
52 <th>Actions</th>
53 </tr>
54 </thead>
55 <tbody>
[de18858]56 <tr *ngFor="let head of heads">
[ee137aa]57 <td><a (click)="openPharmacyHeadDialog(head)">{{head.Name}}</a> | {{head.Email}}</td>
[dae4cde]58 <td><a (click)="deletePharmacyHead(head)" *ngIf="head.Name !== 'Admin'">Delete</a><span *ngIf="head.Name == 'Admin'">Can't delete Admin</span> | <a (click)="openEditPharmacyHeadDialog(head)">Change</a></td>
[785b8bd]59 </tr>
60 </tbody>
61 </table>
[de18858]62 </div>
[785b8bd]63 </div>
[de18858]64 </mat-tab>
[785b8bd]65 <mat-tab label="Create new account">
[ee137aa]66 <h2 *ngIf="!this.head">Loading form...</h2>
67 <div class="createform" *ngIf="this.head">
[785b8bd]68 <mat-form-field appearance="fill">
69 <mat-label>Name</mat-label>
[ee137aa]70 <input matInput [(ngModel)]="this.head.Name">
[785b8bd]71 </mat-form-field><br>
72 <mat-form-field appearance="fill">
73 <mat-label>Email</mat-label>
[ee137aa]74 <input matInput [(ngModel)]="this.head.Email">
[785b8bd]75 </mat-form-field><br>
76 <mat-form-field appearance="fill">
77 <mat-label>Password</mat-label>
[ee137aa]78 <input matInput [(ngModel)]="this.head.Passwd">
[785b8bd]79 </mat-form-field><br>
[1db5673]80 <button (click)="createHead()" mat-raised-button color="primary">Create</button>
[de18858]81 </div>
82 </mat-tab>
[ee137aa]83</mat-tab-group>
Note: See TracBrowser for help on using the repository browser.