demarches-normaliennes/app/views/administrateurs/procedure_administrateurs/destroy.turbo_stream.haml

7 lines
375 B
Text
Raw Normal View History

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)
- if @procedure.administrateurs.one?
= turbo_stream.focus 'administrateur_email'
- else
= turbo_stream.focus_all '#administrateurs tr:first-child input[type="submit"]'