Merge pull request #8693 from mfo/US/delete-annotations

correctif(annotations-privee): ajout du delete form component pour supprimer une annotation privee
This commit is contained in:
mfo 2023-02-24 10:33:02 +01:00 committed by GitHub
commit 31292c34ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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|