feat: Ajout de projet

This commit is contained in:
2026-09-23 12:56:51 +02:00
parent ad85a96c33
commit d3040c0268
3 changed files with 43 additions and 0 deletions
+11
View File
@@ -67,6 +67,17 @@
{{ project.name_project }}
</p>
}
<button (click)="toggleProjectForm()">Ajouter un projet</button>
@if (showProjectForm){
<form [formGroup]="newProjectForm" (ngSubmit)="submitProject()">
<label for="name-project">Nom </label>
<input id="name-project" type="text" formControlName="name" />
<button type="submit" [disabled]="!newProjectForm.valid">Valider</button>
</form>
}
</div>
<router-outlet />