2017-07-19 16:53:31 +02:00
|
|
|
= render partial: "header", locals: { dossier: @dossier }
|
|
|
|
|
|
|
|
#dossier-instruction.container
|
2017-09-06 14:08:03 +02:00
|
|
|
%section.ask-avis
|
2017-07-19 16:53:31 +02:00
|
|
|
%h1 Inviter une personne à donner son avis
|
|
|
|
%p.avis-notice Elle pourra consulter, donner un avis sur le dossier et contribuer au fil de messagerie, mais elle ne pourra le modifier.
|
2017-08-28 14:16:13 +02:00
|
|
|
|
|
|
|
= form_for Avis.new, url: avis_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' } do |f|
|
|
|
|
= f.email_field :email, placeholder: 'Adresse email', required: true
|
|
|
|
= f.text_area :introduction, rows: 3, value: 'Bonjour, merci de me donner votre avis sur ce dossier.', required: true
|
|
|
|
.send-wrapper
|
|
|
|
= f.submit 'Demander un avis', class: 'button send'
|
2017-07-26 11:22:04 +02:00
|
|
|
|
2017-09-20 10:41:09 +02:00
|
|
|
= render partial: 'new_gestionnaire/avis/avis_list', locals: { avis: @dossier.avis }
|
2017-08-02 15:33:23 +02:00
|
|
|
|
|
|
|
- if @dossier.ordered_champs_private.present?
|
|
|
|
%section
|
|
|
|
%h1.private-annotations Annotations privées
|
|
|
|
.card.featured
|
|
|
|
= form_for @dossier, url: annotations_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' } do |f|
|
|
|
|
= f.fields_for :champs_private, f.object.ordered_champs_private do |champ_form|
|
|
|
|
- champ = champ_form.object
|
|
|
|
= render partial: "new_gestionnaire/dossiers/champs/#{champ.type_champ}",
|
|
|
|
locals: { champ: champ, form: champ_form }
|
|
|
|
|
|
|
|
.send-wrapper
|
|
|
|
= f.submit 'Sauvegarder', class: 'button send'
|