Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/admin/admin.component.html

    ree137aa rde18858  
    2222        <div class="wrapper">
    2323          <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">
    2525              <thead>
    2626                <tr>
     
    3131              </thead>
    3232              <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>
    3737                </tr>
    3838              </tbody>
     
    4444        <div class="wrapper">
    4545          <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">
    4747              <thead>
    4848                <tr>
     
    5353              <tbody>
    5454                <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>
    5757                </tr>
    5858              </tbody>
     
    6262      </mat-tab>
    6363        <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">
    6665          <mat-form-field appearance="fill">
    6766            <mat-label>Name</mat-label>
    68             <input matInput [(ngModel)]="this.head.Name">
     67            <input matInput [(ngModel)]="head.Name">
    6968          </mat-form-field><br>
    7069          <mat-form-field appearance="fill">
    7170            <mat-label>Email</mat-label>
    72             <input matInput [(ngModel)]="this.head.Email">
     71            <input matInput [(ngModel)]="head.Email">
    7372          </mat-form-field><br>
    7473          <mat-form-field appearance="fill">
    7574            <mat-label>Password</mat-label>
    76             <input matInput [(ngModel)]="this.head.Passwd">
     75            <input matInput [(ngModel)]="head.Passwd">
    7776          </mat-form-field><br>
    7877            <button onclick="createHead()" mat-raised-button color="primary">Create</button>
     
    8079        </mat-tab>
    8180</mat-tab-group>
     81
     82<div class="status">{{status}}</div>
Note: See TracChangeset for help on using the changeset viewer.