2022-05-06 19:52:55 +02:00
|
|
|
= fields_for @champ.input_name, @champ do |form|
|
2022-07-26 11:03:31 +02:00
|
|
|
= turbo_stream.morph @champ.input_group_id, partial: "shared/dossiers/editable_champs/editable_champ", locals: { 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}\"]"
|