|
3 | 3 | <thead class="thead-blue"> |
4 | 4 | <tr class="d-flex"> |
5 | 5 | <th class="col-4 text-center">Activity ID</th> |
6 | | - <th class="col-5 text-center">Activity</th> |
7 | | - <th class="col-3 text-center">Options</th> |
| 6 | + <th class="col-4 text-center">Activity</th> |
| 7 | + <th class="col-2 text-center">Options</th> |
| 8 | + <th class="col-2 text-center">Status</th> |
8 | 9 | </tr> |
9 | 10 | </thead> |
10 | 11 | <app-loading-bar *ngIf="(isLoading$ | async)"></app-loading-bar> |
11 | 12 | <tbody *ngIf="(isLoading$ | async) === false"> |
12 | 13 | <tr class="d-flex" *ngFor="let activity of activities"> |
13 | 14 | <td class="col-4 text-break">{{ activity.id }}</td> |
14 | | - <td class="col-5 ">{{ activity.name }}</td> |
15 | | - <td class="col-3 text-center"> |
16 | | - <button |
17 | | - type="button" |
18 | | - class="btn btn-sm btn-primary" |
19 | | - (click)="updateActivity(activity.id)" |
20 | | - > |
| 15 | + <td class="col-4 ">{{ activity.name }}</td> |
| 16 | + <td class="col-2 text-center"> |
| 17 | + <button type="button" class="btn btn-sm btn-primary" (click)="updateActivity(activity.id)"> |
21 | 18 | <i class="fa fa-pencil fa-xs"></i> |
22 | 19 | </button> |
23 | | - <button |
24 | | - type="button" |
25 | | - class="btn btn-sm btn-danger ml-2" |
26 | | - data-toggle="modal" |
27 | | - data-target="#deleteModal" |
28 | | - (click)="openModal(activity)" |
29 | | - > |
| 20 | + <button type="button" class="btn btn-sm btn-danger ml-2" data-toggle="modal" data-target="#deleteModal" |
| 21 | + (click)="openModal(activity)"> |
30 | 22 | <i class="fas fa-trash-alt fa-xs"></i> |
31 | 23 | </button> |
32 | 24 | </td> |
| 25 | + <td class="col-2 text-center"> |
| 26 | + status |
| 27 | + </td> |
33 | 28 | </tr> |
34 | 29 | </tbody> |
35 | 30 | </table> |
36 | 31 | </div> |
37 | 32 |
|
38 | | -<app-dialog |
39 | | - *ngIf="showModal" |
40 | | - class="modal fade" |
41 | | - id="deleteModal" |
42 | | - tabindex="-1" |
43 | | - role="dialog" |
| 33 | +<app-dialog |
| 34 | + *ngIf="showModal" |
| 35 | + class="modal fade" |
| 36 | + id="deleteModal" |
| 37 | + tabindex="-1" |
| 38 | + role="dialog" |
44 | 39 | aria-hidden="true" |
45 | | - [title]="'Delete Activity'" |
46 | | - [body]="message" |
47 | | - (closeModalEvent)="deleteActivity()" |
48 | | -> |
| 40 | + [title]="'Delete Activity'" |
| 41 | + [body]="message" |
| 42 | + (closeModalEvent)="deleteActivity()"> |
49 | 43 | </app-dialog> |
0 commit comments