Merge pull request #5101 from betagouv/attestations-only-for-instructeurs

show attestations sociales and fiscales only for instructeurs
This commit is contained in:
Paul Chavard 2020-04-30 12:23:49 +02:00 committed by GitHub
commit 40d4a0f407
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,7 @@
- elsif etablissement.exercices.present?
= t('activemodel.models.exercices_summary', count: etablissement.exercices.count)
- if profile == 'instructeur'
- if etablissement.entreprise_attestation_sociale.attached?
%tr
%th.libelle Attestation sociale