feat(#157): alerte enfants sans responsable + rattachement foyer.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-17 19:02:21 +02:00
co-authored by Cursor
parent 7a3d997ff9
commit 2ececa711b
7 changed files with 123 additions and 9 deletions
@@ -37,6 +37,10 @@ class EnfantAdminModel {
return '$fn $ln';
}
/// Aucun lien parent valide (`enfants_parents` vide) — ticket #157.
bool get hasNoResponsable =>
!parentLinks.any((l) => l.parentId.trim().isNotEmpty);
EnfantAdminModel copyWith({
String? id,
String? firstName,