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

10 lines
553 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")} :
- inscription.slice('dateInscription', 'dateCessationInscription', 'codeCertificationCNAV', 'codeCategorieInscription', 'libelleCategorieInscription').keys.each do |key|
%tr
%th= t("api_particulier.providers.pole_emploi.scopes.#{scope}.#{key}")
- case key
- when 'dateInscription', 'dateCessationInscription'
%td= try_format_date(Date.strptime(inscription[key], "%Y-%m-%d"))
- else
%td= inscription[key]