Admin Nav Bar: link to new service if no service available
This commit is contained in:
parent
f2357acb27
commit
304c04275c
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
.procedure-list-element{ class: ('active' if active == 'Informations') }
|
||||
Informations
|
||||
|
||||
%a#onglet-services{ href: url_for(services_path(procedure_id: @procedure.id)) }
|
||||
%a#onglet-services{ href: current_administrateur.services.present? ? url_for(services_path(procedure_id: @procedure.id)) : url_for(new_service_path(procedure_id: @procedure.id)) }
|
||||
.procedure-list-element
|
||||
Services
|
||||
|
||||
|
|
Loading…
Reference in a new issue