2022-05-06 19:52:55 +02:00
|
|
|
= fields_for @champ.input_name, @champ do |form|
|
2023-01-16 21:31:07 +01:00
|
|
|
= turbo_stream.replace @champ.input_group_id do
|
2022-09-08 11:25:39 +02:00
|
|
|
= render EditableChamp::EditableChampComponent.new champ: @champ, form: form
|
2022-05-06 19:52:55 +02:00
|
|
|
|
2023-01-23 16:21:24 +01:00
|
|
|
- last_attached_file = @champ.piece_justificative_file.attachments.last
|
|
|
|
- if last_attached_file
|
|
|
|
= turbo_stream.focus_all "#persisted_row_attachment_#{last_attached_file.id} .attachment-filename a"
|