|
1 | | -<table class="table table-sm table-bordered table-striped"> |
2 | | - <thead class="thead-orange"> |
3 | | - <tr class="d-flex"> |
4 | | - <th class="col-9">Project type</th> |
5 | | - <th class="col-3 text-center"></th> |
6 | | - </tr> |
7 | | - </thead> |
8 | | - <tbody> |
9 | | - <tr |
10 | | - class="d-flex" |
11 | | - *ngFor=" |
12 | | - let projectType of projectTypes | paginate: { itemsPerPage: itemsPerPage, currentPage: initPage2, id: 'second' } |
13 | | - " |
14 | | - > |
15 | | - <td class="col-sm-9">{{ projectType.name }}</td> |
16 | | - <td class="col-sm-3 text-center"> |
17 | | - <button type="button" class="btn btn-sm btn-primary" (click)="updateProjectType(projectType.id)"><i class="fa fa-pencil fa-xs"></i></button> |
18 | | - <button type="button" class="btn btn-sm btn-danger ml-2" (click)="deleteProjectType(projectType.id)"><i class="fas fa-trash-alt fa-xs"></i></button> |
19 | | - </td> |
20 | | - </tr> |
21 | | - </tbody> |
22 | | -</table> |
23 | | -<div class="d-flex align-items-end flex-column"> |
24 | | - <pagination-controls |
25 | | - class="mt-auto p-2 custom-pagination" |
26 | | - (pageChange)="initPage2 = $event" |
27 | | - id="second" |
28 | | - previousLabel="" |
29 | | - nextLabel="" |
30 | | - ></pagination-controls> |
| 1 | +<div class="project-type-list-div"> |
| 2 | + <table class="table table-sm table-bordered table-striped"> |
| 3 | + <thead class="thead-orange"> |
| 4 | + <tr class="d-flex"> |
| 5 | + <th class="col-9">Project type</th> |
| 6 | + <th class="col-3 text-center"></th> |
| 7 | + </tr> |
| 8 | + </thead> |
| 9 | + <tbody> |
| 10 | + <tr class="d-flex" *ngFor="let projectType of projectTypes"> |
| 11 | + <td class="col-sm-9">{{ projectType.name }}</td> |
| 12 | + <td class="col-sm-3 text-center"> |
| 13 | + <button type="button" class="btn btn-sm btn-primary" (click)="updateProjectType(projectType.id)"><i |
| 14 | + class="fa fa-pencil fa-xs"></i></button> |
| 15 | + <button type="button" class="btn btn-sm btn-danger ml-2" (click)="deleteProjectType(projectType.id)"><i |
| 16 | + class="fas fa-trash-alt fa-xs"></i></button> |
| 17 | + </td> |
| 18 | + </tr> |
| 19 | + </tbody> |
| 20 | + </table> |
31 | 21 | </div> |
0 commit comments