demarches-normaliennes/app/views/shared/champs/pole_emploi/_identite.html.haml
2021-12-08 10:36:25 +01:00

12 lines
573 B
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%table.pole-emploi
%caption #{t("api_particulier.providers.pole_emploi.scopes.#{scope}.libelle")} :
- identite.slice('identifiant', 'civilite', 'nom', 'nomUsage', 'prenom', 'sexe', 'dateNaissance').keys.each do |key|
%tr
%th= t("api_particulier.providers.pole_emploi.scopes.#{scope}.#{key}")
- case key
- when 'dateNaissance'
%td= try_format_date(Date.strptime(identite[key], "%Y-%m-%d"))
- when 'sexe'
%td= t("api_particulier.providers.pole_emploi.scopes.#{scope}.#{identite[key]}")
- else
%td= identite[key]