You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
pocketcommunityweb/src/app/visitor/visitor/visitor.component.html

29 lines
1.3 KiB

<table class="table">
<thead>
<tr>
<th scope="col" class="text-center">{{'visitor.username'|translate}}</th>
<th scope="col" class="text-center">{{'visitor.time'|translate}}</th>
<th scope="col" class="text-center">{{'visitor.notes'|translate}}</th>
<th scope="col" class="text-center">{{'visitor.admin'|translate}}</th>
<th scope="col" class="text-center">{{'visitor.status'|translate}}</th>
<th scope="col" class="text-center">{{'visitor.action'|translate}}</th>
</tr>
</thead>
<tbody>
<ng-container *ngIf="visitors">
<tr *ngFor="let visitor of visitors.list">
<td class="text-center">{{visitor.appointment}}</td>
<td class="text-center">{{visitor.time|date:'yyyy-MM-dd HH:mm'}}</td>
<td class="text-center">{{visitor.notes}}</td>
<td class="text-center">{{visitor.managerName}}</td>
<td class="text-center">{{'visitor.' + visitor.status|translate}}</td>
<td>
<div class="text-center" *ngIf="visitor.status===uncheck;">
<button class="btn btn-primary mr-3" (click)="check(visitor.id,ok)">{{'visitor.ok'|translate}}</button>
<button class="btn btn-info" (click)="check(visitor.id,fail)">{{'visitor.fail'|translate}}</button>
</div>
</td>
</tr>
</ng-container>
</tbody>
</table>