added modal into stock page

This commit is contained in:
2025-11-13 18:45:54 +01:00
parent 33de001977
commit 9f41207d9e
2 changed files with 12 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
<th>Weight</th>
<th>Nec</th>
<th>MinimalQuantity</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@@ -21,8 +22,12 @@
<td>{{data.nec}}</td>
<td>{{data.minimalQuantity}}</td>
<td>
modifier
<button nz-button nzType="primary" (click)="delete()" class="bg-red-600 border-red-600">Supprimer</button>
<div style="display: flex; gap: 10px;">
<app-modalNav nameIcon="edit" name="Modifier"></app-modalNav>
<div>
<nz-icon nzType="delete" nzTheme="outline"/>
</div>
</div>
</td>
</tr>
}

View File

@@ -2,12 +2,16 @@ import { Component } from '@angular/core';
import {StockInfo} from "../../interfaces/stock.interface";
import {NzTableComponent} from "ng-zorro-antd/table";
import {NzButtonComponent} from "ng-zorro-antd/button";
import {ModalNav} from "../../components/modalNav/modalNav";
import {NzIconDirective} from "ng-zorro-antd/icon";
@Component({
selector: 'app-stock-table',
imports: [
NzTableComponent,
NzButtonComponent
NzButtonComponent,
ModalNav,
NzIconDirective
],
templateUrl: './stock-table.html',
styleUrl: './stock-table.css',