demarches-normaliennes/app/views/administrateurs/services/edit.html.haml

27 lines
1.3 KiB
Text
Raw Normal View History

= 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']] }
2018-04-24 10:07:20 +02:00
2024-05-22 16:12:48 +02:00
.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
2024-05-22 16:12:48 +02:00
= 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|
2024-01-08 11:22:38 +01:00
- 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
2018-04-19 18:12:48 +02:00
= render partial: 'form',
2018-04-24 10:07:20 +02:00
locals: { service: @service, procedure_id: @procedure.id }