|
|
|
@ -1,4 +1,24 @@ |
|
|
|
|
<div xmlns=""> |
|
|
|
|
|
|
|
|
|
<h3>Ajouter une agence : </h3> |
|
|
|
|
|
|
|
|
|
<form [formGroup]="registerForm" (ngSubmit)="onSubmit()" > |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3 mb-2"> |
|
|
|
|
<label class="form-label">Nom</label> |
|
|
|
|
<input class="form-control" formControlName="name" [ngClass]="{ 'is-invalid': submitted && f.name.errors }"> |
|
|
|
|
<div *ngIf="submitted && f.name.errors" class="invalid-feedback"> |
|
|
|
|
<div *ngIf="f.name.errors.required">Le nom d'une agence est obligatoire</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<button type="submit">Créer l'agence</button> |
|
|
|
|
<button type="reset" (click)="onReset()">Effacer</button> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<h2 class = mb-4>Agences</h2> |
|
|
|
|
|
|
|
|
|
<div style="overflow-x:auto;" class="mb-5 col-12"> |
|
|
|
@ -19,24 +39,7 @@ |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<h3>Ajouter une agence : </h3> |
|
|
|
|
|
|
|
|
|
<form [formGroup]="registerForm" (ngSubmit)="onSubmit()" > |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3 mb-2"> |
|
|
|
|
<label class="form-label">Nom</label> |
|
|
|
|
<input class="form-control" formControlName="name" [ngClass]="{ 'is-invalid': submitted && f.name.errors }"> |
|
|
|
|
<div *ngIf="submitted && f.name.errors" class="invalid-feedback"> |
|
|
|
|
<div *ngIf="f.name.errors.required">Le nom d'une agence est obligatoire</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
<button type="submit">Créer l'agence</button> |
|
|
|
|
<button type="reset" (click)="onReset()">Effacer</button> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|