2019-04-03 10:56:31 +02:00
|
|
|
<div>
|
|
|
|
<h2 id="page-heading">
|
|
|
|
<span jhiTranslate="hsadminNgApp.customer.home.title">Customers</span>
|
|
|
|
<button id="jh-create-entity" class="btn btn-primary float-right jh-create-entity create-customer" [routerLink]="['/customer/new']">
|
|
|
|
<fa-icon [icon]="'plus'"></fa-icon>
|
|
|
|
<span jhiTranslate="hsadminNgApp.customer.home.createLabel">
|
|
|
|
Create new Customer
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</h2>
|
|
|
|
<jhi-alert></jhi-alert>
|
|
|
|
<br/>
|
|
|
|
<div class="table-responsive" *ngIf="customers">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr jhiSort [(predicate)]="predicate" [(ascending)]="reverse" [callback]="reset.bind(this)">
|
|
|
|
<th jhiSortBy="id"><span jhiTranslate="global.field.id">ID</span> <fa-icon [icon]="'sort'"></fa-icon></th>
|
|
|
|
<th jhiSortBy="number"><span jhiTranslate="hsadminNgApp.customer.number">Number</span> <fa-icon [icon]="'sort'"></fa-icon></th>
|
|
|
|
<th jhiSortBy="prefix"><span jhiTranslate="hsadminNgApp.customer.prefix">Prefix</span> <fa-icon [icon]="'sort'"></fa-icon></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
2019-04-03 11:53:36 +02:00
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th><input type="text" class="form-control" [(ngModel)]="filterValue.number" (keyup)="filter($event)"></th>
|
|
|
|
<th><input type="text" class="form-control" [(ngModel)]="filterValue.prefix" (keyup)="filter($event)"></th>
|
|
|
|
<th><button class="btn btn-primary float-left" (click)="resetFilter()">Reset Filter</button></th>
|
|
|
|
</tr>
|
2019-04-03 10:56:31 +02:00
|
|
|
</thead>
|
|
|
|
<tbody infinite-scroll (scrolled)="loadPage(page + 1)" [infiniteScrollDisabled]="page >= links['last']" [infiniteScrollDistance]="0">
|
|
|
|
<tr *ngFor="let customer of customers ;trackBy: trackId">
|
|
|
|
<td><a [routerLink]="['/customer', customer.id, 'view' ]">{{customer.id}}</a></td>
|
|
|
|
<td>{{customer.number}}</td>
|
|
|
|
<td>{{customer.prefix}}</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<div class="btn-group flex-btn-group-container">
|
|
|
|
<button type="submit"
|
|
|
|
[routerLink]="['/customer', customer.id, 'view' ]"
|
|
|
|
class="btn btn-info btn-sm">
|
|
|
|
<fa-icon [icon]="'eye'"></fa-icon>
|
|
|
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.view">View</span>
|
|
|
|
</button>
|
|
|
|
<button type="submit"
|
|
|
|
[routerLink]="['/customer', customer.id, 'edit']"
|
|
|
|
class="btn btn-primary btn-sm">
|
|
|
|
<fa-icon [icon]="'pencil-alt'"></fa-icon>
|
|
|
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
|
|
|
|
</button>
|
|
|
|
<button type="submit"
|
|
|
|
[routerLink]="['/', 'customer', { outlets: { popup: customer.id + '/delete'} }]"
|
|
|
|
replaceUrl="true"
|
|
|
|
queryParamsHandling="merge"
|
|
|
|
class="btn btn-danger btn-sm">
|
|
|
|
<fa-icon [icon]="'times'"></fa-icon>
|
|
|
|
<span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|