demarches-normaliennes/app/views/gestionnaires/groupe_gestionnaire_children/create.turbo_stream.haml

6 lines
394 B
Text
Raw Normal View History

2023-10-01 12:52:05 +02:00
- if @child.present?
= turbo_stream.update 'children' do
= render GroupeGestionnaire::GroupeGestionnaireChildren::ChildComponent.with_collection(@groupe_gestionnaire.children, groupe_gestionnaire: @groupe_gestionnaire)
= turbo_stream.replace "new_child", partial: 'add_child_form', locals: { groupe_gestionnaire: @groupe_gestionnaire }
2023-10-01 12:52:05 +02:00
= turbo_stream.focus 'groupe_gestionnaire_name'