demarches-normaliennes/app/views/shared/champs/annuaire_education/_show.html.haml
2021-01-14 17:57:48 +01:00

54 lines
1.6 KiB
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.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- if champ.data.blank?
= champ.to_s
- else
%table.table.vertical.dossier-champs
%tbody
%tr
%th.libelle Nom de létablissement :
%td= champ.data['nom_etablissement']
%tr
%th.libelle Lidentifiant de letablissement :
%td= champ.data['identifiant_de_l_etablissement']
%tr
%th.libelle SIREN/SIRET :
%td= champ.data['siren_siret']
%tr
%th.libelle Commune :
%td= "#{champ.data['nom_commune']} (#{champ.data['code_commune']})"
%tr
%th.libelle Academie :
%td= "#{champ.data['libelle_academie']} (#{champ.data['code_academie']})"
%tr
%th.libelle Nature de létablissement :
%td= "#{champ.data['libelle_nature']} (#{champ.data['code_nature']})"
- if champ.data['type_contrat_prive'] != 'SANS OBJET'
%tr
%th.libelle Type de contrat privé :
%td= champ.data['type_contrat_prive']
%tr
%th.libelle Nombre délèves :
%td= champ.data['nombre_d_eleves']
%tr
%th.libelle Adresse :
%td
= champ.data['adresse_1']
%br
= "#{champ.data['code_postal']} #{champ.data['nom_commune']}"
%br
= "#{champ.data['libelle_region']} (#{champ.data['code_region']})"
- if champ.data['telephone'].present?
%tr
%th.libelle Téléphone :
%td= champ.data['telephone']
- if champ.data['mail'].present?
%tr
%th.libelle Email :
%td= champ.data['mail']
- if champ.data['web'].present?
%tr
%th.libelle Site internet :
%td= champ.data['web']