2023-01-17 15:28:41 +01:00
|
|
|
- if @to_show.present?
|
|
|
|
= turbo_stream.show_all(@to_show)
|
|
|
|
- if @to_hide.present?
|
|
|
|
= turbo_stream.hide_all(@to_hide)
|
|
|
|
- @to_update.each do |champ|
|
|
|
|
= fields_for champ.input_name, champ do |form|
|
2023-01-31 16:39:00 +01:00
|
|
|
= turbo_stream.replace champ.input_group_id do
|
2023-01-17 15:28:41 +01:00
|
|
|
= render EditableChamp::EditableChampComponent.new champ:, form:
|
2022-12-16 12:19:49 +01:00
|
|
|
|
2023-01-23 14:49:54 +01:00
|
|
|
= turbo_stream.remove_all(".editable-champ .spinner-removable");
|
|
|
|
= turbo_stream.hide_all(".editable-champ .spinner");
|