fixed errors

This commit is contained in:
2025-11-14 08:20:52 +01:00
parent 4bdae0252b
commit ffc633c452
7 changed files with 15 additions and 28 deletions

View File

@@ -1,10 +1,11 @@
import { Component } from '@angular/core';
import {NzFormModule} from "ng-zorro-antd/form";
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
import {NzInputDirective} from "ng-zorro-antd/input";
@Component({
selector: 'app-create-book',
imports: [NzFormModule, ReactiveFormsModule],
imports: [NzFormModule, ReactiveFormsModule, NzInputDirective],
templateUrl: './create-book.html',
styleUrls: ['./create-book.css'],
})

View File

@@ -35,7 +35,7 @@
</nz-form-label>
<nz-form-control nzSpan="40" nzErrorTip="Ce champ est requis">
<input nz-input type="number" placeholder="2005" formControlName="releaseYear">
<nz-date-picker nzPlaceHolder="2025-11-14" formControlName="releaseYear"></nz-date-picker>
</nz-form-control>
</nz-form-item>
</form>

View File

@@ -1,10 +1,12 @@
import { Component } from '@angular/core';
import {NzFormModule} from "ng-zorro-antd/form";
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
import {NzInputDirective} from "ng-zorro-antd/input";
import {NzDatePickerComponent} from "ng-zorro-antd/date-picker";
@Component({
selector: 'app-update-book',
imports: [NzFormModule, ReactiveFormsModule],
imports: [NzFormModule, ReactiveFormsModule, NzInputDirective, NzDatePickerComponent],
templateUrl: './update-book.html',
styleUrl: './update-book.css',
})

View File

@@ -2,4 +2,6 @@
<app-create-loan></app-create-loan>
</app-modal>
<app-loan-table></app-loan-table>
<div class="mt-5">
<app-loan-table></app-loan-table>
</div>

View File

@@ -2,4 +2,6 @@
<app-create-user></app-create-user>
</app-modal>
<app-user-table></app-user-table>
<div class="mt-5">
<app-user-table></app-user-table>
</div>

View File

@@ -1,3 +1,3 @@
<div class="w-90 p-5 rounded-2xl shadow-lg shadow-gray-400 m-auto">
<div class="w-90 p-5 rounded-2xl shadow-lg shadow-gray-200 m-auto">
<app-login></app-login>
</div>