demarches-normaliennes/app/views/administrateurs/procedure_administrateurs/create.turbo_stream.haml
2023-01-25 13:45:26 +01:00

5 lines
444 B
Text

- if @administrateur.present?
= turbo_stream.update 'administrateurs' do
= render Procedure::ProcedureAdministrateurs::AdministrateurComponent.with_collection(@procedure.administrateurs.order('users.email'), procedure: @procedure)
= turbo_stream.replace "new_administrateur", partial: 'add_admin_form', locals: { procedure: @procedure, disabled_as_super_admin: administrateur_as_manager? }
= turbo_stream.focus 'administrateur_email'