'Services' routes moved under 'new_administrateur' scope and '/admn' added in their url

This commit is contained in:
Judith 2020-07-07 12:31:52 +02:00 committed by jpoulvel (Rebase PR Action)
parent 782706537d
commit 9793128f61
9 changed files with 17 additions and 19 deletions

View file

@ -20,7 +20,7 @@
.procedure-list-element{ class: ('active' if active == 'Description') }
Description
%a#onglet-services{ href: (@procedure.service.present? || current_administrateur.services.present?) ? url_for(services_path(procedure_id: @procedure.id)) : url_for(new_service_path(procedure_id: @procedure.id)) }
%a#onglet-services{ href: (@procedure.service.present? || current_administrateur.services.present?) ? url_for(admin_services_path(procedure_id: @procedure.id)) : url_for(new_admin_service_path(procedure_id: @procedure.id)) }
.procedure-list-element
Service
- if @procedure.missing_steps.include?(:service)