Merge pull request #3544 from betagouv/fix-3495

[Fix #3495] add update identité button
This commit is contained in:
Paul Chavard 2019-03-05 15:12:18 +01:00 committed by GitHub
commit 817d783daa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,6 +17,10 @@
- if dossier.individual.present? - if dossier.individual.present?
= render partial: "shared/dossiers/identite_individual", locals: { individual: dossier.individual } = render partial: "shared/dossiers/identite_individual", locals: { individual: dossier.individual }
- if profile == 'usager' && !dossier.read_only?
.flex.row-reverse
= link_to "Modifier l'identité", identite_dossier_path(dossier), class: 'button'
.tab-title Formulaire .tab-title Formulaire
- champs = dossier.champs.includes(:type_de_champ) - champs = dossier.champs.includes(:type_de_champ)
- if champs.any? - if champs.any?