fix modal size
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<tr>
|
||||
<td>{{deliverer.transporter}}</td>
|
||||
<td>
|
||||
<app-modal-button type="link" name="Voir tout les bons de livraison">
|
||||
<app-modal-button type="link" name="Voir tout les bons de livraison" size="50%">
|
||||
<div style="max-height: 400px; overflow-y: auto;">
|
||||
<nz-table [nzData]="deliverers()"
|
||||
[nzFrontPagination]="false">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Transporteur
|
||||
</nz-form-label>
|
||||
|
||||
<nz-form-control nzSpan="12" nzErrorTip="Ce champ est requis">
|
||||
<nz-form-control nzSpan="9" nzErrorTip="Ce champ est requis">
|
||||
<nz-select formControlName="deliverer" [nzPlaceHolder]="'Choisir un transporteur'" nzShowSearch [nzFilterOption]="filter">
|
||||
@for (deliverer of deliverers(); track deliverer.id) {
|
||||
<nz-option [nzValue]="deliverer.id" [nzLabel]="deliverer.transporter"></nz-option>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<td>{{deliveryNote.estimateDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>{{deliveryNote.realDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>
|
||||
<app-modal-button type="link" name="Voir les produits">
|
||||
<app-modal-button type="link" name="Voir les produits" size="40%">
|
||||
<div style="max-height: 400px; overflow-y: auto;">
|
||||
<nz-table [nzData]="deliveryNotes()"
|
||||
[nzFrontPagination]="false">
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
(nzOnOk)="handleOk()"
|
||||
[nzOkLoading]="isOkLoading"
|
||||
[nzContent]="modalContent"
|
||||
[nzWidth]="size()"
|
||||
>
|
||||
</nz-modal>
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import {NzButtonComponent} from "ng-zorro-antd/button";
|
||||
})
|
||||
|
||||
export class ModalButton {
|
||||
size = input<string>();
|
||||
name = input.required<string>()
|
||||
type = input<"primary" | "default" | "dashed" | "link" | "text">()
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<td>{{purchaseOrder.purchaseConditions}}</td>
|
||||
<td>Fournisseur ???</td>
|
||||
<td>
|
||||
<app-modal-button type="link" name="Voir les produits">
|
||||
<app-modal-button type="link" name="Voir les produits" size="45%">
|
||||
<div style="max-height: 400px; overflow-y: auto;">
|
||||
<nz-table [nzData]="purchaseOrders()"
|
||||
[nzFrontPagination]="false">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<td>{{quotation.message}}</td>
|
||||
<td>{{quotation.conditionsSale}}</td>
|
||||
<td>
|
||||
<app-modal-button type="link" name="Voir les produits">
|
||||
<app-modal-button type="link" name="Voir les produits" size="45%">
|
||||
<div style="max-height: 400px; overflow-y: auto;">
|
||||
<nz-table>
|
||||
<thead>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<td>{{ supplier.city }}</td>
|
||||
<td>{{ supplier.deliveryDelay }} jours</td>
|
||||
<td>
|
||||
<app-modal-button type="link" [name]="'Voir les produits'">
|
||||
<app-modal-button type="link" [name]="'Voir les produits'" size="40%">
|
||||
<nz-table [nzData]="suppliers()"
|
||||
[nzFrontPagination]="false">
|
||||
<thead>
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
type="primary"
|
||||
name="Ajouter un transporteur"
|
||||
(ok)="onModalOk()"
|
||||
(cancel)="onModalCancel()">
|
||||
(cancel)="onModalCancel()"
|
||||
size="35%">
|
||||
|
||||
<app-deliverer-form #delivererForm></app-deliverer-form>
|
||||
</app-modal-button>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="flex mt-2">
|
||||
<app-modal-button type="primary" name="Créer un bon de livraison">
|
||||
<app-modal-button type="primary" name="Créer un bon de livraison" size="32%">
|
||||
<app-deliverery-note-form></app-deliverery-note-form>
|
||||
</app-modal-button>
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<div class="flex mt-2">
|
||||
@if (hasSelection) {
|
||||
<app-modal-button #modalButton type="default" name="Créer un bon de commande" class="ml-4">
|
||||
<app-modal-button #modalButton type="default" name="Créer un bon de commande" size="35%" class="ml-4">
|
||||
<app-purchase-order-form #purchaseOrderForm></app-purchase-order-form>
|
||||
</app-modal-button>
|
||||
|
||||
<app-modal-button #modalButton type="default" name="Créer un devis" class="ml-4" (click)="test()">
|
||||
<app-modal-button #modalButton type="default" name="Créer un devis" size="35%" class="ml-4" (click)="test()">
|
||||
<app-quotation-form #quotationForm></app-quotation-form>
|
||||
</app-modal-button>
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
type="primary"
|
||||
name="Ajouter un fournisseur"
|
||||
(ok)="onModalOk()"
|
||||
(cancel)="onModalCancel()">
|
||||
(cancel)="onModalCancel()"
|
||||
size="35%">
|
||||
|
||||
<app-supplier-form #supplierForm></app-supplier-form>
|
||||
</app-modal-button>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
README.md
|
||||
api.base.service.ts
|
||||
api.module.ts
|
||||
|
||||
@@ -12,7 +12,7 @@ import { CustomHttpParameterCodec } from './encoder';
|
||||
import { Configuration } from './configuration';
|
||||
|
||||
export class BaseService {
|
||||
protected basePath = 'https://localhost:44379';
|
||||
protected basePath = 'http://localhost:5298';
|
||||
public defaultHeaders = new HttpHeaders();
|
||||
public configuration: Configuration;
|
||||
public encoder: HttpParameterCodec;
|
||||
|
||||
Reference in New Issue
Block a user