|
1 | 1 | <div class="table-responsive-sm"> |
2 | | - <table *ngIf="customers" class="table table-bordered table-striped mb-0" datatable [dtTrigger]="dtTrigger" |
| 2 | + <table |
| 3 | + *ngIf="customers" |
| 4 | + class="table table-bordered table-striped mb-0" |
| 5 | + datatable |
| 6 | + [dtTrigger]="dtTrigger" |
3 | 7 | [dtOptions]="dtOptions"> |
4 | 8 | <thead class="thead-blue"> |
5 | 9 | <tr class="d-flex"> |
|
14 | 18 | <td class="col-5 text-break">{{ customer.id }}</td> |
15 | 19 | <td class="col-3 text-break">{{ customer.name }}</td> |
16 | 20 | <td class="col-4 text-center"> |
17 | | - <button data-toggle="modal" data-target="#editModal" (click)="openEditModal(customer)" type="button" class="btn btn-sm btn-primary"> |
| 21 | + <button |
| 22 | + data-toggle="modal" |
| 23 | + data-target="#editModal" |
| 24 | + (click)="openEditModal(customer)" |
| 25 | + type="button" |
| 26 | + class="btn btn-sm btn-primary"> |
18 | 27 | <i class="fa fa-pencil fa-xs"></i> |
19 | 28 | </button> |
20 | | - <button data-toggle="modal" data-target="#deleteModal" (click)="openModal(customer)" type="button" |
| 29 | + <button |
| 30 | + data-toggle="modal" |
| 31 | + data-target="#deleteModal" |
| 32 | + (click)="openModal(customer)" |
| 33 | + type="button" |
21 | 34 | class="btn btn-sm btn-danger ml-2"> |
22 | 35 | <i class="fa fa-trash-alt fa-xs"></i> |
23 | 36 | </button> |
|
27 | 40 | </table> |
28 | 41 | </div> |
29 | 42 |
|
30 | | -<app-dialog *ngIf="showModal" class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-hidden="true" |
31 | | - [title]="'Delete Customer'" [body]="message" (closeModalEvent)="deleteCustomer()"> |
| 43 | +<app-dialog |
| 44 | + *ngIf="showModal" |
| 45 | + class="modal fade" |
| 46 | + id="deleteModal" |
| 47 | + tabindex="-1" |
| 48 | + role="dialog" |
| 49 | + aria-hidden="true" |
| 50 | + [title]="'Delete Customer'" |
| 51 | + [body]="message" |
| 52 | + (closeModalEvent)="deleteCustomer()"> |
32 | 53 | </app-dialog> |
33 | | -<app-dialog *ngIf="showModal" class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-hidden="true" |
34 | | - [title]="'Edit Customer'" [body]="message" (closeModalEvent)="editCustomer()"> |
| 54 | +<app-dialog |
| 55 | + *ngIf="showModal" |
| 56 | + class="modal fade" |
| 57 | + id="editModal" |
| 58 | + tabindex="-1" |
| 59 | + role="dialog" |
| 60 | + aria-hidden="true" |
| 61 | + [title]="'Edit Customer'" |
| 62 | + [body]="message" |
| 63 | + (closeModalEvent)="editCustomer()"> |
35 | 64 | </app-dialog> |
0 commit comments