demarches-normaliennes/app/views/champs/repetition/add.turbo_stream.haml

6 lines
285 B
Text
Raw Normal View History

- if @row_id.present?
= fields_for @champ.input_name, @champ do |form|
= turbo_stream.append dom_id(@champ, :rows), render(EditableChamp::RepetitionRowComponent.new(form: form, champ: @champ, row_id: @row_id))
- if @first_champ_id
= turbo_stream.focus(@first_champ_id)