fixed errors
This commit is contained in:
@@ -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'],
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
@@ -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',
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user