providers create form added

This commit is contained in:
2025-11-27 16:42:20 +01:00
parent cbf01acb99
commit 6235df5482
7 changed files with 17 additions and 10 deletions

View File

@@ -1 +1 @@
<p>customers works!</p>
<app-customers-card-form/>

View File

@@ -1,8 +1,11 @@
import { Component } from '@angular/core';
import {CustomersCardForm} from "./customers-card-form/customers-card-form";
@Component({
selector: 'app-customers',
imports: [],
imports: [
CustomersCardForm
],
templateUrl: './customers.html',
styleUrl: './customers.css',
})

View File

@@ -2,13 +2,14 @@ import { Component } from '@angular/core';
import {NzModalComponent, NzModalModule} from "ng-zorro-antd/modal";
import {NzButtonComponent, NzButtonModule} from "ng-zorro-antd/button";
import {NzMessageService} from "ng-zorro-antd/message";
import {ProvidersAddForm} from "../providers-add-form/providers-add-form";
@Component({
selector: 'app-providers-card-form',
imports: [NzButtonModule, NzModalModule],
imports: [NzButtonModule, NzModalModule, ProvidersAddForm],
template: `
<button nz-button nzType="primary" (click)="showModal()">
<span>+</span>
<span style="font-weight: bold">+</span>
</button>
<nz-modal
[(nzVisible)]="isVisible"
@@ -17,10 +18,10 @@ import {NzMessageService} from "ng-zorro-antd/message";
[nzFooter]="modalFooter"
(nzOnCancel)="handleCancel()"
>
<ng-template #modalTitle style="text-align: center">Création de prestataires</ng-template>
<ng-template #modalTitle>Création de prestataires</ng-template>
<ng-template #modalContent>
<app-providers-add-form></app-providers-add-form>
<app-providers-add-form/>
</ng-template>
<ng-template #modalFooter>

View File

@@ -1 +1 @@
<app-providers-card-form></app-providers-card-form>
<app-providers-card-form/>

View File

@@ -1 +1 @@
<p>staff works!</p>
<app-staff-card-form/>

View File

@@ -1,8 +1,11 @@
import { Component } from '@angular/core';
import {StaffCardForm} from "./staff-card-form/staff-card-form";
@Component({
selector: 'app-staff',
imports: [],
imports: [
StaffCardForm
],
templateUrl: './staff.html',
styleUrl: './staff.css',
})

View File

@@ -6,4 +6,4 @@
// Override less variables to here
// View all variables: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/components/style/themes/default.less
// @primary-color: #1890ff;
@primary-color: #1c1c1c;