Merge pull request #5101 from betagouv/attestations-only-for-instructeurs
show attestations sociales and fiscales only for instructeurs
This commit is contained in:
commit
40d4a0f407
1 changed files with 9 additions and 8 deletions
|
@ -67,15 +67,16 @@
|
||||||
- elsif etablissement.exercices.present?
|
- elsif etablissement.exercices.present?
|
||||||
= t('activemodel.models.exercices_summary', count: etablissement.exercices.count)
|
= t('activemodel.models.exercices_summary', count: etablissement.exercices.count)
|
||||||
|
|
||||||
- if etablissement.entreprise_attestation_sociale.attached?
|
- if profile == 'instructeur'
|
||||||
%tr
|
- if etablissement.entreprise_attestation_sociale.attached?
|
||||||
%th.libelle Attestation sociale
|
%tr
|
||||||
%td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_sociale)
|
%th.libelle Attestation sociale
|
||||||
|
%td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_sociale)
|
||||||
|
|
||||||
- if etablissement.entreprise_attestation_fiscale.attached?
|
- if etablissement.entreprise_attestation_fiscale.attached?
|
||||||
%tr
|
%tr
|
||||||
%th.libelle Attestation fiscale
|
%th.libelle Attestation fiscale
|
||||||
%td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_fiscale)
|
%td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_fiscale)
|
||||||
|
|
||||||
- if etablissement.association?
|
- if etablissement.association?
|
||||||
%tr
|
%tr
|
||||||
|
|
Loading…
Reference in a new issue