fix(#112): préremplissage AM complet en reprise + lien login repositionné
Parse dates/places/consentement de façon robuste, rafraîchit l'étape 2 AM et place « J'ai un numéro de dossier » sous « Créer un compte ». Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -29,6 +29,12 @@ class AmRegisterStep2Screen extends StatelessWidget {
|
||||
);
|
||||
|
||||
return ProfessionalInfoFormScreen(
|
||||
key: ValueKey(
|
||||
'am-pro-${registrationData.dateOfBirth?.millisecondsSinceEpoch}'
|
||||
'-${registrationData.agreementDate?.millisecondsSinceEpoch}'
|
||||
'-${registrationData.placesAvailable}'
|
||||
'-${registrationData.nir}',
|
||||
),
|
||||
stepText: 'Étape 2/4',
|
||||
title: 'Vos informations professionnelles',
|
||||
cardColor: CardColorHorizontal.green,
|
||||
|
||||
@@ -377,8 +377,6 @@ class _LoginPageState extends State<LoginScreen> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
Center(child: _buildRepriseDossierLink()),
|
||||
const SizedBox(height: 10),
|
||||
// Lien mot de passe oublié
|
||||
Center(
|
||||
child: TextButton(
|
||||
@@ -412,6 +410,7 @@ class _LoginPageState extends State<LoginScreen> {
|
||||
),
|
||||
),
|
||||
),
|
||||
Center(child: _buildRepriseDossierLink()),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -645,7 +644,6 @@ class _LoginPageState extends State<LoginScreen> {
|
||||
onPressed: _handleLogin,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
_buildRepriseDossierLink(),
|
||||
TextButton(
|
||||
onPressed: () => context.go('/forgot-password'),
|
||||
child: Text(
|
||||
@@ -669,6 +667,7 @@ class _LoginPageState extends State<LoginScreen> {
|
||||
),
|
||||
),
|
||||
),
|
||||
_buildRepriseDossierLink(),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user