2022-05-07 17:49:27 +02:00
|
|
|
.container.dossier-edit
|
|
|
|
- if dossier.champs_private.present?
|
|
|
|
%section
|
|
|
|
= form_for dossier, url: annotations_instructeur_dossier_path(dossier.procedure, dossier), html: { class: 'form', multipart: true } do |f|
|
|
|
|
- dossier.champs_private.each do |champ|
|
|
|
|
= fields_for champ.input_name, champ do |form|
|
2022-09-08 11:25:39 +02:00
|
|
|
= render EditableChamp::EditableChampComponent.new form: form, champ: champ, seen_at: seen_at
|
2022-05-07 17:49:27 +02:00
|
|
|
|
|
|
|
- if !dossier.for_procedure_preview?
|
2022-09-08 11:25:39 +02:00
|
|
|
.send-wrapper
|
|
|
|
= f.submit 'Sauvegarder', class: 'button primary send', data: { disable: true }
|
2022-05-07 17:49:27 +02:00
|
|
|
|
|
|
|
- else
|
|
|
|
%h2.empty-text Aucune annotation privée
|