feat: Ajout d'une tâche
This commit is contained in:
@@ -11,6 +11,28 @@
|
||||
{{ task.name_task }}
|
||||
</p>
|
||||
}
|
||||
|
||||
<button (click)="toggleForm()">
|
||||
Ajouter une tâche
|
||||
</button>
|
||||
|
||||
@if (showTaskForm){
|
||||
<form [formGroup]="newTaskForm" (ngSubmit)="submitTask()">
|
||||
<label for="name-task">Nom </label>
|
||||
<input id="name-task" type="text" formControlName="name" />
|
||||
|
||||
<label for="date-task">Date limite </label>
|
||||
<input id="date-task" type="date" formControlName="dueDate" />
|
||||
|
||||
<label for="priority-task">Priorité </label>
|
||||
<input id="priority-task" type="number" formControlName="priority" />
|
||||
|
||||
<label for="status-task">Statut </label>
|
||||
<input id="status-task" type="status" formControlName="status" />
|
||||
|
||||
<button type="submit" [disabled]="!newTaskForm.valid">Valider</button>
|
||||
</form>
|
||||
}
|
||||
</div>
|
||||
|
||||
<h2>
|
||||
|
||||
Reference in New Issue
Block a user