component all the champ

This commit is contained in:
simon lehericey 2022-08-12 10:45:04 +02:00
parent a98aa079e2
commit a3e8c09e71
121 changed files with 554 additions and 292 deletions

View file

@ -0,0 +1,2 @@
- user_can_destroy = !@champ.mandatory? || @champ.dossier.brouillon?
= render Attachment::EditComponent.new(form: @form, attached_file: @champ.piece_justificative_file, template: @champ.type_de_champ.piece_justificative_template, user_can_destroy: user_can_destroy)