demarches-normaliennes/app/views/champs/piece_justificative/show.turbo_stream.haml
2023-01-25 13:45:26 +01:00

6 lines
343 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: form
- @champ.piece_justificative_file.attachments.each do |attachment|
= turbo_stream.focus_all "button[data-toggle-target=\".attachment-input-#{attachment.id}\"]"