Commit cbaced0b authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Formattage des dates des données personnelles en lecture seule (#60707)

parent 81634a9e
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -46,7 +46,9 @@ $dossierIdentiteComplementaire = $form->get('DossierIdentiteComplementaire');
                <div class="input-group cold-md-6 readonly">
                    <?php
                    if (!empty($dossierIdentiteComplementaire->get('dateNaissance')->getValue())) {
                        echo ($viewIdentite) ? $dossierIdentiteComplementaire->get('dateNaissance')->getValue() : '**/**/****';
                        $dateNaissance = $dossierIdentiteComplementaire->get('dateNaissance')->getValue();
                        $dateNaissanceFormatted = DateTime::createFromFormat('Y-m-d',$dateNaissance)->format('d/m/Y');
                        echo ($viewIdentite) ? $dateNaissanceFormatted : '**/**/****';
                    }
                    ?>
                </div>
+3 −1
Original line number Diff line number Diff line
@@ -99,7 +99,9 @@ $dossierIdentite = $form->get('DossierIdentite');
                        <div class="input-group cold-md-6 readonly">
                            <?php
                            if (!empty($dossierIdentite->get('dateSituationMatrimoniale')->getValue())) {
                                echo ($viewIdentite) ? $dossierIdentite->get('dateSituationMatrimoniale')->getValue() : '**/**/****';
                                $dateMatrimoniale = $dossierIdentite->get('dateSituationMatrimoniale')->getValue();
                                $dateMatrimonialeFormatted = DateTime::createFromFormat('Y-m-d',$dateMatrimoniale)->format('d/m/Y');
                                echo ($viewIdentite) ? $dateMatrimonialeFormatted : '**/**/****';
                            }
                            ?>
                        </div>