Skip to content

Commit 53b26b1

Browse files
authored
Merge pull request #64 from AmpersandTarski/feat/shared-buttons-add-edit-delete
Feat/shared-buttons-add-edit-delete
2 parents d348ebb + 5af5d65 commit 53b26b1

11 files changed

Lines changed: 49 additions & 0 deletions

src/app/project-administration/active-projects/active-projects.component.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<div *ngIf="data$ | async as data">
2+
<div>
3+
<h2>Active Projects</h2>
4+
<app-button-add></app-button-add>
5+
</div>
26
<app-box-table [data]="data" sortable sortBy="Name" order="desc">
37
<ng-template boxTableHeader>
48
<th>Projects</th>
@@ -9,6 +13,7 @@
913
<th>Start</th>
1014
<th>Status</th>
1115
<th>Active</th>
16+
<th></th>
1217
</ng-template>
1318
<ng-template [boxTableRow]="data" let-row>
1419
<td>
@@ -34,6 +39,12 @@
3439
<td>
3540
<app-atomic-boolean [property]="row.Active" isUni crud="CRuD"></app-atomic-boolean>
3641
</td>
42+
<td>
43+
<app-button-edit></app-button-edit>
44+
</td>
45+
<td>
46+
<app-button-delete></app-button-delete>
47+
</td>
3748
</ng-template>
3849
</app-box-table>
3950
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<button pButton type="button" label="" icon="pi pi-plus"></button>

src/app/shared/button-components/button-add/button-add.component.scss

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-button-add',
5+
templateUrl: './button-add.component.html',
6+
styleUrls: ['./button-add.component.scss'],
7+
})
8+
export class ButtonAddComponent {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<button pButton type="button" label="" class="p-button-danger" icon="pi pi-trash"></button>

src/app/shared/button-components/button-delete/button-delete.component.scss

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-button-delete',
5+
templateUrl: './button-delete.component.html',
6+
styleUrls: ['./button-delete.component.scss'],
7+
})
8+
export class ButtonDeleteComponent {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<button pButton type="button" label="" icon="pi pi-pencil"></button>

src/app/shared/button-components/button-edit/button-edit.component.scss

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-button-edit',
5+
templateUrl: './button-edit.component.html',
6+
styleUrls: ['./button-edit.component.scss'],
7+
})
8+
export class ButtonEditComponent {}

0 commit comments

Comments
 (0)