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

View File

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