-
Notifications
You must be signed in to change notification settings - Fork 264
/
claim.component.html
75 lines (75 loc) · 3.81 KB
/
claim.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<div>
<h2>
<span jhiTranslate="greatBigExampleApplicationApp.claim.home.title">Claims</span>
<button class="btn btn-primary float-right create-claim" [routerLink]="['/', { outlets: { popup: ['claim-new'] } }]">
<span class="fa fa-plus"></span>
<span class="hidden-sm-down" jhiTranslate="greatBigExampleApplicationApp.claim.home.createLabel">
Create new Claim
</span>
</button>
</h2>
<jhi-alert></jhi-alert>
<div class="row">
<div class="col-sm-12">
<form name="searchForm" class="form-inline">
<div class="input-group w-100 mt-3">
<input type="text" class="form-control" [(ngModel)]="currentSearch" id="currentSearch" name="currentSearch" placeholder="{{ 'greatBigExampleApplicationApp.claim.home.search' | translate }}">
<button class="input-group-addon btn btn-info" (click)="search(currentSearch)">
<span class="fa fa-search"></span>
</button>
<button class="input-group-addon btn btn-danger" (click)="clear()" *ngIf="currentSearch">
<span class="fa fa-trash-o"></span>
</button>
</div>
</form>
</div>
</div>
<br/>
<div class="table-responsive" *ngIf="claims">
<table class="table table-striped">
<thead>
<tr>
<th><span jhiTranslate="global.field.id">ID</span></th>
<th><span jhiTranslate="greatBigExampleApplicationApp.claim.name">Name</span></th>
<th><span jhiTranslate="greatBigExampleApplicationApp.claim.sortOrder">Sort Order</span></th>
<th><span jhiTranslate="greatBigExampleApplicationApp.claim.imageLabel">Image Label</span></th>
<th><span jhiTranslate="greatBigExampleApplicationApp.claim.imageLink">Image Link</span></th>
<th></th>
</tr>
</thead>
<tbody>
<tr *ngFor="let claim of claims ;trackBy: trackId">
<td><a [routerLink]="['../claim', claim.id ]">{{claim.id}}</a></td>
<td>{{claim.name}}</td>
<td>{{claim.sortOrder}}</td>
<td>{{claim.imageLabel}}</td>
<td>{{claim.imageLink}}</td>
<td class="text-right">
<div class="btn-group flex-btn-group-container">
<button type="submit"
[routerLink]="['../claim', claim.id ]"
class="btn btn-info btn-sm">
<span class="fa fa-eye"></span>
<span class="hidden-md-down" jhiTranslate="entity.action.view">View</span>
</button>
<button type="submit"
[routerLink]="['/', { outlets: { popup: 'claim/'+ claim.id + '/edit'} }]"
replaceUrl="true"
class="btn btn-primary btn-sm">
<span class="fa fa-pencil"></span>
<span class="hidden-md-down" jhiTranslate="entity.action.edit">Edit</span>
</button>
<button type="submit"
[routerLink]="['/', { outlets: { popup: 'claim/'+ claim.id + '/delete'} }]"
replaceUrl="true"
class="btn btn-danger btn-sm">
<span class="fa fa-remove"></span>
<span class="hidden-md-down" jhiTranslate="entity.action.delete">Delete</span>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>