2022-04-19 12:28:29 +02:00
|
|
|
- if @administrateur.present?
|
2023-01-16 21:31:07 +01:00
|
|
|
= turbo_stream.update 'administrateurs' do
|
|
|
|
= render Procedure::ProcedureAdministrateurs::AdministrateurComponent.with_collection(@procedure.administrateurs.order('users.email'), procedure: @procedure)
|
2022-07-28 15:12:24 +02:00
|
|
|
= turbo_stream.replace "new_administrateur", partial: 'add_admin_form', locals: { procedure: @procedure, disabled_as_super_admin: administrateur_as_manager? }
|
2023-01-16 21:31:07 +01:00
|
|
|
= turbo_stream.focus 'administrateur_email'
|