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

3 lines
275 B
Text

- if @administrateur.present?
= turbo_stream.append "administrateurs", partial: 'administrateur', locals: { procedure: @procedure, administrateur: @administrateur }
= turbo_stream.replace "new_administrateur", partial: 'add_admin_form', locals: { procedure: @procedure }