26 lines
1.3 KiB
Text
26 lines
1.3 KiB
Text
= render partial: 'administrateurs/breadcrumbs',
|
|
locals: { steps: [['Démarches', admin_procedures_path],
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
|
['Choix du service', admin_services_path(procedure_id: @procedure.id)],
|
|
['Modifier le service']] }
|
|
|
|
|
|
.fr-container
|
|
.flex.justify-between.align-center.fr-mb-3w
|
|
= link_to "Liste de tous les services", admin_services_path(procedure_id: @procedure.id), class: "fr-link fr-icon-arrow-left-line fr-link--icon-left"
|
|
= link_to "+ Nouveau service", new_admin_service_path(procedure_id: @procedure.id), class: "fr-btn"
|
|
|
|
%h1.fr-h2
|
|
Modifier le service
|
|
|
|
- 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", extra_class_names: 'fr-mb-3w') do |c|
|
|
- c.with_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
|
|
|
|
= render partial: 'form',
|
|
locals: { service: @service, procedure: @procedure }
|