Merge pull request #5678 from betagouv/fix-service-edit-link

ETQ administrateur, je peux modifier un service depuis une démarche
This commit is contained in:
Paul Chavard 2020-10-07 11:33:57 +02:00 committed by GitHub
commit e63993c07e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@
Choix du service administratif Choix du service administratif
.card-admin-action .card-admin-action
- if @procedure.service.present? - if @procedure.service.present?
= link_to 'Modifier', edit_admin_service_path(@procedure.service), class: 'button' = link_to 'Modifier', edit_admin_service_path(@procedure.service, procedure_id: @procedure.id), class: 'button'
- elsif current_administrateur.services.present? - elsif current_administrateur.services.present?
= link_to 'Choisir', admin_services_path(procedure_id: @procedure.id), class: 'button' = link_to 'Choisir', admin_services_path(procedure_id: @procedure.id), class: 'button'
- else - else