added modal into stock page
This commit is contained in:
@@ -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>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user