6 lines
375 B
Text
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"]'
|