update form from create book
This commit is contained in:
@@ -1,33 +1,37 @@
|
||||
<form nz-form nzLayout="horizontal" [formGroup]="authorForm" (ngSubmit)="submitForm()">
|
||||
<form nz-form nzLayout="horizontal" [formGroup]="createBookForm" (ngSubmit)="submitForm()">
|
||||
<nz-form-item>
|
||||
<nz-form-label nzSpan="4" nzRequired>
|
||||
Nom
|
||||
Titre
|
||||
</nz-form-label>
|
||||
|
||||
<nz-form-control nzSpan="20" nzErrorTip="Ce champ est requis">
|
||||
<input nz-input placeholder="Nom" formControlName="name">
|
||||
<input nz-input placeholder="Titre du livre" formControlName="title">
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
|
||||
<nz-form-item>
|
||||
<nz-form-label nzSpan="4" nzRequired>
|
||||
Prénom
|
||||
Date de publication
|
||||
</nz-form-label>
|
||||
|
||||
<nz-form-control nzSpan="20" nzErrorTip="Ce champ est requis">
|
||||
<input nz-input placeholder="Prénom" formControlName="firstname">
|
||||
<input nz-input type="number" placeholder="2005" formControlName="releaseYear">
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
|
||||
<nz-form-item>
|
||||
<nz-form-label nzSpan="4" nzRequired>
|
||||
Auteur
|
||||
</nz-form-label>
|
||||
|
||||
<nz-form-control nzSpan="20" nzErrorTip="Ce champ est requis">
|
||||
<input nz-input placeholder="Auteur" formControlName="author">
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
|
||||
<nz-flex nzJustify="end">
|
||||
<!-- <button nz-button nzType="primary" (click)="submitForm()">-->
|
||||
<!-- Valider-->
|
||||
<!-- </button>-->
|
||||
|
||||
<button nz-button nzType="primary" type="submit">
|
||||
<button nz-button nzType="primary" (click)="submitForm()">
|
||||
Valider
|
||||
</button>
|
||||
</nz-flex>
|
||||
</form>
|
||||
|
||||
<button nz-button (click)="fillForm()">Simuler une récupération depuis le serveur</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user