demarches-normaliennes/app/views/champs/options/remove.turbo_stream.haml
2023-04-03 16:54:50 +02:00

8 lines
295 B
Text

= 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