Skip to content

Commit 217fbb8

Browse files
feat: TT-208 add new column in activity-list
1 parent 03cd1f9 commit 217fbb8

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

src/app/modules/activities-management/components/activity-list/activity-list.component.html

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,41 @@
33
<thead class="thead-blue">
44
<tr class="d-flex">
55
<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>
89
</tr>
910
</thead>
1011
<app-loading-bar *ngIf="(isLoading$ | async)"></app-loading-bar>
1112
<tbody *ngIf="(isLoading$ | async) === false">
1213
<tr class="d-flex" *ngFor="let activity of activities">
1314
<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)">
2118
<i class="fa fa-pencil fa-xs"></i>
2219
</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)">
3022
<i class="fas fa-trash-alt fa-xs"></i>
3123
</button>
3224
</td>
25+
<td class="col-2 text-center">
26+
status
27+
</td>
3328
</tr>
3429
</tbody>
3530
</table>
3631
</div>
3732

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"
4439
aria-hidden="true"
45-
[title]="'Delete Activity'"
46-
[body]="message"
47-
(closeModalEvent)="deleteActivity()"
48-
>
40+
[title]="'Delete Activity'"
41+
[body]="message"
42+
(closeModalEvent)="deleteActivity()">
4943
</app-dialog>

0 commit comments

Comments
 (0)