|
1 | | -<div class="table table-responsive"> |
| 1 | +<div class="table-responsive-sm"> |
2 | 2 | <table |
3 | | - *ngIf="customers" |
4 | | -class="table table-bordered table-striped" |
5 | | - datatable |
6 | | - [dtTrigger]="dtTrigger" |
7 | | - [dtOptions]="dtOptions" |
8 | | -> |
9 | | - <thead class="thead-blue"> |
10 | | - <tr class="d-flex"> |
11 | | - <th class="col-5 text-center">Customer ID</th> |
12 | | - <th class="col-3 text-center">Name</th> |
13 | | - <th class="col-4 text-center">Options</th> |
14 | | - </tr> |
15 | | - </thead> |
16 | | - <app-loading-bar *ngIf="(isLoading$ | async)"></app-loading-bar> |
17 | | - <tbody *ngIf="((isLoading$ | async) === false)"> |
18 | | - <tr class="d-flex" *ngFor="let customer of customers"> |
19 | | - <td class="col-5">{{ customer.id }}</td> |
20 | | - <td class="col-3">{{ customer.name }}</td> |
21 | | - <td class="col-4 text-center"> |
22 | | - <button |
23 | | - (click)="editCustomer(customer.id)" |
24 | | - type="button" |
25 | | - class="btn btn-sm btn-primary" |
26 | | - > |
27 | | - <i class="fa fa-pencil fa-xs"></i> |
28 | | - </button> |
29 | | - <button |
30 | | - data-toggle="modal" |
31 | | - data-target="#deleteModal" |
32 | | - (click)="openModal(customer)" |
33 | | - type="button" |
34 | | - class="btn btn-sm btn-danger ml-2" |
35 | | - > |
36 | | - <i class="fa fa-trash-alt fa-xs"></i> |
37 | | - </button> |
38 | | - </td> |
39 | | - </tr> |
40 | | - </tbody> |
41 | | -</table> |
| 3 | + *ngIf="customers" |
| 4 | + class="table table-bordered table-striped mb-0" |
| 5 | + datatable |
| 6 | + [dtTrigger]="dtTrigger" |
| 7 | + [dtOptions]="dtOptions" |
| 8 | + > |
| 9 | + <thead class="thead-blue"> |
| 10 | + <tr class="d-flex"> |
| 11 | + <th class="col-5 text-center">Customer ID</th> |
| 12 | + <th class="col-3 text-center">Name</th> |
| 13 | + <th class="col-4 text-center">Options</th> |
| 14 | + </tr> |
| 15 | + </thead> |
| 16 | + <app-loading-bar *ngIf="(isLoading$ | async)"></app-loading-bar> |
| 17 | + <tbody *ngIf="((isLoading$ | async) === false)"> |
| 18 | + <tr class="d-flex" *ngFor="let customer of customers"> |
| 19 | + <td class="col-5 text-break">{{ customer.id }}</td> |
| 20 | + <td class="col-3 text-break">{{ customer.name }}</td> |
| 21 | + <td class="col-4 text-center"> |
| 22 | + <button |
| 23 | + (click)="editCustomer(customer.id)" |
| 24 | + type="button" |
| 25 | + class="btn btn-sm btn-primary" |
| 26 | + > |
| 27 | + <i class="fa fa-pencil fa-xs"></i> |
| 28 | + </button> |
| 29 | + <button |
| 30 | + data-toggle="modal" |
| 31 | + data-target="#deleteModal" |
| 32 | + (click)="openModal(customer)" |
| 33 | + type="button" |
| 34 | + class="btn btn-sm btn-danger ml-2" |
| 35 | + > |
| 36 | + <i class="fa fa-trash-alt fa-xs"></i> |
| 37 | + </button> |
| 38 | + </td> |
| 39 | + </tr> |
| 40 | + </tbody> |
| 41 | + </table> |
42 | 42 | </div> |
43 | 43 |
|
44 | 44 | <app-dialog |
|
0 commit comments