2017-11-17 23:40:51 +01:00
|
|
|
|
- content_for(:title, "Annotations privées · Dossier nº #{@dossier.id} (#{@dossier.owner_name})")
|
|
|
|
|
|
2017-07-19 16:53:31 +02:00
|
|
|
|
= render partial: "header", locals: { dossier: @dossier }
|
|
|
|
|
|
2017-09-27 12:08:47 +02:00
|
|
|
|
#dossier-annotations-privees.container
|
2018-08-30 11:51:35 +02:00
|
|
|
|
- if @dossier.champs_private.present?
|
2017-08-02 15:33:23 +02:00
|
|
|
|
%section
|
2018-02-21 13:42:11 +01:00
|
|
|
|
= form_for @dossier, url: annotations_gestionnaire_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' } do |f|
|
2018-08-30 11:51:35 +02:00
|
|
|
|
= f.fields_for :champs_private, f.object.champs_private do |champ_form|
|
2017-12-12 17:24:13 +01:00
|
|
|
|
- champ = champ_form.object
|
2018-02-27 18:36:29 +01:00
|
|
|
|
= render partial: "shared/dossiers/editable_champs/editable_champ",
|
2017-12-12 17:24:13 +01:00
|
|
|
|
locals: { champ: champ, form: champ_form, seen_at: @annotations_privees_seen_at }
|
2017-08-02 15:33:23 +02:00
|
|
|
|
|
2017-12-12 17:24:13 +01:00
|
|
|
|
.send-wrapper
|
2018-10-02 14:18:07 +02:00
|
|
|
|
= f.submit 'Sauvegarder', class: 'button primary send', data: { disable: true }
|
2017-09-26 14:38:16 +02:00
|
|
|
|
|
|
|
|
|
- else
|
|
|
|
|
%h2.empty-text Aucune annotation privée
|