25 lines
1.1 KiB
Text
25 lines
1.1 KiB
Text
= render partial: 'administrateurs/breadcrumbs',
|
|
locals: { steps: [['Démarches', admin_procedures_path],
|
|
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
|
['Choix du service', admin_services_path(procedure_id: @procedure.id)],
|
|
['Modifier le service']] }
|
|
|
|
|
|
.container
|
|
- other_services = @service.procedures.reject {|procedure| procedure.id == @procedure.id }
|
|
- if other_services.count > 1
|
|
= render Dsfr::AlertComponent.new(state: :warning, title: "Modifier ce service impactera la ou les démarches qui sont rattachée/s") do |c|
|
|
- c.body do
|
|
%ul
|
|
- other_services.each do |proc|
|
|
%li= "#{proc.libelle} (N° #{proc.id})"
|
|
%p.mt-3 Si vous souhaitez modifier uniquement les informations pour ce service, créez un nouveau service puis associez-le à la démarche
|
|
|
|
%p.mt-3
|
|
= link_to "+ Nouveau service", new_admin_service_path(procedure_id: @procedure.id), class: "fr-btn"
|
|
|
|
|
|
%h1.mt-2 Modifier le service
|
|
|
|
= render partial: 'form',
|
|
locals: { service: @service, procedure_id: @procedure.id }
|