2022-05-06 19:52:55 +02:00
|
|
|
= fields_for @champ.input_name, @champ do |form|
|
2022-09-08 11:25:39 +02:00
|
|
|
= turbo_stream.morph @champ.input_group_id do
|
|
|
|
= render EditableChamp::EditableChampComponent.new champ: @champ, form: form
|
2022-05-06 19:52:55 +02:00
|
|
|
|
|
|
|
- if @champ.piece_justificative_file.attached?
|
|
|
|
- attachment = @champ.piece_justificative_file.attachment
|
|
|
|
= turbo_stream.focus_all "button[data-toggle-target=\".attachment-input-#{attachment.id}\"]"
|