refactor(piece_justificative): UX follows mockups

This commit is contained in:
Colin Darie 2022-11-09 12:33:20 +01:00
parent 84ca01bdf7
commit b13c5e56f6
39 changed files with 373 additions and 272 deletions

View file

@ -17,7 +17,7 @@
= form_for @avis, url: instructeur_avis_path(@avis.procedure, @avis), html: { class: 'form' } do |f|
= f.text_area :answer, rows: 3, placeholder: 'Votre avis', required: true
= render Attachment::EditComponent.new(form: f, attached_file: @avis.piece_justificative_file, user_can_destroy: true)
= render Attachment::EditComponent.new(object: f.object, attached_file: @avis.piece_justificative_file, user_can_destroy: true)
.flex.justify-between.align-baseline
%p.confidentiel.flex