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

6 lines
375 B
Text

= 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"]'