demarches-normaliennes/app/views/champs/options/remove.turbo_stream.haml

9 lines
295 B
Text
Raw Normal View History

= fields_for @champ.input_name, @champ do |form|
= turbo_stream.replace @champ.input_group_id do
= render EditableChamp::EditableChampComponent.new champ: @champ, form:
- if @next_checkbox_id.present?
= turbo_stream.focus @next_checkbox_id
- else
= turbo_stream.focus @champ.input_id