revert(ui): ChildCardWidget identique au commit b18d5c8 (7 fév. 2026)
- Restauration fichier tel que dans feat(frontend): Refonte multi-modes (#78) - Retrait onGenreChanged (step3/step5) ; genre API: défaut Autre si non renseigné jusqu’à nouvelle UI genre Made-with: Cursor
This commit is contained in:
@@ -59,9 +59,7 @@ class ParentRegistrationPayload {
|
||||
for (var i = 0; i < d.children.length; i++) {
|
||||
final c = d.children[i];
|
||||
final label = 'Enfant ${i + 1}';
|
||||
if (!apiGenres.contains(c.genre)) {
|
||||
return '$label : sélectionnez le genre (garçon, fille ou autre).';
|
||||
}
|
||||
// Pas de saisie genre sur la carte (widget revenu à b18d5c8) : valeur par défaut côté JSON.
|
||||
if (c.isUnbornChild) {
|
||||
final due = _ddMmYyyyToIso(c.dob);
|
||||
if (due == null) {
|
||||
@@ -135,7 +133,7 @@ class ParentRegistrationPayload {
|
||||
|
||||
static Map<String, dynamic> _childToJson(ChildData c, int index, String parentNom) {
|
||||
final map = <String, dynamic>{
|
||||
'genre': c.genre,
|
||||
'genre': apiGenres.contains(c.genre) ? c.genre : 'Autre',
|
||||
'grossesse_multiple': c.multipleBirth,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user