Make generic

This commit is contained in:
Paul Chavard 2021-08-17 10:11:01 +01:00 committed by kara Diaby
parent cf0b3b4f74
commit 2a84f14521
6 changed files with 50 additions and 23 deletions

View file

@ -15,8 +15,8 @@
= render partial: 'shared/attachment/show', locals: { attachment: @avis.introduction_file.attachment }
%br/
= form_for @avis, url: expert_avis_path(@avis.procedure, @avis), html: { class: 'form' } do |f|
= f.text_area :answer, rows: 3, placeholder: 'Votre avis', required: true
= form_for @avis, url: expert_avis_path(@avis.procedure, @avis), html: { class: 'form', data: { persisted_content_id: @avis.id } } do |f|
= f.text_area :answer, rows: 3, placeholder: 'Votre avis', required: true, class: 'persisted-input'
= text_upload_and_render f, @avis.piece_justificative_file
.flex.justify-between.align-baseline