correctif(annotations-privee): ajout du delete form component pour supprimer une annotation privee

This commit is contained in:
Martin 2023-02-24 10:19:41 +01:00
parent c4746099fa
commit ff9bb8a3cc

View file

@ -1,6 +1,7 @@
.container.dossier-edit .container.dossier-edit
- if dossier.champs_private.present? - if dossier.champs_private.present?
%section %section
= render Attachment::DeleteFormComponent.new
= form_for dossier, url: annotations_instructeur_dossier_path(dossier.procedure, dossier), html: { class: 'form', multipart: true } do |f| = form_for dossier, url: annotations_instructeur_dossier_path(dossier.procedure, dossier), html: { class: 'form', multipart: true } do |f|
- dossier.champs_private.each do |champ| - dossier.champs_private.each do |champ|
= fields_for champ.input_name, champ do |form| = fields_for champ.input_name, champ do |form|