demarches-normaliennes/app/views/shared/champs/pole_emploi/_inscription.html.haml

11 lines
553 B
Text
Raw Normal View History

%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]